diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-23 20:19:34 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-23 20:19:34 -0500 |
commit | 822898e57bc6d4e008ef58da309857e9ef8c98e6 (patch) | |
tree | 1af0836c927b87e2249628d47cdfefe77c3b18fd /feeds.py | |
parent | ea87160c397fe1daf63851f0ed0be146bea79196 (diff) | |
parent | 8e10699d53281be53c88a3695de6aa496e084dc6 (diff) |
Merge branch 'django14'
Conflicts:
templates/releng/result_section.html
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,10 +1,10 @@ +import hashlib import pytz from django.contrib.sites.models import Site from django.contrib.syndication.views import Feed from django.db.models import Q from django.utils.feedgenerator import Rss201rev2Feed -from django.utils.hashcompat import md5_constructor from django.views.decorators.http import condition from main.utils import retrieve_latest @@ -32,7 +32,7 @@ class GuidNotPermalinkFeed(Rss201rev2Feed): def package_etag(request, *args, **kwargs): latest = retrieve_latest(Package) if latest: - return md5_constructor(str(kwargs) + str(latest)).hexdigest() + return hashlib.md5(str(kwargs) + str(latest)).hexdigest() return None def package_last_modified(request, *args, **kwargs): @@ -108,7 +108,7 @@ class PackageFeed(Feed): def news_etag(request, *args, **kwargs): latest = retrieve_latest(News) if latest: - return md5_constructor(str(latest)).hexdigest() + return hashlib.md5(str(latest)).hexdigest() return None def news_last_modified(request, *args, **kwargs): |