diff -r 82c461fa8a68 -r 6725d2549801 eric6/DebugClients/Python/DebugVariables.py --- a/eric6/DebugClients/Python/DebugVariables.py Sat Dec 05 18:25:31 2020 +0100 +++ b/eric6/DebugClients/Python/DebugVariables.py Sun Dec 06 17:53:05 2020 +0100 @@ -138,9 +138,9 @@ """ 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 - if key[0] in 'ub': + # Special handling for bytes object + # Raw and f-Strings are always converted to str + if key[0] == 'b': key = key[1:] return key # __IGNORE_WARNING_M834__ @@ -652,11 +652,6 @@ pass # not available on all Python versions try: - _TypeMap.append((unicode, None)) # __IGNORE_WARNING__ - except Exception: # secok - pass # not available on all Python versions - - try: import array _TypeMap.append((array.array, arrayResolver)) except ImportError: