mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-94713 - Replacing while 1 with while True (#94714)
This commit is contained in:
parent
e39ce7d487
commit
cceac5dd06
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ def _platform(*args):
|
||||||
platform = platform.replace('unknown', '')
|
platform = platform.replace('unknown', '')
|
||||||
|
|
||||||
# Fold '--'s and remove trailing '-'
|
# Fold '--'s and remove trailing '-'
|
||||||
while 1:
|
while True:
|
||||||
cleaned = platform.replace('--', '-')
|
cleaned = platform.replace('--', '-')
|
||||||
if cleaned == platform:
|
if cleaned == platform:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue