mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
Remove Py3 specific check
This commit is contained in:
@@ -60,8 +60,7 @@ def inner_repr(s):
|
||||
Returns the inner portion of a string or unicode repr (i.e. without the
|
||||
quotes)
|
||||
"""
|
||||
if (six.PY2 and isinstance(s, unicode)) or \
|
||||
(six.PY3 and isinstance(s, bytes)):
|
||||
if (six.PY2 and isinstance(s, unicode)) or isinstance(s, bytes):
|
||||
return repr(s)[2:-1]
|
||||
else:
|
||||
return repr(s)[1:-1]
|
||||
|
||||
Reference in New Issue
Block a user