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

Commit

Permalink
[Fixes #8] Preserve python 2.7 back-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Feb 10, 2020
1 parent 7c829cc commit 9517c8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion avatar/templatetags/avatar_tags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from urllib.parse import urlencode
try:
from urllib.parse import urlencode, urlsplit, urljoin
except ImportError:
from urllib import urlencode
from urlparse import urlsplit, urljoin
import hashlib


Expand Down

0 comments on commit 9517c8f

Please sign in to comment.