diff options
| author | Christopher J. Markiewicz <markiewicz@stanford.edu> | 2019-01-19 21:38:14 -0500 |
|---|---|---|
| committer | Christopher J. Markiewicz <markiewicz@stanford.edu> | 2019-01-20 08:40:52 -0500 |
| commit | e5237a7b9d9aedcd1ab54c2e994714635111c6ed (patch) | |
| tree | 20c95b1b4ab36122de313ca198a924f415a5cd61 /numpy/compat | |
| parent | 264c94b79c8b0b0281c1dd40145f6bdad6ef473c (diff) | |
| download | numpy-e5237a7b9d9aedcd1ab54c2e994714635111c6ed.tar.gz | |
FIX: Compare (unicode, bytes) at later stage
Diffstat (limited to 'numpy/compat')
| -rw-r--r-- | numpy/compat/py3k.py | 2 |
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, " |
