Skip to content

Commit 5300aa5

Browse files
committed
s/Mac OS X/macOS/
The database on python.org is already updated.
1 parent 3343536 commit 5300aa5

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

docs/source/administration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here is an example of what that looks like on the site.
2222
.. image:: _images/supernav-example.png
2323
:alt: Example Supernav image
2424

25-
The sub-nav items on the left are simply nested :ref:`navigation` links in SiteTree relative to the 'Download' item in the tree. The larger *Download for Mac OSX* box however is what we refer to as the *supernav*.
25+
The sub-nav items on the left are simply nested :ref:`navigation` links in SiteTree relative to the 'Download' item in the tree. The larger *Download for macOS* box however is what we refer to as the *supernav*.
2626

2727
Most supernavs are updated automatically based on the underlying Django application content using signals.
2828
By convention the application will have a template named ``supernav.html``. For example, upon saving any published :ref:`Release <downloads>` a Django signal is fired to update the ``supernav-python-downloads`` box with the most current Python2 and Python3 releases. In this case the markup is structured in a way to allow for the automatic OS detection Javascript to show the user the appropriate download links for the OS they are browsing with.

downloads/tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DownloadMixin:
1313
def setUpClass(cls):
1414
super().setUpClass()
1515
cls.windows, _ = OS.objects.get_or_create(name='Windows')
16-
cls.osx, _ = OS.objects.get_or_create(name='Mac OSX')
16+
cls.osx, _ = OS.objects.get_or_create(name='macOS')
1717
cls.linux, _ = OS.objects.get_or_create(name='Linux')
1818

1919

downloads/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class DownloadModelTests(BaseDownloadTests):
66

77
def test_stringification(self):
8-
self.assertEqual(str(self.osx), 'Mac OSX')
8+
self.assertEqual(str(self.osx), 'macOS')
99
self.assertEqual(str(self.release_275), 'Python 2.7.5')
1010

1111
def test_published(self):

fixtures/boxes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,14 @@
332332
{
333333
"fields": {
334334
"label": "download-banner",
335-
"content": "<p>Looking for Python with a different OS? Python for <a href=\"/downloads/windows/\">Windows</a>, <a href=\"/downloads/source/\">Linux/UNIX</a>, <a href=\"/downloads/mac-osx/\">Mac OS X</a>, <a href=\"/download/other/\">Other</a></p>\r\n<p style=\"margin-top: 0.35em\">Want to help test development versions of Python? <a href=\"/download/pre-releases/\">Pre-releases</a></p>\r\n<p style=\"margin-top: 0.35em\">Looking for Python 2.7? See below for specific releases</p>",
335+
"content": "<p>Looking for Python with a different OS? Python for <a href=\"/downloads/windows/\">Windows</a>, <a href=\"/downloads/source/\">Linux/UNIX</a>, <a href=\"/downloads/macos/\">macOS</a>, <a href=\"/download/other/\">Other</a></p>\r\n<p style=\"margin-top: 0.35em\">Want to help test development versions of Python? <a href=\"/download/pre-releases/\">Pre-releases</a></p>\r\n<p style=\"margin-top: 0.35em\">Looking for Python 2.7? See below for specific releases</p>",
336336
"content_markup_type": "html"
337337
}
338338
},
339339
{
340340
"fields": {
341341
"label": "download-dev",
342-
"content": "<h2>Information about specific ports, and developer info</h2>\r\n\r\n<ul>\r\n <li><a href=\"/downloads/windows/\">Windows (and DOS)</a></li>\r\n <li><a href=\"/downloads/mac-osx/\">Macintosh</a></li>\r\n <li><a href=\"/download/other/\">Other platforms</a></li>\r\n <li><a href=\"/downloads/source/\">Source</a></li>\r\n <li><a href=\"/dev/\">Python Developer's Guide</a></li>\r\n <li><a href=\"http://bugs.python.org\">Python Issue Tracker</a></li>\r\n</ul>",
342+
"content": "<h2>Information about specific ports, and developer info</h2>\r\n\r\n<ul>\r\n <li><a href=\"/downloads/windows/\">Windows (and DOS)</a></li>\r\n <li><a href=\"/downloads/macos/\">Macintosh</a></li>\r\n <li><a href=\"/download/other/\">Other platforms</a></li>\r\n <li><a href=\"/downloads/source/\">Source</a></li>\r\n <li><a href=\"/dev/\">Python Developer's Guide</a></li>\r\n <li><a href=\"http://bugs.python.org\">Python Issue Tracker</a></li>\r\n</ul>",
343343
"content_markup_type": "html"
344344
}
345345
},
@@ -374,7 +374,7 @@
374374
{
375375
"fields": {
376376
"label": "supernav-python-downloads",
377-
"content": "<!-- download supernav from templates/downloads/supernav.html -->\n<li class=\"tier-2 super-navigation\">\n \n <div class=\"download-os-mac-osx\" style=\"display: none;\">\n \n <h4>Download for Mac OS X</h4>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/python-3.5.2-macosx10.6.pkg\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/python-2.7.12-macosx10.6.pkg\">Python 2.7.12</a>\n </p>\n \n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-os-source\" style=\"display: none;\">\n \n <h3>Python Source</h3>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz\">Python 2.7.12</a>\n </p>\n \n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-os-windows\" style=\"display: none;\">\n \n <h4>Download for Windows</h4>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi\">Python 2.7.12</a>\n </p>\n <p><strong>Note that Python 3.5+ <em>cannot</em> be used on Windows XP or earlier.</strong></p>\n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-unknown\">\n <h4>Download Python for Any OS</h4>\n <p>Python can be used on many operating systems and environments.</p>\n <p>\n <a class=\"button\" href=\"/downloads/operating-systems/\">View the full list of downloads</a>\n </p>\n </div>\n</li>\n",
377+
"content": "<!-- download supernav from templates/downloads/supernav.html -->\n<li class=\"tier-2 super-navigation\">\n \n <div class=\"download-os-macos\" style=\"display: none;\">\n \n <h4>Download for macOS</h4>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/python-3.5.2-macosx10.6.pkg\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/python-2.7.12-macosx10.6.pkg\">Python 2.7.12</a>\n </p>\n \n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-os-source\" style=\"display: none;\">\n \n <h3>Python Source</h3>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz\">Python 2.7.12</a>\n </p>\n \n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-os-windows\" style=\"display: none;\">\n \n <h4>Download for Windows</h4>\n \n <p>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe\">Python 3.5.2</a>\n <a class=\"button\" href=\"https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi\">Python 2.7.12</a>\n </p>\n <p><strong>Note that Python 3.5+ <em>cannot</em> be used on Windows XP or earlier.</strong></p>\n <p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href=\"/downloads/\">View the full list of downloads</a>.</p>\n </div>\n \n <div class=\"download-unknown\">\n <h4>Download Python for Any OS</h4>\n <p>Python can be used on many operating systems and environments.</p>\n <p>\n <a class=\"button\" href=\"/downloads/operating-systems/\">View the full list of downloads</a>\n </p>\n </div>\n</li>\n",
378378
"content_markup_type": "html"
379379
}
380380
},

fixtures/sitetree_menus.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,9 @@
419419
"model": "sitetree.treeitem",
420420
"pk": 20,
421421
"fields": {
422-
"title": "Mac OS X",
422+
"title": "macOS",
423423
"hint": "",
424-
"url": "/downloads/mac-osx/",
424+
"url": "/downloads/macos/",
425425
"urlaspattern": false,
426426
"tree": 1,
427427
"hidden": false,

static/sass/_layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@
937937
<ul class="subnav menu" role="menu" aria-hidden="true">
938938
<li class="tier-2 element-1" role="treeitem"><a href="#">Releases</a></li>
939939
<li class="super-navigation">
940-
<h2>Download for Mac OSX</h2>
940+
<h2>Download for macOS</h2>
941941
<p>Not the system you are looking for? Python can be used on 21 different operating systems and environments. <a href="#">View the full list</a>.
942942
</p><p>
943943
<a class="button">Python 3.3.0</a>

static/sass/mq.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/sass/no-mq.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)