diff --git a/ordlookup/__init__.py b/ordlookup/__init__.py index 8841d74..5eb5aaf 100644 --- a/ordlookup/__init__.py +++ b/ordlookup/__init__.py @@ -1,5 +1,4 @@ -from . import ws2_32 -from . import oleaut32 +from . import oleaut32, ws2_32 """ A small module for keeping a database of ordinal to symbol diff --git a/pefile.py b/pefile.py index 36d352d..aa27f28 100644 --- a/pefile.py +++ b/pefile.py @@ -20,27 +20,21 @@ __version__ = "2023.2.7" __contact__ = "ero.carrera@gmail.com" +import codecs import collections +import copy as copymod +import functools +import gc +import math +import mmap import os +import string import struct -import codecs import time -import math -import string -import mmap import uuid -import gc - - from collections import Counter +from hashlib import md5, sha1, sha256, sha512 from typing import Union -from hashlib import sha1 -from hashlib import sha256 -from hashlib import sha512 -from hashlib import md5 - -import functools -import copy as copymod import ordlookup diff --git a/peutils.py b/peutils.py index 08e9a5b..95cb011 100644 --- a/peutils.py +++ b/peutils.py @@ -9,7 +9,10 @@ import os import re import string -import urllib.request, urllib.parse, urllib.error +import urllib.error +import urllib.parse +import urllib.request + import pefile __author__ = "Ero Carrera" diff --git a/setup.py b/setup.py index e9752c2..927381d 100755 --- a/setup.py +++ b/setup.py @@ -5,9 +5,8 @@ import re import sys - try: - from setuptools import setup, Command + from setuptools import Command, setup except ImportError as excp: from distutils.core import setup, Command diff --git a/tests/export_test.py b/tests/export_test.py index c57434e..eebfe1c 100644 --- a/tests/export_test.py +++ b/tests/export_test.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from binascii import unhexlify import unittest +from binascii import unhexlify import pefile diff --git a/tests/pefile_test.py b/tests/pefile_test.py index b841952..f47e3b7 100644 --- a/tests/pefile_test.py +++ b/tests/pefile_test.py @@ -1,8 +1,8 @@ +import difflib import os import sys -import difflib -from hashlib import sha256 import unittest +from hashlib import sha256 import pefile