1
0
Fork 0

Fix the failing import in Python 3.

This commit is contained in:
Amjith Ramanujam 2015-01-09 00:24:17 -08:00
parent 9632546c4b
commit 01847b5706
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ from .pgline import PGLine
from .config import write_default_config, load_config
from .key_bindings import pgcli_bindings
from urlparse import urlparse
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
from getpass import getuser
from psycopg2 import OperationalError