Skip to content

Commit

Permalink
Replaced strip with rstrip.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jan 6, 2018
1 parent 23dc8ae commit aa46a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _unpack_bytearray(size, bits):
if rest > 0:
bits += (8 - rest) * '0'

return binascii.unhexlify(hex(int('10000000' + bits, 2))[4:].strip('L'))
return binascii.unhexlify(hex(int('10000000' + bits, 2))[4:].rstrip('L'))


def _unpack_text(size, bits):
Expand Down

0 comments on commit aa46a29

Please sign in to comment.