From e797eb89b2797a8c0cb3554143e49d9eeff9bf20 Mon Sep 17 00:00:00 2001 From: Gabriel Le Bouder Date: Fri, 10 Aug 2018 20:38:17 +0200 Subject: [PATCH] templatetags python2 complient --- re2o/templatetags/acl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/re2o/templatetags/acl.py b/re2o/templatetags/acl.py index fe13c5ac..19bd0fae 100644 --- a/re2o/templatetags/acl.py +++ b/re2o/templatetags/acl.py @@ -227,7 +227,9 @@ def acl_history_filter(parser, token): def acl_app_filter(parser, token): """Templatetag for acl checking on applications.""" try: - tag_name, *app_name = token.split_contents() + contents = token.split_contents() + tag_name = contents[0] + app_name = contents[1:] except ValueError: raise template.TemplateSyntaxError( "%r tag require 1 argument: an application"