mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-19 20:20:28 -04:00
Run black
on the scripts (#9981)
Turns out these scripts weren't getting linted.
This commit is contained in:
parent
5090f26b63
commit
6482075c95
8 changed files with 141 additions and 76 deletions
|
@ -30,7 +30,11 @@ def exit(status: int = 0, message: Optional[str] = None):
|
|||
def format_plain(public_key: nacl.signing.VerifyKey):
|
||||
print(
|
||||
"%s:%s %s"
|
||||
% (public_key.alg, public_key.version, encode_verify_key_base64(public_key),)
|
||||
% (
|
||||
public_key.alg,
|
||||
public_key.version,
|
||||
encode_verify_key_base64(public_key),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
@ -50,7 +54,10 @@ if __name__ == "__main__":
|
|||
parser = argparse.ArgumentParser()
|
||||
|
||||
parser.add_argument(
|
||||
"key_file", nargs="+", type=argparse.FileType("r"), help="The key file to read",
|
||||
"key_file",
|
||||
nargs="+",
|
||||
type=argparse.FileType("r"),
|
||||
help="The key file to read",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
|
@ -63,7 +70,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument(
|
||||
"--expiry-ts",
|
||||
type=int,
|
||||
default=int(time.time() * 1000) + 6*3600000,
|
||||
default=int(time.time() * 1000) + 6 * 3600000,
|
||||
help=(
|
||||
"The expiry time to use for -x, in milliseconds since 1970. The default "
|
||||
"is (now+6h)."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue