eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 8573
77845f40ebfe
parent 8568
890dfe038613
child 8881
54e42bc2437a
diff -r 718f80d8bcde -r 77845f40ebfe eric7/DebugClients/Python/DebugClientBase.py
--- a/eric7/DebugClients/Python/DebugClientBase.py	Fri Sep 03 19:14:36 2021 +0200
+++ b/eric7/DebugClients/Python/DebugClientBase.py	Fri Sep 03 19:56:21 2021 +0200
@@ -1627,8 +1627,8 @@
         expressions. The formated variables list (a list of tuples of 3
         values) is returned.
         
-        @param dict_ the dictionary to be scanned
-        @type dict
+        @param variables variables list to be processed
+        @type list of tuple of (str, Any) or (str, str, Any)
         @param scope 1 to filter using the globals filter, 0 using the locals
             filter.
             Variables are only added to the list, if their name do not match
@@ -1757,7 +1757,7 @@
                         elif valtype == "numpy.ndarray" and length > -1:
                             length = "x".join(str(x) for x in value.shape)
                         elif valtype.endswith(".MultiValueDict"):
-                            indicator = "{:}"
+                            indicator = "{:}"   # __IGNORE_WARNING__
                             valtype = "django.MultiValueDict"  # shortened type
                         break
                 else:
@@ -1784,10 +1784,8 @@
         patternFilterObjects = None
         if filterString.strip():
             pattern = filterString.replace(';', '|')
-            try:
+            with contextlib.suppress(re.error):
                 patternFilterObjects = re.compile(pattern)
-            except re.error:
-                pass
         
         if scope:
             self.globalsFilterObjects = patternFilterObjects

eric ide

mercurial