mirror of https://github.com/python/cpython
random module: Convert a "while 1" to "while True (GH-21700)
This commit is contained in:
parent
5c3270939c
commit
6a613f90bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue