python3 support

This commit is contained in:
Kenneth Reitz 2012-06-19 11:53:51 -04:00
parent 65f223d17c
commit c27a5e2b38

View file

@ -1,7 +1,13 @@
# -*- coding: utf-8 -*-
import os
import urlparse
try:
import urlparse
except ImportError:
import urllib.parse as urlparse
# Register database schemes in URLs.
urlparse.uses_netloc.append('postgres')