fix
This commit is contained in:
@@ -75,7 +75,7 @@ PYTUTOR_HIDE_STR = "#pythontutor_hide:"
|
|||||||
# - also accepts shell globs, just like PYTUTOR_HIDE_STR
|
# - also accepts shell globs, just like PYTUTOR_HIDE_STR
|
||||||
PYTUTOR_INLINE_TYPE_STR = "#pythontutor_hide_type:"
|
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
|
# 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)
|
res = "%s[%s]" % (res, stuff)
|
||||||
else:
|
else:
|
||||||
res = res + re.escape(c)
|
res = res + re.escape(c)
|
||||||
return res + "\Z(?ms)"
|
return res + r"\Z(?ms)"
|
||||||
|
|
||||||
|
|
||||||
def compileGlobMatch(pattern):
|
def compileGlobMatch(pattern):
|
||||||
|
|||||||
Reference in New Issue
Block a user