mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-22 15:10:12 +01:00
* Fixes invalid byte string (b) for padding (#97, #107) * Change version to 0.5
This commit is contained in:
parent
f7e30344c5
commit
2e2c8ef1a1
@ -248,7 +248,7 @@ class device:
|
|||||||
# pad the payload for AES encryption
|
# pad the payload for AES encryption
|
||||||
if len(payload)>0:
|
if len(payload)>0:
|
||||||
numpad=(len(payload)//16+1)*16
|
numpad=(len(payload)//16+1)*16
|
||||||
payload=payload.ljust(numpad,"\x00")
|
payload=payload.ljust(numpad,b"\x00")
|
||||||
|
|
||||||
checksum = 0xbeaf
|
checksum = 0xbeaf
|
||||||
for i in range(len(payload)):
|
for i in range(len(payload)):
|
||||||
|
4
setup.py
4
setup.py
@ -12,11 +12,11 @@ try:
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
dynamic_requires = ['pycrypto==2.6.1']
|
dynamic_requires = ['pycrypto==2.6.1']
|
||||||
|
|
||||||
version = 0.3
|
version = 0.5
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='broadlink',
|
name='broadlink',
|
||||||
version=0.4,
|
version=0.5,
|
||||||
author='Matthew Garrett',
|
author='Matthew Garrett',
|
||||||
author_email='mjg59@srcf.ucam.org',
|
author_email='mjg59@srcf.ucam.org',
|
||||||
url='http://github.com/mjg59/python-broadlink',
|
url='http://github.com/mjg59/python-broadlink',
|
||||||
|
Loading…
Reference in New Issue
Block a user