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

https://bugs.python.org/issue35782
This commit is contained in:
Kumar Akshay 2019-01-22 00:49:59 +05:30 committed by Miss Islington (bot)
parent e9b185f2a4
commit 2433a2ab70
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class Random(_random.Random):
if step == 1 and width > 0: if step == 1 and width > 0:
return istart + self._randbelow(width) return istart + self._randbelow(width)
if step == 1: 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. # Non-unit step argument supplied.
istep = _int(step) istep = _int(step)