commit | 6a613f90bf13038255bca028feeab6fad816edfd | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Sun Aug 02 12:03:32 2020 -0700 |
committer | GitHub <noreply@github.com> | Sun Aug 02 12:03:32 2020 -0700 |
tree | 3105014ec5eda72ec623aa688f3dc13e89a24a08 | |
parent | 5c3270939c09e4c8e80fd26449b718a998701912 [diff] |
random module: Convert a "while 1" to "while True (GH-21700)
diff --git a/Lib/random.py b/Lib/random.py index 37f7111..3ea369b 100644 --- a/Lib/random.py +++ b/Lib/random.py
@@ -682,7 +682,7 @@ bbb = alpha - LOG4 ccc = alpha + ainv - while 1: + while True: u1 = random() if not 1e-7 < u1 < 0.9999999: continue