mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-14 09:37:05 +08:00
Fix quote completions for os.path.join path completions
This commit is contained in:
@@ -291,3 +291,7 @@ def cut_value_at_position(leaf, position):
|
||||
column -= leaf.column
|
||||
lines[-1] = lines[-1][:column]
|
||||
return ''.join(lines)
|
||||
|
||||
|
||||
def get_string_quote(leaf):
|
||||
return re.match('\w*("""|\'{3}|"|\')', leaf.value).group(1)
|
||||
|
||||
Reference in New Issue
Block a user