mirror of https://github.com/python/cpython
Fixed a few lines that tabnanny complained about (one space before the
tabs).
This commit is contained in:
parent
2880f6ec95
commit
cc221c470f
|
@ -127,12 +127,12 @@ class whrandom:
|
||||||
n = (istop - istart + istep - 1) / istep
|
n = (istop - istart + istep - 1) / istep
|
||||||
elif istep < 0:
|
elif istep < 0:
|
||||||
n = (istop - istart + istep + 1) / istep
|
n = (istop - istart + istep + 1) / istep
|
||||||
else:
|
else:
|
||||||
raise ValueError, "zero step for randrange()"
|
raise ValueError, "zero step for randrange()"
|
||||||
|
|
||||||
if n <= 0:
|
if n <= 0:
|
||||||
raise ValueError, "empty range for randrange()"
|
raise ValueError, "empty range for randrange()"
|
||||||
return istart + istep*int(self.random() * n)
|
return istart + istep*int(self.random() * n)
|
||||||
|
|
||||||
|
|
||||||
# Initialize from the current time
|
# Initialize from the current time
|
||||||
|
|
Loading…
Reference in New Issue