summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-08-10 13:23:23 -0600
committerCharles Harris <charlesr.harris@gmail.com>2018-08-10 16:06:41 -0600
commit007db13f45b378b3c7d6fe9c2d79d8ef1c700bbd (patch)
tree3b68fc838dc58db27720db4768d3e2510992fe0b /numpy/doc/structured_arrays.py
parentc0b4340c698c486e459a0a2c80706c78329c64fc (diff)
downloadnumpy-007db13f45b378b3c7d6fe9c2d79d8ef1c700bbd.tar.gz
BUG: Fix regression in loadtxt for bz2 text files in Python 2.
Text bz2 files are not well supported in Python2, and, following the NumPy upgrade in text handling, loadtxt was raising an error when they were detected. This led to problems for those few who were using such files. This patch is a quick fix that issues a RuntimeWarning, then opens those files under the assumption that they are latin1 encoded. Caveat emptor. Closes #11633.
Diffstat (limited to 'numpy/doc/structured_arrays.py')
0 files changed, 0 insertions, 0 deletions