]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35782: Fix error message in randrange (GH-11620)
authorKumar Akshay <k.akshay9721@gmail.com>
Mon, 21 Jan 2019 19:19:59 +0000 (00:49 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Jan 2019 19:19:59 +0000 (11:19 -0800)
https://bugs.python.org/issue35782

Lib/random.py

index e00a02623890a4cd1de1847d23b752911c1df725..8925b52c4730a71bae72492af8c1da73991ff8a0 100644 (file)
@@ -216,7 +216,7 @@ class Random(_random.Random):
         if step == 1 and width > 0:
             return istart + self._randbelow(width)
         if step == 1:
-            raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
+            raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
 
         # Non-unit step argument supplied.
         istep = _int(step)