1
0
forked from VimPlug/jedi

escape text within regex, fixes pydoc problems in windows, thanks to @musicx -> fixes #72

This commit is contained in:
David Halter
2012-11-30 12:13:39 +01:00
parent 125262275d
commit 12dfb0f5b4

View File

@@ -302,7 +302,7 @@ class Module(Scope):
if self.path is None:
string = '' # no path -> empty name
else:
sep = (os.path.sep,) * 2
sep = (re.escape(os.path.sep),) * 2
r = re.search(r'([^%s]*?)(%s__init__)?(\.py|\.so)?$' % sep,
self.path)
string = r.group(1)