DebugClients/Python3/FlexCompleter.py

changeset 3043
71f5c524d427
parent 3032
927a2f8b3669
child 3591
2f2a4a76dd22
--- a/DebugClients/Python3/FlexCompleter.py	Sat Oct 19 18:06:42 2013 +0200
+++ b/DebugClients/Python3/FlexCompleter.py	Sat Oct 19 19:38:17 2013 +0200
@@ -77,7 +77,7 @@
         @exception TypeError raised to indicate a wrong data structure of
             the namespace object
         """
-        if namespace and isinstance(namespace, dict):
+        if namespace and not isinstance(namespace, dict):
             raise TypeError('namespace must be a dictionary')
 
         # Don't bind to namespace quite yet, but flag whether the user wants a

eric ide

mercurial