mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
In 'get_platform()', handle so-called POSIX systems that don't have
'uname()' -- specifically NeXTSTEP.
This commit is contained in:
parent
64d855adca
commit
ec84c21ce2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue