Skip to content

Commit 802aa1e

Browse files
authored
Update Windows download popup and list for 3.9. (#1611) (#1655)
1 parent c28c19a commit 802aa1e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

templates/downloads/os_list.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ <h2>Stable Releases</h2>
3838
{% for r in releases %}
3939
<li>
4040
<a href="{{ r.get_absolute_url }}">{{ r.name }} - {{ r.release_date|date }}</a>
41-
{% if os.slug == 'windows' and r.name >= 'Python 3.5' %}
42-
<p><strong>Note that {{ r.name }} <em>cannot</em> be used on Windows XP or earlier.</strong></p>
41+
{% if os.slug == 'windows' %}
42+
{% if r.name >= 'Python 3.9' %}
43+
<p><strong>Note that {{ r.name }} <em>cannot</em> be used on Windows 7 or earlier.</strong></p>
44+
{% elif r.name >= 'Python 3.5' %}
45+
<p><strong>Note that {{ r.name }} <em>cannot</em> be used on Windows XP or earlier.</strong></p>
46+
{% endif %}
4347
{% endif %}
4448
<ul>
4549
{% for f in r.files.all %}

templates/downloads/supernav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h4>Download for {{ data.os.name }}</h4>
1010
<p>
1111
<a class="button" href="{{ data.python3.url }}">{{ data.python3.release.name }}</a>
1212
</p>
13-
{% if data.os.slug == 'windows' %}<p><strong>Note that Python 3.5+ <em>cannot</em> be used on Windows XP or earlier.</strong></p>{% endif %}
13+
{% if data.os.slug == 'windows' %}<p><strong>Note that Python 3.9+ <em>cannot</em> be used on Windows 7 or earlier.</strong></p>{% endif %}
1414
<p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href="{% url 'download:download' %}">View the full list of downloads</a>.</p>
1515
</div>
1616
{% endfor %}

0 commit comments

Comments
 (0)