Remove unused imports

This commit is contained in:
Disassembler 2018-11-05 23:00:33 +01:00
parent 67840131ee
commit 741c9d309a
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,6 @@ from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from cryptography.x509.oid import NameOID, ExtendedKeyUsageOID
CERT_PUB_FILE = '/etc/ssl/services.pem'
@ -85,7 +84,7 @@ def get_cert_info():
def verify_signature(file, signature):
with open(SIG_PUB_FILE, 'rb') as f:
pub_key = load_pem_public_key(f.read(), default_backend())
pub_key = serialization.load_pem_public_key(f.read(), default_backend())
pub_key.verify(packages_sig, packages, ec.ECDSA(hashes.SHA512()))
def adminpwd_hash(password):

View File

@ -3,11 +3,10 @@
import json
import os
from werkzeug.exceptions import BadRequest, HTTPException, NotFound
from werkzeug.exceptions import HTTPException, NotFound
from werkzeug.routing import Map, Rule
from werkzeug.utils import redirect
from werkzeug.wrappers import Request, Response
from werkzeug.wsgi import ClosingIterator
from jinja2 import Environment, FileSystemLoader
from cryptography.exceptions import InvalidSignature