src/eric7/DebugClients/Python/FlexCompleter.py

branch
eric7
changeset 11066
d71eab9be477
parent 11047
783fc3de315e
child 11148
15e30f0c76a8
equal deleted inserted replaced
11065:381afdad9614 11066:d71eab9be477
81 @param namespace namespace for the completer 81 @param namespace namespace for the completer
82 @type dict 82 @type dict
83 @exception TypeError raised to indicate a wrong data structure of 83 @exception TypeError raised to indicate a wrong data structure of
84 the namespace object 84 the namespace object
85 """ 85 """
86 if namespace and not isinstance(namespace, (dict, sys._getframe().f_locals.__class__)): 86 if namespace and not isinstance(
87 raise TypeError("namespace must be a dictionary or since 3.13 a FrameLocalsProxy") 87 namespace, (dict, sys._getframe().f_locals.__class__)
88 ):
89 raise TypeError(
90 "namespace must be a dictionary or since 3.13 a FrameLocalsProxy"
91 )
88 92
89 # Don't bind to namespace quite yet, but flag whether the user wants a 93 # Don't bind to namespace quite yet, but flag whether the user wants a
90 # specific namespace or to use __main__.__dict__. This will allow us 94 # specific namespace or to use __main__.__dict__. This will allow us
91 # to bind to __main__.__dict__ at completion time, not now. 95 # to bind to __main__.__dict__ at completion time, not now.
92 if namespace is None: 96 if namespace is None:

eric ide

mercurial