mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
remove support for BSD/OS (closes bpo-31624) (#3812)
This commit is contained in:
parent
a106aec2ed
commit
288d1daada
10 changed files with 11 additions and 69 deletions
|
@ -53,8 +53,8 @@ def get_platform ():
|
|||
|
||||
(osname, host, release, version, machine) = os.uname()
|
||||
|
||||
# Convert the OS name to lowercase, remove '/' characters
|
||||
# (to accommodate BSD/OS), and translate spaces (for "Power Macintosh")
|
||||
# Convert the OS name to lowercase, remove '/' characters, and translate
|
||||
# spaces (for "Power Macintosh")
|
||||
osname = osname.lower().replace('/', '')
|
||||
machine = machine.replace(' ', '_')
|
||||
machine = machine.replace('/', '-')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue