Skip to content

Commit

Permalink
chore: drop leftover Python 2.7 import aliases from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Oct 3, 2023
1 parent 3fa60fd commit 2da65a7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
from distutils.ccompiler import get_default_compiler
from distutils.errors import CompileError

try:
import configparser
except ImportError:
import ConfigParser as configparser
import configparser

# Take a look at https://www.python.org/dev/peps/pep-0440/
# for a consistent versioning pattern.
Expand Down Expand Up @@ -161,10 +158,7 @@ def autodetect_pg_config_path_windows(self):
return None

def _get_pg_config_from_registry(self):
try:
import winreg
except ImportError:
import _winreg as winreg
import winreg

reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
try:
Expand Down

0 comments on commit 2da65a7

Please sign in to comment.