]> granicus.if.org Git - python/commitdiff
Issue 26977, remove unneeded line in pvariance (duplicate call to _ss).
authorSteven D'Aprano <steve+python@pearwood.info>
Wed, 11 May 2016 01:50:13 +0000 (11:50 +1000)
committerSteven D'Aprano <steve+python@pearwood.info>
Wed, 11 May 2016 01:50:13 +0000 (11:50 +1000)
Lib/statistics.py

index 518f54654469edf53b71aa723d9c5e61e9ee687e..4f5c1c164a22f672e49a39f51c68bf8dfbac158f 100644 (file)
@@ -601,7 +601,6 @@ def pvariance(data, mu=None):
     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)