]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 26977, remove unneeded line in pvariance (duplicate call to _ss).
authorSteven D'Aprano <steve@pearwood.info>
Sun, 8 May 2016 12:14:38 +0000 (22:14 +1000)
committerSteven D'Aprano <steve@pearwood.info>
Sun, 8 May 2016 12:14:38 +0000 (22:14 +1000)
Lib/statistics.py

index af5d41e89e7bdb64f2e3159c4213dc1291d48cb6..fc0c3d2328db5a750946fa4ff5a95f6690a5709e 100644 (file)
@@ -593,7 +593,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)