diff options
author | Greg Ward <gward@python.net> | 2000-09-30 17:09:39 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-30 17:09:39 (GMT) |
commit | ec84c21ce2d022ea95bb67ab711f7580036611e5 (patch) | |
tree | f8c8b31216534e929b18fd43e475be0ece7c2ae8 /Lib | |
parent | 64d855adca8f78356e4699355e876810b8fd575f (diff) | |
download | cpython-ec84c21ce2d022ea95bb67ab711f7580036611e5.zip cpython-ec84c21ce2d022ea95bb67ab711f7580036611e5.tar.gz cpython-ec84c21ce2d022ea95bb67ab711f7580036611e5.tar.bz2 |
In 'get_platform()', handle so-called POSIX systems that don't have
'uname()' -- specifically NeXTSTEP.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index d52c69b..016119c 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -31,7 +31,7 @@ def get_platform (): For non-POSIX platforms, currently just returns 'sys.platform'. """ - if os.name != "posix": + if os.name != "posix" or not hasattr(os, 'uname'): # XXX what about the architecture? NT is Intel or Alpha, # Mac OS is M68k or PPC, etc. return sys.platform |