mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-28 07:02:18 +08:00
Get rid of a regex warning, where escaping was not properly used in a normal string
This commit is contained in:
@@ -94,7 +94,7 @@ class ModuleContext(TreeContext):
|
|||||||
sep = (re.escape(os.path.sep),) * 2
|
sep = (re.escape(os.path.sep),) * 2
|
||||||
r = re.search(r'([^%s]*?)(%s__init__)?(\.py|\.so)?$' % sep, self._path)
|
r = re.search(r'([^%s]*?)(%s__init__)?(\.py|\.so)?$' % sep, self._path)
|
||||||
# Remove PEP 3149 names
|
# 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
|
@property
|
||||||
@evaluator_method_cache()
|
@evaluator_method_cache()
|
||||||
|
|||||||
Reference in New Issue
Block a user