diff options
author | Guido van Rossum <guido@python.org> | 1998-08-10 20:07:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-10 20:07:53 (GMT) |
commit | cc221c470fc51ab318ed3976119ab51c12a1d01c (patch) | |
tree | c5b2d61bc29037bff5c63150b8f598dde4cfb1c0 /Lib/whrandom.py | |
parent | 2880f6ec95396a7f0e10ef46c7fa9f6fa2e3e202 (diff) | |
download | cpython-cc221c470fc51ab318ed3976119ab51c12a1d01c.zip cpython-cc221c470fc51ab318ed3976119ab51c12a1d01c.tar.gz cpython-cc221c470fc51ab318ed3976119ab51c12a1d01c.tar.bz2 |
Fixed a few lines that tabnanny complained about (one space before the
tabs).
Diffstat (limited to 'Lib/whrandom.py')
-rw-r--r-- | Lib/whrandom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/whrandom.py b/Lib/whrandom.py index 3bfd14f..7f8fc60 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 |