mirror of https://github.com/cool-RR/PySnooper.git
Remove need for conditional .decode() call which gives warning
This commit is contained in:
parent
2b4b64b71b
commit
7894b55a7e
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue