Skip to content

Commit

Permalink
Issue #104: using frombuffer instead of deprecated fromstring [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Apr 30, 2019
1 parent 1c9ceda commit e76a16a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def four_uint8_to_uint32(four_bytes):
"""Convert 4 unsigned bytes to an unsigned integer."""
return np.fromstring(four_bytes, dtype='<u4')[0]
return np.frombuffer(four_bytes, dtype='<u4')[0]


if __name__ == '__main__':
Expand Down

0 comments on commit e76a16a

Please sign in to comment.