From 2433a2ab705e93f9a44f01c260d351b205a73e9d Mon Sep 17 00:00:00 2001 From: Kumar Akshay Date: Tue, 22 Jan 2019 00:49:59 +0530 Subject: bpo-35782: Fix error message in randrange (GH-11620) https://bugs.python.org/issue35782 --- Lib/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/random.py b/Lib/random.py index e00a026..8925b52 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) -- cgit v0.12