diff options
author | Marc-André Lemburg <mal@egenix.com> | 2005-11-07 16:11:02 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2005-11-07 16:11:02 (GMT) |
commit | 380f417e15dd36e6656a4f65e9c5ccd75134b8c1 (patch) | |
tree | a4c8a39da9f15a237bb82b9bb884ed684103961c /Lib/platform.py | |
parent | c6686b7c7e0a10e7dc472a0256a9823c4d7136f2 (diff) | |
download | cpython-380f417e15dd36e6656a4f65e9c5ccd75134b8c1.zip cpython-380f417e15dd36e6656a4f65e9c5ccd75134b8c1.tar.gz cpython-380f417e15dd36e6656a4f65e9c5ccd75134b8c1.tar.bz2 |
Patch by pythonic <pythonic@gmail.com> to support Fedora
as Linux distro.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 372fe92..ccceeb3 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -31,6 +31,9 @@ # Colin Kong, Trent Mick, Guido van Rossum # # History: +# +# <see CVS and SVN checkin messages for history> +# # 1.0.3 - added normalization of Windows system name # 1.0.2 - added more Windows support # 1.0.1 - reformatted to make doc.py happy @@ -104,7 +107,7 @@ __copyright__ = """ """ -__version__ = '1.0.2' +__version__ = '1.0.4' import sys,string,os,re @@ -217,9 +220,12 @@ def _dist_try_harder(distname,version,id): _release_filename = re.compile(r'(\w+)[-_](release|version)') _release_version = re.compile(r'([\d.]+)[^(]*(?:\((.+)\))?') +# Note:In supported_dists below we need 'fedora' before 'redhat' as in +# Fedora redhat-release is a link to fedora-release. + def dist(distname='',version='',id='', - supported_dists=('SuSE','debian','redhat','mandrake')): + supported_dists=('SuSE', 'debian', 'fedora', 'redhat', 'mandrake')): """ Tries to determine the name of the Linux OS distribution name. |