mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 15:45:46 +03:00
chore: drop leftover Python 2.7 import aliases from setup.py
This commit is contained in:
parent
3fa60fd268
commit
2da65a715c
10
setup.py
10
setup.py
|
@ -36,10 +36,7 @@ from distutils.command.build_ext import build_ext
|
||||||
from distutils.ccompiler import get_default_compiler
|
from distutils.ccompiler import get_default_compiler
|
||||||
from distutils.errors import CompileError
|
from distutils.errors import CompileError
|
||||||
|
|
||||||
try:
|
import configparser
|
||||||
import configparser
|
|
||||||
except ImportError:
|
|
||||||
import ConfigParser as configparser
|
|
||||||
|
|
||||||
# Take a look at https://www.python.org/dev/peps/pep-0440/
|
# Take a look at https://www.python.org/dev/peps/pep-0440/
|
||||||
# for a consistent versioning pattern.
|
# for a consistent versioning pattern.
|
||||||
|
@ -161,10 +158,7 @@ For further information please check the 'doc/src/install.rst' file (also at
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _get_pg_config_from_registry(self):
|
def _get_pg_config_from_registry(self):
|
||||||
try:
|
import winreg
|
||||||
import winreg
|
|
||||||
except ImportError:
|
|
||||||
import _winreg as winreg
|
|
||||||
|
|
||||||
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user