Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 9517c8f

Browse files
author
afabiani
committed
[Fixes #8] Preserve python 2.7 back-compatibility
1 parent 7c829cc commit 9517c8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

avatar/templatetags/avatar_tags.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
from urllib.parse import urlencode
1+
try:
2+
from urllib.parse import urlencode, urlsplit, urljoin
3+
except ImportError:
4+
from urllib import urlencode
5+
from urlparse import urlsplit, urljoin
26
import hashlib
37

48

0 commit comments

Comments
 (0)