From 2c35a16224c062ee3a3db9581973c03575c7eca4 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 21 Oct 2025 21:43:18 +0800 Subject: [PATCH] fix --- pg_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pg_logger.py b/pg_logger.py index 576ab89..dc0b595 100644 --- a/pg_logger.py +++ b/pg_logger.py @@ -75,7 +75,7 @@ PYTUTOR_HIDE_STR = "#pythontutor_hide:" # - also accepts shell globs, just like PYTUTOR_HIDE_STR PYTUTOR_INLINE_TYPE_STR = "#pythontutor_hide_type:" -CLASS_RE = re.compile("class\s+") +CLASS_RE = re.compile(r"class\s+") # copied-pasted from translate() in https://github.com/python/cpython/blob/2.7/Lib/fnmatch.py @@ -113,7 +113,7 @@ def globToRegex(pat): res = "%s[%s]" % (res, stuff) else: res = res + re.escape(c) - return res + "\Z(?ms)" + return res + r"\Z(?ms)" def compileGlobMatch(pattern):