aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pathod/utils.py')
-rw-r--r--pathod/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pathod/utils.py b/pathod/utils.py
index b14535ca..0cc77ab2 100644
--- a/pathod/utils.py
+++ b/pathod/utils.py
@@ -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]