[Python-checkins] Fix double-space in exception message (GH-29955) (GH-29983)
asvetlov
webhook-mailer at python.org
Wed Dec 8 06:42:10 EST 2021
https://github.com/python/cpython/commit/25254d484248f5a555d30209f455b8d8ee2e72df
commit: 25254d484248f5a555d30209f455b8d8ee2e72df
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: asvetlov <andrew.svetlov at gmail.com>
date: 2021-12-08T13:41:50+02:00
summary:
Fix double-space in exception message (GH-29955) (GH-29983)
(cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be)
Co-authored-by: Ned Batchelder <ned at nedbatchelder.com>
Co-authored-by: Ned Batchelder <ned at nedbatchelder.com>
files:
M Lib/statistics.py
diff --git a/Lib/statistics.py b/Lib/statistics.py
index f9d3802ec5f83..463ac9e92c6a1 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -361,7 +361,7 @@ def geometric_mean(data):
return exp(fmean(map(log, data)))
except ValueError:
raise StatisticsError('geometric mean requires a non-empty dataset '
- ' containing positive numbers') from None
+ 'containing positive numbers') from None
def harmonic_mean(data):
More information about the Python-checkins
mailing list