src/eric7/DebugClients/Python/FlexCompleter.py

branch
eric7
changeset 11244
d0060bbd5da8
parent 11148
15e30f0c76a8
equal deleted inserted replaced
11240:c48c615c04a3 11244:d0060bbd5da8
197 m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) 197 m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
198 if not m: 198 if not m:
199 return [] 199 return []
200 expr, attr = m.group(1, 3) 200 expr, attr = m.group(1, 3)
201 try: 201 try:
202 thisobject = eval(expr, self.namespace) # secok 202 thisobject = eval(expr, {}, self.namespace) # secok
203 except Exception: 203 except Exception:
204 return [] 204 return []
205 205
206 # get the content of the object, except __builtins__ 206 # get the content of the object, except __builtins__
207 words = set(dir(thisobject)) 207 words = set(dir(thisobject))

eric ide

mercurial