diff --git a/setup.py b/setup.py index f63f5ba03..16d20f4a8 100644 --- a/setup.py +++ b/setup.py @@ -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. @@ -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: