Skip to content

Commit

Permalink
Merge 9fe5eb5 into 006a01a
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jan 21, 2019
2 parents 006a01a + 9fe5eb5 commit 87c958b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysal/lib/io/util/shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _unpackDict2(d, structure, fileObj):
for name, dtype, order in structure:
dtype, n = dtype
result = array.array(dtype)
result.fromstring(fileObj.read(result.itemsize * n))
result.frombytes(fileObj.read(result.itemsize * n))
if order != SYS_BYTE_ORDER:
result.byteswap()
d[name] = result.tolist()
Expand Down

0 comments on commit 87c958b

Please sign in to comment.