summaryrefslogtreecommitdiff
path: root/share/qtcreator/debugger/dumper.py
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-02-24 10:14:27 +0100
committerDavid Schulz <david.schulz@qt.io>2020-02-25 13:22:50 +0000
commit44db8e2eabc065ac32a1f4e12a53a482fc0c8122 (patch)
tree51b2cf638eef0f865c979894abb6c6376594d644 /share/qtcreator/debugger/dumper.py
parentc063c6d407236b970f5b460e3f1b79605dbe6ffd (diff)
downloadqt-creator-44db8e2eabc065ac32a1f4e12a53a482fc0c8122.tar.gz
Dumper: replace import * with explicit imports
Using imports like from foo import * is considered as bad habit and it reduces static code analysis usability. Change-Id: I56a175f4c7b231e2b8e486bd9d1c65543720f56a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share/qtcreator/debugger/dumper.py')
-rw-r--r--share/qtcreator/debugger/dumper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py
index 6d36368537..6b0416c563 100644
--- a/share/qtcreator/debugger/dumper.py
+++ b/share/qtcreator/debugger/dumper.py
@@ -164,11 +164,11 @@ class DumperBase:
@staticmethod
def showException(msg, exType, exValue, exTraceback):
- self.warn('**** CAUGHT EXCEPTION: %s ****' % msg)
+ DumperBase.warn('**** CAUGHT EXCEPTION: %s ****' % msg)
try:
import traceback
for line in traceback.format_exception(exType, exValue, exTraceback):
- self.warn('%s' % line)
+ DumperBase.warn('%s' % line)
except:
pass
@@ -335,7 +335,7 @@ class DumperBase:
# (self.currentIName, self.currentValue, self.currentType))
if not exType is None:
if self.passExceptions:
- showException('SUBITEM', exType, exValue, exTraceBack)
+ self.showException('SUBITEM', exType, exValue, exTraceBack)
self.putSpecialValue('notaccessible')
self.putNumChild(0)
if not self.isCli: