From: Raymond Hettinger Date: Sun, 2 Aug 2020 19:03:32 +0000 (-0700) Subject: random module: Convert a "while 1" to "while True (GH-21700) X-Git-Tag: v3.10.0a1~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a613f90bf13038255bca028feeab6fad816edfd;p=thirdparty%2FPython%2Fcpython.git random module: Convert a "while 1" to "while True (GH-21700) --- diff --git a/Lib/random.py b/Lib/random.py index 37f71110403a..3ea369b81b3e 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