eric6/DebugClients/Python/DebugVariables.py

changeset 7637
c878e8255972
parent 7628
f904d0eef264
child 7639
422fd05e9c91
diff -r 61566f35ab22 -r c878e8255972 eric6/DebugClients/Python/DebugVariables.py
--- a/eric6/DebugClients/Python/DebugVariables.py	Mon Jun 22 17:55:06 2020 +0200
+++ b/eric6/DebugClients/Python/DebugVariables.py	Tue Jun 23 17:24:18 2020 +0200
@@ -7,17 +7,12 @@
 Module implementing classes and functions to dump variable contents.
 """
 
-import sys
-
 from DebugConfig import ConfigQtNames, ConfigKnownQtTypes, BatchSize
 
 #
 # This code was inspired by pydevd.
 #
 
-if sys.version_info[0] > 2:
-    basestring = str
-
 ############################################################
 ## Classes implementing resolvers for various compund types
 ############################################################
@@ -141,7 +136,7 @@
         @return string representation of the given key
         @rtype str
         """
-        if isinstance(key, basestring):
+        if isinstance(key, str):
             key = repr(key)
             # Special handling for Python2 unicode strings and bytes object
             # Raw and f-Strings are always converted to (unicode) str

eric ide

mercurial