python: Delete superfluous parens.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-12 12:10:57 -07:00
committed by Anders Kaseorg
parent e0d3176098
commit 28597365da
24 changed files with 56 additions and 64 deletions

View File

@@ -132,11 +132,9 @@ def der_encode_ticket(tkt: Dict[str, Any]) -> bytes:
der_encode_sequence( # EncryptedData
[
der_encode_int32(tkt["encPart"]["etype"]),
(
der_encode_uint32(tkt["encPart"]["kvno"])
if "kvno" in tkt["encPart"]
else None
),
der_encode_uint32(tkt["encPart"]["kvno"])
if "kvno" in tkt["encPart"]
else None,
der_encode_octet_string(base64.b64decode(tkt["encPart"]["cipher"])),
]
),