Fix an invalid escape sequence

This commit is contained in:
Dave Halter
2019-06-20 21:43:52 +02:00
parent 02d10a3aff
commit 454447d422

View File

@@ -55,7 +55,7 @@ def iter_module_names(evaluator, paths):
# pycache is obviously not an interestin namespace. Also the
# name must be a valid identifier.
# TODO use str.isidentifier, once Python 2 is removed
if name != '__pycache__' and not re.search('\W|^\d', name):
if name != '__pycache__' and not re.search(r'\W|^\d', name):
yield name
# Stub files
if name.endswith('.pyi'):