Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)

Unified Diff: Doc/library/sys.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/subprocess.rst ('k') | Doc/library/tempfile.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/sys.rst Tue Jul 26 09:37:46 2011 +0300
+++ b/Doc/library/sys.rst Mon Jul 25 09:47:18 2011 -0400
@@ -705,12 +705,6 @@
For Unix systems, this is the lowercased OS name as returned by ``uname -s``
with the first part of the version as returned by ``uname -r`` appended,
e.g. ``'sunos5'`` or ``'linux2'``, *at the time when Python was built*.
- Unless you want to test for a specific system version, it is therefore
- recommended to use the following idiom::
-
- if sys.platform.startswith('linux'):
- # Linux-specific code here...
-
For other systems, the values are:
================ ===========================
@@ -723,12 +717,6 @@
OS/2 EMX ``'os2emx'``
================ ===========================
- .. seealso::
- :attr:`os.name` has a coarser granularity. :func:`os.uname` gives
- system-dependent version information.
-
- The :mod:`platform` module provides detailed checks for the
- system's identity.
.. data:: prefix
« no previous file with comments | « Doc/library/subprocess.rst ('k') | Doc/library/tempfile.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+