[Python-checkins] bpo-35782: Fix error message in randrange (GH-11620)
Miss Islington (bot)
webhook-mailer at python.org
Mon Jan 21 14:20:16 EST 2019
https://github.com/python/cpython/commit/2433a2ab705e93f9a44f01c260d351b205a73e9d
commit: 2433a2ab705e93f9a44f01c260d351b205a73e9d
branch: master
author: Kumar Akshay <k.akshay9721 at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019年01月21日T11:19:59-08:00
summary:
bpo-35782: Fix error message in randrange (GH-11620)
https://bugs.python.org/issue35782
files:
M Lib/random.py
diff --git a/Lib/random.py b/Lib/random.py
index e00a02623890..8925b52c4730 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -216,7 +216,7 @@ def randrange(self, start, stop=None, step=1, _int=int):
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)
More information about the Python-checkins
mailing list