diff --git a/pyredis/helper.py b/pyredis/helper.py index c000eb2..e9f60f3 100644 --- a/pyredis/helper.py +++ b/pyredis/helper.py @@ -9,7 +9,7 @@ from pyredis.protocol import to_bytes -crc16 = crc.Calculator(crc.Crc16.CCITT) +crc16 = crc.Calculator(crc.Crc16.XMODEM) def dict_from_list(source): diff --git a/setup.py b/setup.py index 741a951..3e3a2e3 100644 --- a/setup.py +++ b/setup.py @@ -23,10 +23,10 @@ 'Programming Language :: Python :: 3' ], setup_requires=[ - 'crc' + 'crc>=7.0.0' ], install_requires=[ - 'crc' + 'crc>=7.0.0' ], keywords=[ 'redis'