mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-04-23 03:00:38 -04:00
Remove need for conditional .decode() call which gives warning
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user