From daaa672d3974dfda9bfdad9c89b27e5e6237992c Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Wed, 11 May 2016 02:09:42 +0530 Subject: Remove Py3 specific check --- pathod/utils.py | 3 +-- 1 file changed, 1 insertion(+), 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] -- cgit v1.2.3