Skip to content

Commit 2433a2a

Browse files
kakshay21miss-islington
authored andcommitted
bpo-35782: Fix error message in randrange (GH-11620)
https://bugs.python.org/issue35782
1 parent e9b185f commit 2433a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def randrange(self, start, stop=None, step=1, _int=int):
216216
if step == 1 and width > 0:
217217
return istart + self._randbelow(width)
218218
if step == 1:
219-
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
219+
raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
220220

221221
# Non-unit step argument supplied.
222222
istep = _int(step)

0 commit comments

Comments
 (0)