diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-11 19:29:15 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-11 19:29:15 -0500 |
commit | 71e57570c262fffb11ca6e0dc97342119198f740 (patch) | |
tree | 3736af12cda316baffbcc4e5ba2a43f41901b847 /packages/views.py | |
parent | a01a11cfad84bd44c1f5aeffcc0665bd93889e1d (diff) |
Pylint suggested and other cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r-- | packages/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/views.py b/packages/views.py index 61e4d290..a8216c7a 100644 --- a/packages/views.py +++ b/packages/views.py @@ -19,7 +19,7 @@ from django.views.generic.simple import direct_to_template from datetime import datetime from operator import attrgetter -import string +from string import Template from urllib import urlencode from main.models import Package, PackageFile, Arch, Repo @@ -575,7 +575,7 @@ def download(request, name, repo, arch): 'repo': pkg.repo.name.lower(), 'file': pkg.filename, } - url = string.Template('${host}${repo}/os/${arch}/${file}').substitute(values) + url = Template('${host}${repo}/os/${arch}/${file}').substitute(values) return redirect(url) def arch_differences(request): |