--- 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