]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix double-space in exception message (GH-29955)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 Dec 2021 11:07:27 +0000 (03:07 -0800)
committerGitHub <noreply@github.com>
Wed, 8 Dec 2021 11:07:27 +0000 (03:07 -0800)
(cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Lib/statistics.py

index cfcc456fd786efafb0f732020956ff052d4b4aa1..f66245380abb17a9546583c797866c4cfd1e1aee 100644 (file)
@@ -374,7 +374,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, weights=None):