]> granicus.if.org Git - python/commitdiff
Fixed a few lines that tabnanny complained about (one space before the
authorGuido van Rossum <guido@python.org>
Mon, 10 Aug 1998 20:07:53 +0000 (20:07 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Aug 1998 20:07:53 +0000 (20:07 +0000)
tabs).

Lib/whrandom.py

index 3bfd14f820c5aafed3afa1041cf5d48db431f37f..7f8fc60fab18268f1bb359dc6991cb159b99e362 100644 (file)
@@ -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