Skip to content

Commit 6a613f9

Browse files
authored
random module: Convert a "while 1" to "while True (GH-21700)
1 parent 5c32709 commit 6a613f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def gammavariate(self, alpha, beta):
682682
bbb = alpha - LOG4
683683
ccc = alpha + ainv
684684

685-
while 1:
685+
while True:
686686
u1 = random()
687687
if not 1e-7 < u1 < 0.9999999:
688688
continue

0 commit comments

Comments
 (0)