summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-11 19:29:15 -0500
committerDan McGee <dan@archlinux.org>2011-10-11 19:29:15 -0500
commit71e57570c262fffb11ca6e0dc97342119198f740 (patch)
tree3736af12cda316baffbcc4e5ba2a43f41901b847 /packages
parenta01a11cfad84bd44c1f5aeffcc0665bd93889e1d (diff)
Pylint suggested and other cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py2
-rw-r--r--packages/views.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/models.py b/packages/models.py
index d2fe1878..4cd3b1b5 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -62,7 +62,7 @@ class Signoff(models.Model):
# TODO: delayed import to avoid circular reference
from main.models import Package
return Package.objects.normal().filter(pkgbase=self.pkgbase,
- pkgver=self.pkgver, pkgrel=self.pkgrel, epoch=pkg.epoch,
+ pkgver=self.pkgver, pkgrel=self.pkgrel, epoch=self.epoch,
arch=self.arch, repo=self.repo)
@property
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):