diff options
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templatetags/custom_filters.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/templatetags/custom_filters.py b/yaksh/templatetags/custom_filters.py index 693dc2b..df6ecce 100644 --- a/yaksh/templatetags/custom_filters.py +++ b/yaksh/templatetags/custom_filters.py @@ -1,6 +1,9 @@ from django import template from django.template.defaultfilters import stringfilter -from itertools import zip_longest +try: + from itertools import zip_longest +except ImportError: + from itertools import izip_longest as zip_longest register = template.Library() |