DebugClients/Python2/DebugClientBase.py

changeset 5190
65a2234c6789
parent 5175
9db0b0f15d12
diff -r 8fa3e3d379d1 -r 65a2234c6789 DebugClients/Python2/DebugClientBase.py
--- a/DebugClients/Python2/DebugClientBase.py	Fri Sep 30 19:44:01 2016 +0200
+++ b/DebugClients/Python2/DebugClientBase.py	Fri Sep 30 19:52:16 2016 +0200
@@ -1677,7 +1677,7 @@
                 else:
                     valtype = valtypestr[6:-1]
                     if valtype not in ConfigVarTypeStrings:
-                        if valtype == "numpy.ndarray":
+                        if valtype in ["numpy.ndarray", "array.array"]:
                             if ConfigVarTypeStrings.index('list') in filter:
                                 continue
                         elif valtypename == "MultiValueDict":
@@ -1694,7 +1694,7 @@
                             continue
                         
                         if valtypename not in ["MultiValueDict"] and \
-                                not valtype.startswith("numpy"):
+                                not valtype.startswith(("numpy.", "array.")):
                             valtype = valtypestr
                     else:
                         try:
@@ -1720,7 +1720,7 @@
                     
                 try:
                     if valtype in ['list', 'tuple', 'dict', 'set',
-                                   'frozenset']:
+                                   'frozenset', 'array.array']:
                         if valtype == 'dict':
                             rvalue = "%d" % len(value.keys())
                         else:

eric ide

mercurial