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

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

index f9d3802ec5f83e2d777fbbad2a2dd4ed28ccd35d..463ac9e92c6a1d92d095d95146cf1eec86064fd6 100644 (file)
@@ -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):