Skip to content

Commit ce3677f

Browse files
committed
fix TypeError on py3
1 parent 7e58750 commit ce3677f

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 0.1.2
4+
5+
Released on December 20, 2020
6+
7+
### Changed
8+
9+
* More Python 3 fixes (fixed TypeError)
10+
311
## 0.1.1
412

513
Released on December 20, 2020

rfid.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ class RFIDClient(object):
7777

7878
# these bytes form the packet that starts a transaction with the RFID controller
7979
start_transaction = (
80-
"\r\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
81-
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
80+
b"\r\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
81+
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
8282
)
8383

8484
def __init__(self, ip, serial):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='Chinese-RFID-Access-Control-Library',
12-
version='0.1.1',
12+
version='0.1.2',
1313
description='A library for interfacing with one of the most common RFID Access Control System sold in China.',
1414
long_description=readme,
1515
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)