Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b75c485

Browse files
committed
'get_platform()' now just returns 'sys.platform' on all platforms.
1 parent 22c6934 commit b75c485

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

Lib/distutils/util.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,10 @@ def extend (list, new_list):
4444

4545
def get_platform ():
4646
"""Return a string (suitable for tacking onto directory names) that
47-
identifies the current platform. Under Unix, identifies both the OS
48-
and hardware architecture, e.g. "linux-i586", "solaris-sparc",
49-
"irix-mips". For Windows and Mac OS, just returns 'sys.platform' --
50-
i.e. "???" or "???"."""
51-
52-
if os.name == 'posix':
53-
(OS, _, rel, _, arch) = os.uname()
54-
return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch))
55-
else:
56-
return sys.platform
57-
58-
# get_platform()
47+
identifies the current platform. Currently, this is just
48+
'sys.platform'.
49+
"""
50+
return sys.platform
5951

6052

6153
def convert_path (pathname):

0 commit comments

Comments
 (0)