]> granicus.if.org Git - python/commitdiff
Merge with 3.2.
authorGeorg Brandl <georg@python.org>
Sun, 4 Sep 2011 06:42:26 +0000 (08:42 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 4 Sep 2011 06:42:26 +0000 (08:42 +0200)
1  2 
Doc/library/sys.rst
Doc/license.rst
Doc/tools/sphinxext/susp-ignored.csv
LICENSE

index d2986e490b926cb4dfbc42dd09873b34f9f6d867,7f3d82757cd1c3ec6eb90b08dbd707c08f611310..acdde6d62a1c93fbe2f9a0502c880b9400f66d6b
@@@ -710,23 -707,28 +710,27 @@@ always available
  
        if sys.platform.startswith('freebsd'):
            # FreeBSD-specific code here...
+       elif sys.platform.startswith('linux'):
+           # Linux-specific code here...
  
 -   .. versionchanged:: 3.2.2
 -      Since lots of code check for ``sys.platform == 'linux2'``, and there is
 -      no essential change between Linux 2.x and 3.x, ``sys.platform`` is always
 -      set to ``'linux2'``, even on Linux 3.x.  In Python 3.3 and later, the
 -      value will always be set to ``'linux'``, so it is recommended to always
 -      use the ``startswith`` idiom presented above.
 -
     For other systems, the values are:
  
 -   ====================== ===========================
 -   System                 :data:`platform` value
 -   ====================== ===========================
 -   Linux (2.x *and* 3.x)  ``'linux2'``
 -   Windows                ``'win32'``
 -   Windows/Cygwin         ``'cygwin'``
 -   Mac OS X               ``'darwin'``
 -   OS/2                   ``'os2'``
 -   OS/2 EMX               ``'os2emx'``
 -   ====================== ===========================
 +   ================ ===========================
 +   System           :data:`platform` value
 +   ================ ===========================
 +   Linux            ``'linux'``
 +   Windows          ``'win32'``
 +   Windows/Cygwin   ``'cygwin'``
 +   Mac OS X         ``'darwin'``
 +   OS/2             ``'os2'``
 +   OS/2 EMX         ``'os2emx'``
 +   ================ ===========================
 +
 +   .. versionchanged:: 3.3
 +      On Linux, :attr:`sys.platform` doesn't contain the major version anymore.
-       It is always ``'linux'``, instead of ``'linux2'`` or ``'linux3'``.
++      It is always ``'linux'``, instead of ``'linux2'`` or ``'linux3'``.  Since
++      older Python versions include the version number, it is recommended to
++      always use the ``startswith`` idiom presented above.
  
     .. seealso::
        :attr:`os.name` has a coarser granularity.  :func:`os.uname` gives
        The :mod:`platform` module provides detailed checks for the
        system's identity.
  
++
  .. data:: prefix
  
     A string giving the site-specific directory prefix where the platform
diff --cc Doc/license.rst
index 9119f18e98a7eecc92908b6bcadc6927a0ada4d2,8693a0fb5785fc0fd626339a7cf9b9e504b5f3ec..5050ff09f8635474155fba221ef81efd080b7cb3
@@@ -110,8 -114,10 +114,12 @@@ been GPL-compatible; the table below su
  +----------------+--------------+------------+------------+-----------------+
  | 3.2            | 3.1          | 2011       | PSF        | yes             |
  +----------------+--------------+------------+------------+-----------------+
+ | 3.2.1          | 3.2          | 2011       | PSF        | yes             |
+ +----------------+--------------+------------+------------+-----------------+
+ | 3.2.2          | 3.2.1        | 2011       | PSF        | yes             |
+ +----------------+--------------+------------+------------+-----------------+
 +| 3.3            | 3.2          | 2012       | PSF        | yes             |
 ++----------------+--------------+------------+------------+-----------------+
  
  .. note::
  
Simple merge
diff --cc LICENSE
index d3cde010f0d3533065b2331219fdd1ca5876e547,48dbba71baf37a810a8b7d22b482aca2b6bf7ec7..3a37dd6bc896f7744e1674f2408a32b43e39df0d
+++ b/LICENSE
@@@ -67,9 -67,12 +67,13 @@@ the various releases
      3.0.1           3.0         2009        PSF         yes
      3.1             3.0.1       2009        PSF         yes
      3.1.1           3.1         2009        PSF         yes
-     3.1.2           3.1         2010        PSF         yes
+     3.1.2           3.1.1       2010        PSF         yes
+     3.1.3           3.1.2       2010        PSF         yes
+     3.1.4           3.1.3       2011        PSF         yes
      3.2             3.1         2011        PSF         yes
+     3.2.1           3.2         2011        PSF         yes
+     3.2.2           3.2.1       2011        PSF         yes
 +    3.3             3.2         2012        PSF         yes
  
  Footnotes: