File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def current_object_attribute(cursor_offset, line):
114
114
115
115
116
116
current_from_import_from_re = LazyReCompile (
117
- r"from ([\w0-9_.]*)(?:\s+import\s+([\w0-9_]+[,]?\s*)+)*"
117
+ r"from + ([\w0-9_.]*)(?:\s+import\s+([\w0-9_]+[,]?\s*)+)*"
118
118
)
119
119
120
120
@@ -136,9 +136,9 @@ def current_from_import_from(cursor_offset, line):
136
136
return None
137
137
138
138
139
- current_from_import_import_re_1 = LazyReCompile (r"from\s([\w0-9_.]*)\s+import" )
139
+ current_from_import_import_re_1 = LazyReCompile (r"from\s+ ([\w0-9_.]*)\s+import" )
140
140
current_from_import_import_re_2 = LazyReCompile (r"([\w0-9_]+)" )
141
- current_from_import_import_re_3 = LazyReCompile (r"[,][ ] ([\w0-9_]*)" )
141
+ current_from_import_import_re_3 = LazyReCompile (r", * ([\w0-9_]*)" )
142
142
143
143
144
144
def current_from_import_import (cursor_offset , line ):
@@ -165,7 +165,7 @@ def current_from_import_import(cursor_offset, line):
165
165
166
166
current_import_re_1 = LazyReCompile (r"import" )
167
167
current_import_re_2 = LazyReCompile (r"([\w0-9_.]+)" )
168
- current_import_re_3 = LazyReCompile (r"[,][ ]([\w0-9_.]*)" )
168
+ current_import_re_3 = LazyReCompile (r"[,][ ]* ([\w0-9_.]*)" )
169
169
170
170
171
171
def current_import (cursor_offset , line ):
You can’t perform that action at this time.
0 commit comments