Skip to content

Commit

Permalink
python3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Jun 19, 2012
1 parent 65f223d commit c27a5e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dj_database_url.py
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit c27a5e2

Please sign in to comment.