Don't show 'None' in local variable viewer if locals and globals are same. Variables Viewer

Fri, 03 May 2019 23:01:00 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Fri, 03 May 2019 23:01:00 +0200
branch
Variables Viewer
changeset 6995
ee314cf3b1c9
parent 6994
681ed8916e69
child 7012
cc3f83d1a605

Don't show 'None' in local variable viewer if locals and globals are same.

eric6/Debugger/DebugUI.py file | annotate | diff | comparison | revisions
--- a/eric6/Debugger/DebugUI.py	Fri May 03 22:56:07 2019 +0200
+++ b/eric6/Debugger/DebugUI.py	Fri May 03 23:01:00 2019 +0200
@@ -1305,7 +1305,7 @@
         elif scope == 0:
             self.debugViewer.showVariables(variables, False)
         elif scope == -1:
-            vlist = [('None', '', '')]
+            vlist = [(self.tr('No locals available.'), '', '')]
             self.debugViewer.showVariables(vlist, False)
         
     def __clientVariable(self, scope, variables):

eric ide

mercurial