mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Fix double-space in exception message (GH-29955)
This commit is contained in:
parent
7989e9dff6
commit
c602c1be43
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ def geometric_mean(data):
|
||||||
return exp(fmean(map(log, data)))
|
return exp(fmean(map(log, data)))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise StatisticsError('geometric mean requires a non-empty dataset '
|
raise StatisticsError('geometric mean requires a non-empty dataset '
|
||||||
' containing positive numbers') from None
|
'containing positive numbers') from None
|
||||||
|
|
||||||
|
|
||||||
def harmonic_mean(data, weights=None):
|
def harmonic_mean(data, weights=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue