aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorItay <59503091+Nougat-Waffle@users.noreply.github.com>2022-07-13 06:53:14 +0300
committerGitHub <noreply@github.com>2022-07-12 22:53:14 -0500
commitcceac5dd06fdbaba3f45b8be159dfa79b74ff237 (patch)
tree7c9e611b9ee29f8b5ba38e0a2e178210b4537d1b /Lib/platform.py
parente39ce7d4871429d3a48f51139eff9abacd719361 (diff)
downloadcpython-cceac5dd06fdbaba3f45b8be159dfa79b74ff237.tar.gz
cpython-cceac5dd06fdbaba3f45b8be159dfa79b74ff237.zip
gh-94713 - Replacing while 1 with while True (#94714)
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index c272c407c77..df8faac88ca 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