From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 8 Dec 2021 11:41:50 +0000 (-0800) Subject: Fix double-space in exception message (GH-29955) (GH-29983) X-Git-Tag: v3.9.10~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25254d484248f5a555d30209f455b8d8ee2e72df;p=thirdparty%2FPython%2Fcpython.git Fix double-space in exception message (GH-29955) (GH-29983) (cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be) Co-authored-by: Ned Batchelder Co-authored-by: Ned Batchelder --- diff --git a/Lib/statistics.py b/Lib/statistics.py index f9d3802ec5f8..463ac9e92c6a 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):