1
0
forked from VimPlug/jedi

Fixed a string deprecation warning, fixes #1261

This commit is contained in:
Dave Halter
2018-12-22 22:49:23 +01:00
parent 24174632d4
commit 86fbf3fef6

View File

@@ -114,7 +114,7 @@ def _parse_argument_clinic(string):
# at the end of the arguments. This is therefore not a proper argument
# clinic implementation. `range()` for exmple allows an optional start
# value at the beginning.
match = re.match('(?:(?:(\[),? ?|, ?|)(\**\w+)|, ?/)\]*', string)
match = re.match(r'(?:(?:(\[),? ?|, ?|)(\**\w+)|, ?/)\]*', string)
string = string[len(match.group(0)):]
if not match.group(2): # A slash -> allow named arguments
allow_kwargs = True