From 8abfd07ea1cee85af973616a9a24b80a15aba14a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Behrmann?= Date: Fri, 4 Oct 2024 16:24:39 +0200 Subject: [PATCH] ukify: Sort imports --- src/ukify/ukify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 82470778218..ba9bc51b6ec 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -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 -- 2.47.3