]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: Sort imports
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 4 Oct 2024 14:24:39 +0000 (16:24 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 9 Oct 2024 09:58:02 +0000 (11:58 +0200)
src/ukify/ukify.py

index 82470778218cecb82018a820b464758d1fa1e297..ba9bc51b6ec50cec9ff33c85e5dac643d9b3cbf5 100755 (executable)
@@ -20,9 +20,9 @@
 # pylint: disable=unnecessary-lambda-assignment
 
 import argparse
+import collections
 import configparser
 import contextlib
-import collections
 import dataclasses
 import datetime
 import fnmatch
@@ -35,17 +35,17 @@ import re
 import shlex
 import shutil
 import socket
+import struct
 import subprocess
 import sys
 import tempfile
 import textwrap
-import struct
 from hashlib import sha256
 from pathlib import Path
 from typing import (
+    IO,
     Any,
     Callable,
-    IO,
     Optional,
     Sequence,
     Union,
@@ -1075,7 +1075,7 @@ def generate_key_cert_pair(
     keylength: int = 2048,
 ) -> tuple[bytes]:
     from cryptography import x509
-    from cryptography.hazmat.primitives import serialization, hashes
+    from cryptography.hazmat.primitives import hashes, serialization
     from cryptography.hazmat.primitives.asymmetric import rsa
 
     # We use a keylength of 2048 bits. That is what Microsoft documents as