Skip to content

Commit

Permalink
Merge pull request #296 from schwehr/order-imports
Browse files Browse the repository at this point in the history
Initial sorting of imports.
  • Loading branch information
JamesParrott authored Sep 17, 2024
2 parents bd04094 + 6fa168a commit 1c97410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@

__version__ = "2.3.1"

from struct import pack, unpack, calcsize, error, Struct
import array
from datetime import date
import io
import logging
import os
from struct import pack, unpack, calcsize, error, Struct
import sys
import time
import array
import tempfile
import logging
import io
from datetime import date
import time
import zipfile

# Create named logger
logger = logging.getLogger(__name__)


# Module settings
VERBOSE = True

Expand Down
6 changes: 3 additions & 3 deletions test_shapefile.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"""
This module tests the functionality of shapefile.py.
"""
# std lib imports

import datetime
import json
import os.path
import sys
if sys.version_info.major == 3:
from pathlib import Path

# third party imports
import pytest
import json
import datetime
if sys.version_info.major == 2:
# required by pytest for python <36
from pathlib2 import Path
Expand Down

0 comments on commit 1c97410

Please sign in to comment.