Commits

benoitcsirois committed c6ea9cf

Python 3 fix

Comments (0)

Files changed (1)

localeurl/views.py

-from urlparse import urlsplit
+try:
+    from urlparse import urlsplit
+except ImportError:
+    from urllib.parse import urlsplit
 from django import http
 from django.utils.translation import check_for_language
 from localeurl import utils