diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:18:18 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:18:18 +0000 |
commit | 9c77c439698e34656d21f5e13bdf12210f659735 (patch) | |
tree | 0a73fe08e4c31ddf9fc066c0b95486412915b097 /numpy/compat/py3k.py | |
parent | fe8b7034708ffdf0d2efec268c9852162da56078 (diff) | |
download | numpy-9c77c439698e34656d21f5e13bdf12210f659735.tar.gz |
3K: lib: more str vs bytes issues in the lib/io loadtxt, savetxt and genfromtxt
Diffstat (limited to 'numpy/compat/py3k.py')
-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 7af73c3d0..7357bacff 100644 --- a/numpy/compat/py3k.py +++ b/numpy/compat/py3k.py @@ -21,7 +21,7 @@ if sys.version_info[0] >= 3: def asstr(s): if isinstance(s, str): return s - return bytes.decode('latin1') + return s.decode('latin1') def isfileobj(f): return isinstance(f, io.FileIO) strchar = 'U' |