From: Guido van Rossum Date: Fri, 29 May 1998 17:47:10 +0000 (+0000) Subject: Two places where _time() should be used said time.time(), which X-Git-Tag: v1.5.2a1~519 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b39e461b89a587116b56f57a5e34ebb479466dd8;p=python Two places where _time() should be used said time.time(), which doesn't work of course. --- diff --git a/Lib/threading.py b/Lib/threading.py index d2ab9ed2f5..3b4b6b1abd 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -416,9 +416,9 @@ class Thread(_Verbose): if __debug__: self._note("%s.join(): thread stopped", self) else: - deadline = time.time() + timeout + deadline = _time() + timeout while not self.__stopped: - delay = deadline - time.time() + delay = deadline - _time() if delay <= 0: if __debug__: self._note("%s.join(): timed out", self)