Skip to content

Commit

Permalink
Update core_signing.py
Browse files Browse the repository at this point in the history
TimestampSigner is now only accepts key word arguments
  • Loading branch information
jnoortheen authored May 15, 2023
1 parent c00aa95 commit 309cf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_q/core_signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def loads(
"""
# TimestampSigner.unsign() returns str but base64 and zlib compression
# 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
if base64d[:1] == b".":
# It's compressed; uncompress it first
Expand Down

0 comments on commit 309cf4d

Please sign in to comment.