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/mimetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/mimetools.py') diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 79c6fb1323..84eff9d0d3 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -108,6 +108,6 @@ def choose_boundary(): pid = `os.getpid()` seed = `rand.rand()` _prefix = hostid + '.' + uid + '.' + pid - timestamp = `time.time()` + timestamp = `int(time.time())` seed = `rand.rand()` return _prefix + '.' + timestamp + '.' + seed -- cgit v1.2.1