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):