random module: Convert a "while 1" to "while True (GH-21700)

This commit is contained in:
Raymond Hettinger 2020-08-02 12:03:32 -07:00 committed by GitHub
parent 5c3270939c
commit 6a613f90bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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