mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 09:18:12 +08:00
Fix super call to work with Python 2.x
This commit is contained in:
@@ -62,7 +62,7 @@ class TimestampSigner(Signer, TsS):
|
|||||||
Retrieve original value and check it wasn't signed more
|
Retrieve original value and check it wasn't signed more
|
||||||
than max_age seconds ago.
|
than max_age seconds ago.
|
||||||
"""
|
"""
|
||||||
result = super().unsign(value)
|
result = super(TimestampSigner, self).unsign(value)
|
||||||
value, timestamp = result.rsplit(self.sep, 1)
|
value, timestamp = result.rsplit(self.sep, 1)
|
||||||
timestamp = baseconv.base62.decode(timestamp)
|
timestamp = baseconv.base62.decode(timestamp)
|
||||||
if max_age is not None:
|
if max_age is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user