diff options
author | Greg Ward <gward@python.net> | 2000-06-18 15:45:55 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-18 15:45:55 (GMT) |
commit | b75c485f0bc6394f616d4a0bc746e613fd7b1021 (patch) | |
tree | f3a0394ac8be37d3729cda04e03a0c3c87bad3d9 /Lib | |
parent | 22c69348857329c8a92234a3a87ddb4e120d39aa (diff) | |
download | cpython-b75c485f0bc6394f616d4a0bc746e613fd7b1021.zip cpython-b75c485f0bc6394f616d4a0bc746e613fd7b1021.tar.gz cpython-b75c485f0bc6394f616d4a0bc746e613fd7b1021.tar.bz2 |
'get_platform()' now just returns 'sys.platform' on all platforms.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/util.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 279f246..74df8aa 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -44,18 +44,10 @@ def extend (list, new_list): def get_platform (): """Return a string (suitable for tacking onto directory names) that - identifies the current platform. Under Unix, identifies both the OS - and hardware architecture, e.g. "linux-i586", "solaris-sparc", - "irix-mips". For Windows and Mac OS, just returns 'sys.platform' -- - i.e. "???" or "???".""" - - if os.name == 'posix': - (OS, _, rel, _, arch) = os.uname() - return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch)) - else: - return sys.platform - -# get_platform() + identifies the current platform. Currently, this is just + 'sys.platform'. + """ + return sys.platform def convert_path (pathname): |