summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-08-02 19:03:32 (GMT)
committerGitHub <noreply@github.com>2020-08-02 19:03:32 (GMT)
commit6a613f90bf13038255bca028feeab6fad816edfd (patch)
tree3105014ec5eda72ec623aa688f3dc13e89a24a08 /Lib/random.py
parent5c3270939c09e4c8e80fd26449b718a998701912 (diff)
downloadcpython-6a613f90bf13038255bca028feeab6fad816edfd.zip
cpython-6a613f90bf13038255bca028feeab6fad816edfd.tar.gz
cpython-6a613f90bf13038255bca028feeab6fad816edfd.tar.bz2
random module: Convert a "while 1" to "while True (GH-21700)
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py
index 37f7111..3ea369b 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -682,7 +682,7 @@ class Random(_random.Random):
bbb = alpha - LOG4
ccc = alpha + ainv
- while 1:
+ while True:
u1 = random()
if not 1e-7 < u1 < 0.9999999:
continue