Skip to content

Commit

Permalink
addressing DeprecationWarning: fromstring()
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jan 21, 2019
1 parent 006a01a commit 9fe5eb5
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 9fe5eb5

Please sign in to comment.