Fixed a bug introduced by the recent changes.

Sat, 19 Oct 2013 19:38:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Oct 2013 19:38:17 +0200
changeset 3043
71f5c524d427
parent 3042
c9c3c0982145
child 3044
a6cee59c80a4

Fixed a bug introduced by the recent changes.

DebugClients/Python/FlexCompleter.py file | annotate | diff | comparison | revisions
DebugClients/Python3/FlexCompleter.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/FlexCompleter.py	Sat Oct 19 18:06:42 2013 +0200
+++ b/DebugClients/Python/FlexCompleter.py	Sat Oct 19 19:38:17 2013 +0200
@@ -126,7 +126,7 @@
         @param namespace namespace for the completer
         @exception TypeError raised to indicate a wrong namespace structure
         """
-        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
--- 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