summaryrefslogtreecommitdiff
path: root/numpy/compat
diff options
context:
space:
mode:
authorChristopher J. Markiewicz <markiewicz@stanford.edu>2019-01-19 21:38:14 -0500
committerChristopher J. Markiewicz <markiewicz@stanford.edu>2019-01-20 08:40:52 -0500
commite5237a7b9d9aedcd1ab54c2e994714635111c6ed (patch)
tree20c95b1b4ab36122de313ca198a924f415a5cd61 /numpy/compat
parent264c94b79c8b0b0281c1dd40145f6bdad6ef473c (diff)
downloadnumpy-e5237a7b9d9aedcd1ab54c2e994714635111c6ed.tar.gz
FIX: Compare (unicode, bytes) at later stage
Diffstat (limited to 'numpy/compat')
-rw-r--r--numpy/compat/py3k.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py
index 6f0986bda..067292776 100644
--- a/numpy/compat/py3k.py
+++ b/numpy/compat/py3k.py
@@ -235,7 +235,7 @@ else:
else:
raise TypeError("expected str, bytes or os.PathLike object, "
"not " + path_type.__name__)
- if isinstance(path_repr, (str, bytes)):
+ if isinstance(path_repr, (unicode, bytes)):
return path_repr
else:
raise TypeError("expected {}.__fspath__() to return str or bytes, "