diff options
| author | robot-piglet <[email protected]> | 2025-08-06 12:04:09 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-08-06 12:36:23 +0300 |
| commit | 56334186df28d4c1471f00c04d9f183abacee740 (patch) | |
| tree | 43b9e4056ef6869bb0eb2feebc8a8e91e2190314 /contrib/python | |
| parent | 37f66778793d189158bae06fe030d9c70ede812e (diff) | |
Intermediate changes
commit_hash:b1b2cb70f796d7db718f3b970f99425a3589657a
Diffstat (limited to 'contrib/python')
| -rw-r--r-- | contrib/python/jedi/py3/jedi/evaluate/arguments.py | 2 | ||||
| -rw-r--r-- | contrib/python/jedi/py3/patches/02-fix-SyntaxWarning.patch | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/contrib/python/jedi/py3/jedi/evaluate/arguments.py b/contrib/python/jedi/py3/jedi/evaluate/arguments.py index a1320fbb549..a8bea35ded1 100644 --- a/contrib/python/jedi/py3/jedi/evaluate/arguments.py +++ b/contrib/python/jedi/py3/jedi/evaluate/arguments.py @@ -92,7 +92,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 diff --git a/contrib/python/jedi/py3/patches/02-fix-SyntaxWarning.patch b/contrib/python/jedi/py3/patches/02-fix-SyntaxWarning.patch new file mode 100644 index 00000000000..08ba0a7eb9c --- /dev/null +++ b/contrib/python/jedi/py3/patches/02-fix-SyntaxWarning.patch @@ -0,0 +1,5 @@ +--- contrib/python/jedi/py3/jedi/evaluate/arguments.py (index) ++++ contrib/python/jedi/py3/jedi/evaluate/arguments.py (working tree) +@@ -95 +95 @@ def _parse_argument_clinic(string): +- match = re.match('(?:(?:(\[),? ?|, ?|)(\w+)|, ?/)\]*', string) ++ match = re.match(r'(?:(?:(\[),? ?|, ?|)(\w+)|, ?/)\]*', string) |
