Skip to content

Commit

Permalink
Merge pull request #403 from j-t-1/isort
Browse files Browse the repository at this point in the history
Apply isort to sort all imports
  • Loading branch information
erocarrera authored Jun 10, 2024
2 parents daf9067 + c6811b5 commit 442542c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 22 deletions.
3 changes: 1 addition & 2 deletions ordlookup/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 8 additions & 14 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,21 @@
__version__ = "2023.2.7"
__contact__ = "[email protected]"

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

Expand Down
5 changes: 4 additions & 1 deletion peutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/export_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from binascii import unhexlify
import unittest
from binascii import unhexlify

import pefile

Expand Down
4 changes: 2 additions & 2 deletions tests/pefile_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import difflib
import os
import sys
import difflib
from hashlib import sha256
import unittest
from hashlib import sha256

import pefile

Expand Down

0 comments on commit 442542c

Please sign in to comment.