Commit 2433a2ab authored by Kumar Akshay's avatar Kumar Akshay Committed by Miss Islington (bot)

bpo-35782: Fix error message in randrange (GH-11620)



https://bugs.python.org/issue35782
parent e9b185f2
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment