]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
random module: Convert a "while 1" to "while True (GH-21700) 21730/head
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 2 Aug 2020 19:03:32 +0000 (12:03 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2020 19:03:32 +0000 (12:03 -0700)
Lib/random.py

index 37f71110403ad8bcadf4ff126a33170b0fb7e11c..3ea369b81b3e50f43ab6893648259b02e041277d 100644 (file)
@@ -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