Skip to content

Commit f1a7a3b

Browse files
Anderson, ChaseAnderson, Chase
Anderson, Chase
authored and
Anderson, Chase
committed
fixed issue with quotations and importing an object inside a module
1 parent 8c89ad8 commit f1a7a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def on_query_completions(self, view, prefix, locations):
141141
view.find_all(import_regex, 0, r'\2,\3', import_extractions)
142142
view.find_all(object_regex, 0, r'\1,\2', object_extractions)
143143
for pair in import_extractions:
144-
module = pair.split(',')[1]
144+
module = re.sub(r'(\'|")', '', pair.split(',')[1])
145145
import_name = pair.split(',')[0]
146146
import_map[module] = import_name
147147
for obj in object_extractions:

0 commit comments

Comments
 (0)