[Python-checkins] cpython: Minor beautification
raymond.hettinger
python-checkins at python.org
Fri Jun 24 22:36:48 EDT 2016
https://hg.python.org/cpython/rev/82723e603a34
changeset: 102165:82723e603a34
user: Raymond Hettinger <python at rcn.com>
date: Sat Jun 25 05:36:42 2016 +0300
summary:
Minor beautification
files:
Lib/random.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/random.py b/Lib/random.py
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -606,11 +606,11 @@
# This version due to Janne Sinkkonen, and matches all the std
# texts (e.g., Knuth Vol 2 Ed 3 pg 134 "the beta distribution").
- y = self.gammavariate(alpha, 1.)
+ y = self.gammavariate(alpha, 1.0)
if y == 0:
return 0.0
else:
- return y / (y + self.gammavariate(beta, 1.))
+ return y / (y + self.gammavariate(beta, 1.0))
## -------------------- Pareto --------------------
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list