From fea2af1e9b0c99cac6cb8806c4af651a38e92d07 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 4 Jan 1993 09:16:51 +0000 Subject: * More changes due to stricter argument passing rules * Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time() returning a floating point number. (And fix old bug in calendar) * Add recursion level to mainloop.mainloop(), to make it reentrant. --- Lib/whrandom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/whrandom.py') diff --git a/Lib/whrandom.py b/Lib/whrandom.py index 662390483a..0a346903c8 100644 --- a/Lib/whrandom.py +++ b/Lib/whrandom.py @@ -39,7 +39,7 @@ class whrandom: if not xyz: # Initialize from current time import time - t = time.time() + t = int(time.time()) t, x = divmod(t, 256) t, y = divmod(t, 256) t, z = divmod(t, 256) -- cgit v1.2.1