summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Akshay <k.akshay9721@gmail.com>2019-01-22 00:49:59 +0530
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-01-21 11:19:59 -0800
commit2433a2ab705e93f9a44f01c260d351b205a73e9d (patch)
tree899c09dee5da53755381749f2a52970ee730be74
parente9b185f2a493cc54f0d49eac44bf21e8d7de2990 (diff)
downloadcpython-git-2433a2ab705e93f9a44f01c260d351b205a73e9d.tar.gz
bpo-35782: Fix error message in randrange (GH-11620)
https://bugs.python.org/issue35782
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py
index e00a026238..8925b52c47 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -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)