Remove need for conditional .decode() call which gives warning

This commit is contained in:
Alex Hall
2019-04-25 17:04:58 +02:00
committed by Ram Rachum
parent 2b4b64b71b
commit 7894b55a7e

View File

@@ -47,10 +47,7 @@ def get_local_reprs(frame, variables=()):
class UnavailableSource(object):
def __getitem__(self, i):
content = 'SOURCE IS UNAVAILABLE'
if six.PY2:
content = content.decode()
return content
return u'SOURCE IS UNAVAILABLE'
source_cache_by_module_name = {}