Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial sorting of imports. #296

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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