From 99911f75f110409742eaf710a178ff0201f9b4a9 Mon Sep 17 00:00:00 2001 From: whiteowl3 <71030468+whiteowl3@users.noreply.github.com> Date: Tue, 1 Mar 2022 22:23:38 -0500 Subject: flake8-import-order (#1099) * flake8-import-order * make sure bad import orders fail * flake8-import-order * add application name to flake8 section * correct import order for openssl as application --- src/OpenSSL/crypto.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/OpenSSL/crypto.py') diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 79f7f4b..5b09d10 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1,7 +1,7 @@ import calendar import datetime -from base64 import b16encode import functools +from base64 import b16encode from functools import partial from cryptography import utils, x509 @@ -14,16 +14,17 @@ from cryptography.hazmat.primitives.asymmetric import ( ) from OpenSSL._util import ( + UNSPECIFIED as _UNSPECIFIED, + byte_string as _byte_string, + exception_from_error_queue as _exception_from_error_queue, ffi as _ffi, lib as _lib, - exception_from_error_queue as _exception_from_error_queue, - byte_string as _byte_string, + make_assert as _make_assert, path_bytes as _path_bytes, - UNSPECIFIED as _UNSPECIFIED, text_to_bytes_and_warn as _text_to_bytes_and_warn, - make_assert as _make_assert, ) + __all__ = [ "FILETYPE_PEM", "FILETYPE_ASN1", -- cgit v1.2.1