diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-07-07 11:34:04 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-07-07 11:34:04 +0200 |
| commit | 8dafd04c45a66ff60f0503da1ebea14628322b45 (patch) | |
| tree | 9a074b4cbaa52670e714ad13a7a72912bf436808 | |
| parent | 8855f9380e93d759eea93c32cdf25b76b72e15c4 (diff) | |
Fixed #17257 - Removed outdated comment in syndication view
Thanks krzysiumed for the patch.
| -rw-r--r-- | django/contrib/syndication/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/syndication/views.py b/django/contrib/syndication/views.py index af767e1867..773a1cd7bd 100644 --- a/django/contrib/syndication/views.py +++ b/django/contrib/syndication/views.py @@ -10,6 +10,7 @@ from django.utils.encoding import force_unicode, iri_to_uri, smart_unicode from django.utils.html import escape from django.utils.timezone import is_naive + def add_domain(domain, url, secure=False): protocol = 'https' if secure else 'http' if url.startswith('//'): @@ -18,8 +19,6 @@ def add_domain(domain, url, secure=False): elif not (url.startswith('http://') or url.startswith('https://') or url.startswith('mailto:')): - # 'url' must already be ASCII and URL-quoted, so no need for encoding - # conversions here. url = iri_to_uri('%s://%s%s' % (protocol, domain, url)) return url |
