From: Kumar Akshay Date: Mon, 21 Jan 2019 19:19:59 +0000 (+0530) Subject: bpo-35782: Fix error message in randrange (GH-11620) X-Git-Tag: v3.8.0a1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2433a2ab705e93f9a44f01c260d351b205a73e9d;p=thirdparty%2FPython%2Fcpython.git bpo-35782: Fix error message in randrange (GH-11620) https://bugs.python.org/issue35782 --- 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 @@ 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)