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:53:48 +02:00
parent e6bc924fba
commit 7064ecf3fb
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class String(Literal):
@property
def string_prefix(self):
return re.match('\w*(?=[\'"])', self.value).group(0)
return re.match(r'\w*(?=[\'"])', self.value).group(0)
def _get_payload(self):
match = re.search(