mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-27 14:50:03 +00:00
flake8
This commit is contained in:
parent
4450a7a4b2
commit
884c26495f
@ -2,7 +2,6 @@ import os
|
||||
import stat
|
||||
import time
|
||||
import weakref
|
||||
import json
|
||||
from allmydata import node
|
||||
from base64 import urlsafe_b64encode
|
||||
from functools import partial
|
||||
|
@ -419,7 +419,6 @@ def create_grid_manager_verifier(keys, certs, public_key, now_fn=None, bad_cert=
|
||||
# if *any* certificate is still valid then we consider the server valid
|
||||
for cert in valid_certs:
|
||||
expires = datetime.utcfromtimestamp(cert['expires'])
|
||||
cert_pubkey = ed25519.verifying_key_from_string(cert['public_key'].encode('ascii'))
|
||||
if cert['public_key'] == public_key:
|
||||
if expires > now:
|
||||
# not-expired
|
||||
|
@ -14,6 +14,7 @@ if PY2:
|
||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
|
||||
from six import ensure_str, ensure_text
|
||||
|
||||
import json
|
||||
import datetime
|
||||
import os.path
|
||||
import re
|
||||
|
Loading…
x
Reference in New Issue
Block a user