Skip to content

Commit

Permalink
fix TypeError on py3
Browse files Browse the repository at this point in the history
  • Loading branch information
pawl committed Dec 21, 2020
1 parent 7e58750 commit ce3677f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 0.1.2

Released on December 20, 2020

### Changed

* More Python 3 fixes (fixed TypeError)

## 0.1.1

Released on December 20, 2020
Expand Down
4 changes: 2 additions & 2 deletions rfid.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class RFIDClient(object):

# these bytes form the packet that starts a transaction with the RFID controller
start_transaction = (
"\r\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\r\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
)

def __init__(self, ip, serial):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

0 comments on commit ce3677f

Please sign in to comment.