diff -r 3d48094ba8e1 -r 817ef8e0fa66 eric6/DebugClients/Python/DebugVariables.py --- a/eric6/DebugClients/Python/DebugVariables.py Sun Dec 06 12:46:00 2020 +0100 +++ b/eric6/DebugClients/Python/DebugVariables.py Sun Dec 06 17:43:11 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: