We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa60fd commit 2da65a7Copy full SHA for 2da65a7
setup.py
@@ -36,10 +36,7 @@
36
from distutils.ccompiler import get_default_compiler
37
from distutils.errors import CompileError
38
39
-try:
40
- import configparser
41
-except ImportError:
42
- import ConfigParser as configparser
+import configparser
43
44
# Take a look at https://www.python.org/dev/peps/pep-0440/
45
# for a consistent versioning pattern.
@@ -161,10 +158,7 @@ def autodetect_pg_config_path_windows(self):
161
158
return None
162
159
163
160
def _get_pg_config_from_registry(self):
164
- try:
165
- import winreg
166
- except ImportError:
167
- import _winreg as winreg
+ import winreg
168
169
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
170
try:
0 commit comments