Kaydet (Commit) 4286138e authored tarafından Georg Brandl's avatar Georg Brandl

#2220: handle matching failure more gracefully.

üst a7bd27f0
...@@ -125,7 +125,7 @@ class Completer: ...@@ -125,7 +125,7 @@ class Completer:
import re import re
m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
if not m: if not m:
return return []
expr, attr = m.group(1, 3) expr, attr = m.group(1, 3)
object = eval(expr, self.namespace) object = eval(expr, self.namespace)
words = dir(object) words = dir(object)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment