]> granicus.if.org Git - python/commitdiff
Two places where _time() should be used said time.time(), which
authorGuido van Rossum <guido@python.org>
Fri, 29 May 1998 17:47:10 +0000 (17:47 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 29 May 1998 17:47:10 +0000 (17:47 +0000)
doesn't work of course.

Lib/threading.py

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