mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
pubtkt: Fix Python format language errors
The CI is now using a newer version of Python. Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
e5b149baa3
commit
9d616cc5e2
@ -69,10 +69,10 @@ def create_ticket(pkey, uid, validuntil, ip=None, tokens=None, udata=None,
|
||||
"""Create and return a signed mod_auth_pubtkt ticket."""
|
||||
fields = [
|
||||
f'uid={uid}',
|
||||
'validuntil={0:d}'.format(validuntil),
|
||||
'validuntil={int(validuntil)}',
|
||||
ip and f'cip={ip}',
|
||||
tokens and f'tokens={tokens}',
|
||||
graceperiod and 'graceperiod={0:d}'.format(graceperiod),
|
||||
graceperiod and 'graceperiod={int(graceperiod)}',
|
||||
udata and f'udata={udata}',
|
||||
extra_fields and ';'.join(
|
||||
['{}={}'.format(k, v) for k, v in extra_fields])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user