From: Guido van Rossum Date: Mon, 10 Aug 1998 20:07:53 +0000 (+0000) Subject: Fixed a few lines that tabnanny complained about (one space before the X-Git-Tag: v1.5.2a1~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc221c470fc51ab318ed3976119ab51c12a1d01c;p=python Fixed a few lines that tabnanny complained about (one space before the tabs). --- diff --git a/Lib/whrandom.py b/Lib/whrandom.py index 3bfd14f820..7f8fc60fab 100644 --- a/Lib/whrandom.py +++ b/Lib/whrandom.py @@ -127,12 +127,12 @@ class whrandom: n = (istop - istart + istep - 1) / istep elif istep < 0: n = (istop - istart + istep + 1) / istep - else: - raise ValueError, "zero step for randrange()" + else: + raise ValueError, "zero step for randrange()" - if n <= 0: - raise ValueError, "empty range for randrange()" - return istart + istep*int(self.random() * n) + if n <= 0: + raise ValueError, "empty range for randrange()" + return istart + istep*int(self.random() * n) # Initialize from the current time