We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3751c9 commit b7eb0ecCopy full SHA for b7eb0ec
pymode/rope.py
@@ -61,7 +61,7 @@ def completions():
61
return env.stop(proposals)
62
63
64
-FROM_RE = re.compile(r'^from\s+[\.\w\d_]+$')
+FROM_RE = re.compile(r'^\s*from\s+[\.\w\d_]+$')
65
66
67
@env.catch_exceptions
@@ -76,7 +76,7 @@ def complete(dot=False):
76
77
cline = env.current.line[:col]
78
env.debug('dot completion', cline)
79
- if FROM_RE.match(cline) or cline.endswith('..'):
+ if FROM_RE.match(cline) or cline.endswith('..') or cline.endswith('\.'):
80
return env.stop("")
81
82
proposals = get_proporsals(source, offset, dot=dot)
0 commit comments