summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorAleksandar Trifunovic <akstrfn@gmail.com>2018-07-30 11:12:43 +0200
committerAleksandar Trifunovic <akstrfn@gmail.com>2019-02-01 21:27:57 +0100
commit203506c9cc2bb2adeb040e5f6c7a74ad6571105e (patch)
treeebed361391e14b524f8f928a1c634ec2d66db0e0 /main
parentadaa6d64c4466cff986e695d9d69d51a4d05ca59 (diff)
downloadarchweb-203506c9cc2bb2adeb040e5f6c7a74ad6571105e.tar.gz
archweb-203506c9cc2bb2adeb040e5f6c7a74ad6571105e.zip
remove unecessary list calls
Diffstat (limited to 'main')
-rw-r--r--main/templatetags/details_link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/templatetags/details_link.py b/main/templatetags/details_link.py
index 948af314..2e68befe 100644
--- a/main/templatetags/details_link.py
+++ b/main/templatetags/details_link.py
@@ -8,7 +8,7 @@ register = template.Library()
def link_encode(url, query):
# massage the data into all utf-8 encoded strings first, so urlencode
# doesn't barf at the data we pass it
- query = {k: str(v).encode('utf-8') for k, v in list(query.items())}
+ query = {k: str(v).encode('utf-8') for k, v in query.items()}
data = urlencode(query)
return "%s?%s" % (url, data)