]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94713 - Replacing while 1 with while True (#94714)
authorItay <59503091+Nougat-Waffle@users.noreply.github.com>
Wed, 13 Jul 2022 03:53:14 +0000 (06:53 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 03:53:14 +0000 (22:53 -0500)
Lib/platform.py

index c272c407c77768323198747107e1873ab270bb84..df8faac88ca88a1c472fcdca5cdae29b9ce0abd5 100755 (executable)
@@ -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