summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test__iotools.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-11-19 13:43:32 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-11-21 10:16:00 -0700
commitd9ca11117f37d48d07818a3aae3641c023454269 (patch)
tree32825da712da41360c98ceb61049488269f543b9 /numpy/lib/tests/test__iotools.py
parent55273d236945aa5f4b6e01682dfef82384a7fd65 (diff)
downloadnumpy-d9ca11117f37d48d07818a3aae3641c023454269.tar.gz
MAINT: Refactor some code in npyio.py.
Diffstat (limited to 'numpy/lib/tests/test__iotools.py')
-rw-r--r--numpy/lib/tests/test__iotools.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/lib/tests/test__iotools.py b/numpy/lib/tests/test__iotools.py
index 990ee126d..b25b42f8c 100644
--- a/numpy/lib/tests/test__iotools.py
+++ b/numpy/lib/tests/test__iotools.py
@@ -133,8 +133,6 @@ class TestNameValidator(object):
def _bytes_to_date(s):
- if type(s) == bytes:
- s = s.decode("latin1")
return date(*time.strptime(s, "%Y-%m-%d")[:3])