diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-12-06 08:18:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 08:18:04 -0700 |
commit | 5d3ff239a75bdfd59b2c4adbfd2af343b3a36007 (patch) | |
tree | fd15b443fa0a382fade15f8319ddab4bf2c976f6 /numpy | |
parent | 612cd65633eefea009b9f1aae6605b73523259d2 (diff) | |
download | numpy-5d3ff239a75bdfd59b2c4adbfd2af343b3a36007.tar.gz |
BUG: Fix `/` that should be `//`.
Seems this old style division was missed when going to Python3
compatibility.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/records.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py index db4a0fbd8..86a43306a 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -787,7 +787,7 @@ def fromfile(fd, dtype=None, shape=None, offset=0, formats=None, shapesize = shapeprod * itemsize if shapesize < 0: shape = list(shape) - shape[shape.index(-1)] = size / -shapesize + shape[shape.index(-1)] = size // -shapesize shape = tuple(shape) shapeprod = sb.array(shape).prod(dtype=nt.intp) |