pep2rss.py: Use HTTPS for RSS links (#1680)

This commit is contained in:
Hugo van Kemenade 2020-10-23 18:38:15 +03:00 committed by GitHub
parent e52ed7f4df
commit 984bac27c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ for dt, full_path in peps_with_dt[:10]:
pass
title = firstline_startingwith(full_path, 'Title:')
author = firstline_startingwith(full_path, 'Author:')
url = 'http://www.python.org/dev/peps/pep-%0.4d' % n
url = 'https://www.python.org/dev/peps/pep-%0.4d/' % n
item = rssgen.RSSItem(
title = 'PEP %d: %s' % (n, title),
link = url,
@ -65,7 +65,7 @@ procedure and schedules
""".strip()
rss = rssgen.RSS2(
title = 'Newest Python PEPs',
link = 'http://www.python.org/dev/peps',
link = 'https://www.python.org/dev/peps/',
description = desc,
lastBuildDate = datetime.datetime.now(),
items = items)