From 6a613f90bf13038255bca028feeab6fad816edfd Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 2 Aug 2020 12:03:32 -0700 Subject: random module: Convert a "while 1" to "while True (GH-21700) --- Lib/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12