Fixed some little issues. eric7

Tue, 27 Jul 2021 19:22:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 27 Jul 2021 19:22:37 +0200
branch
eric7
changeset 8479
903b7d3b58af
parent 8478
b95aa969efdf
child 8480
4dccb64895d9

Fixed some little issues.

eric7/DebugClients/Python/DebugVariables.py file | annotate | diff | comparison | revisions
eric7/Debugger/VariablesViewer.py file | annotate | diff | comparison | revisions
--- a/eric7/DebugClients/Python/DebugVariables.py	Wed Jul 21 17:52:39 2021 +0200
+++ b/eric7/DebugClients/Python/DebugVariables.py	Tue Jul 27 19:22:37 2021 +0200
@@ -208,7 +208,7 @@
         try:
             return var[int(attribute)]
         except Exception:
-            return getattr(var, attribute, None)
+            return getattr(var, str(attribute), None)
     
     def getDictionary(self, var):
         """
--- a/eric7/Debugger/VariablesViewer.py	Wed Jul 21 17:52:39 2021 +0200
+++ b/eric7/Debugger/VariablesViewer.py	Tue Jul 27 19:22:37 2021 +0200
@@ -192,6 +192,7 @@
             else:
                 dvalue = VariableItem.unsized
             self.hasChildren = True
+        
         elif dtype in VariableItem.arrayTypes:
             self.childCount = int(dvalue)
             dvalue = VariableItem.noOfItemsStr.format(dvalue)

eric ide

mercurial