From: Itay <59503091+Nougat-Waffle@users.noreply.github.com> Date: Wed, 13 Jul 2022 03:53:14 +0000 (+0300) Subject: gh-94713 - Replacing while 1 with while True (#94714) X-Git-Tag: v3.12.0a1~970 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cceac5dd06fdbaba3f45b8be159dfa79b74ff237;p=thirdparty%2FPython%2Fcpython.git gh-94713 - Replacing while 1 with while True (#94714) --- diff --git a/Lib/platform.py b/Lib/platform.py index c272c407c777..df8faac88ca8 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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