1
0
forked from VimPlug/jedi

Get rid of a regex warning, where escaping was not properly used in a normal string

This commit is contained in:
Dave Halter
2018-03-05 10:56:27 +01:00
parent 9e9c62a5ab
commit 72be3e5247

View File

@@ -94,7 +94,7 @@ class ModuleContext(TreeContext):
sep = (re.escape(os.path.sep),) * 2
r = re.search(r'([^%s]*?)(%s__init__)?(\.py|\.so)?$' % sep, self._path)
# Remove PEP 3149 names
return re.sub('\.[a-z]+-\d{2}[mud]{0,3}$', '', r.group(1))
return re.sub(r'\.[a-z]+-\d{2}[mud]{0,3}$', '', r.group(1))
@property
@evaluator_method_cache()