Skip to content

Commit 8dafd04

Browse files
committed
Fixed django#17257 - Removed outdated comment in syndication view
Thanks krzysiumed for the patch.
1 parent 8855f93 commit 8dafd04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django/contrib/syndication/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from django.utils.html import escape
1111
from django.utils.timezone import is_naive
1212

13+
1314
def add_domain(domain, url, secure=False):
1415
protocol = 'https' if secure else 'http'
1516
if url.startswith('//'):
@@ -18,8 +19,6 @@ def add_domain(domain, url, secure=False):
1819
elif not (url.startswith('http://')
1920
or url.startswith('https://')
2021
or url.startswith('mailto:')):
21-
# 'url' must already be ASCII and URL-quoted, so no need for encoding
22-
# conversions here.
2322
url = iri_to_uri('%s://%s%s' % (protocol, domain, url))
2423
return url
2524

0 commit comments

Comments
 (0)