mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Fix an invalid escape sequence
This commit is contained in:
@@ -55,7 +55,7 @@ def iter_module_names(evaluator, paths):
|
|||||||
# pycache is obviously not an interestin namespace. Also the
|
# pycache is obviously not an interestin namespace. Also the
|
||||||
# name must be a valid identifier.
|
# name must be a valid identifier.
|
||||||
# TODO use str.isidentifier, once Python 2 is removed
|
# 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
|
yield name
|
||||||
# Stub files
|
# Stub files
|
||||||
if name.endswith('.pyi'):
|
if name.endswith('.pyi'):
|
||||||
|
|||||||
Reference in New Issue
Block a user