mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-07-21 02:09:28 +00:00
Remove need for conditional .decode() call which gives warning
This commit is contained in:
parent
2b4b64b71b
commit
7894b55a7e
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue