mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 10:08:13 +08:00
Added Django 4.2 to the test matrix, fixed deprecation warning (#89)
* Added Django 4.2 to the CI test matrix * Positional arguments with TimestampSigner are deprecated
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
|
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
|
||||||
django: [ "3.2", "4.1" ]
|
django: [ "3.2", "4.1", "4.2" ]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
disque:
|
disque:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ def loads(
|
|||||||
"""
|
"""
|
||||||
# TimestampSigner.unsign() returns str but base64 and zlib compression
|
# TimestampSigner.unsign() returns str but base64 and zlib compression
|
||||||
# operate on bytes.
|
# operate on bytes.
|
||||||
base64d = force_bytes(TimestampSigner(key, salt=salt).unsign(s, max_age=max_age))
|
base64d = force_bytes(TimestampSigner(key=key, salt=salt).unsign(s, max_age=max_age))
|
||||||
decompress = False
|
decompress = False
|
||||||
if base64d[:1] == b".":
|
if base64d[:1] == b".":
|
||||||
# It's compressed; uncompress it first
|
# It's compressed; uncompress it first
|
||||||
|
|||||||
Reference in New Issue
Block a user