gh-94713 - Replacing while 1 with while True (#94714)

This commit is contained in:
Itay 2022-07-13 06:53:14 +03:00 committed by GitHub
parent e39ce7d487
commit cceac5dd06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -561,7 +561,7 @@ def _platform(*args):
platform = platform.replace('unknown', '')
# Fold '--'s and remove trailing '-'
while 1:
while True:
cleaned = platform.replace('--', '-')
if cleaned == platform:
break