Skip to content

Commit e113fe8

Browse files
authored
Fix wirtespace
1 parent 3c96cf1 commit e113fe8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/random.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,9 +837,9 @@ def binomialvariate(self, n=1, p=0.5):
837837
return x
838838
while True:
839839
try:
840-
y += _floor(_log2(random()) / c) + 1
841-
# The random() function can return 0.0, which causes log2(0.0) to raise a ValueError.
842-
# See https://github.com/python/cpython/issue/149221
840+
y += _floor(_log2(random()) / c) + 1
841+
# The random() function can return 0.0, which causes log2(0.0) to raise a ValueError.
842+
# See https://github.com/python/cpython/issue/149221
843843
except ValueError:
844844
continue
845845
if y > n:

0 commit comments

Comments
 (0)