Kaydet (Commit) ec84c21c authored tarafından Greg Ward's avatar Greg Ward

In 'get_platform()', handle so-called POSIX systems that don't have

'uname()' -- specifically NeXTSTEP.
üst 64d855ad
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment