Mercurial > cpython-lru_cache-weakref
diff Lib/threading.py @ 8454:2bd8d520ffac legacy-trunk
Two places where _time() should be used said time.time(), which
doesn't work of course.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 29 May 1998 17:47:10 +0000 |
| parents | 93aa08c77e60 |
| children | 049aa3a8a172 |
line wrap: on
line diff
--- a/Lib/threading.py Fri May 29 13:34:03 1998 +0000 +++ b/Lib/threading.py Fri May 29 17:47:10 1998 +0000 @@ -416,9 +416,9 @@ 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)
