[Python-checkins] cpython (3.5): Issue 26977, remove unneeded line in pvariance (duplicate call to _ss).

steven.daprano python-checkins at python.org
Tue May 10 21:53:26 EDT 2016


https://hg.python.org/cpython/rev/6f27dbc55f10
changeset:   101293:6f27dbc55f10
branch:      3.5
parent:      101288:2b492ea961c1
user:        Steven D'Aprano <steve+python at pearwood.info>
date:        Wed May 11 11:50:13 2016 +1000
summary:
  Issue 26977, remove unneeded line in pvariance (duplicate call to _ss).

files:
  Lib/statistics.py |  1 -
  1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/Lib/statistics.py b/Lib/statistics.py
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -601,7 +601,6 @@
     n = len(data)
     if n < 1:
         raise StatisticsError('pvariance requires at least one data point')
-    ss = _ss(data, mu)
     T, ss = _ss(data, mu)
     return _convert(ss/n, T)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list