1
0
forked from VimPlug/jedi

Don't use invalid escape sequences in regex, see https://github.com/davidhalter/jedi-vim/issues/843

This commit is contained in:
Dave Halter
2018-07-12 08:54:03 +02:00
parent 87d7c59c6e
commit 71cea7200b
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def is_stdlib_path(path):
return False
base_path = os.path.join(sys.prefix, 'lib', 'python')
return bool(re.match(re.escape(base_path) + '\d.\d', path))
return bool(re.match(re.escape(base_path) + r'\d.\d', path))
def deep_ast_copy(obj):