Skip to content

Commit

Permalink
update version and submodule, also sync with bpo-34819
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Oct 8, 2018
1 parent c57db55 commit 5726b61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions wwqLyParse/common/concurrent_futures/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def as_completed(fs, timeout=None):
before the given timeout.
"""
if timeout is not None:
end_time = timeout + time.time()
end_time = timeout + time.monotonic()

fs = set(fs)
total_futures = len(fs)
Expand All @@ -231,7 +231,7 @@ def as_completed(fs, timeout=None):
if timeout is None:
wait_timeout = None
else:
wait_timeout = end_time - time.time()
wait_timeout = end_time - time.monotonic()
if wait_timeout < 0:
raise TimeoutError(
'%d (of %d) futures unfinished' % (
Expand Down Expand Up @@ -550,7 +550,7 @@ def map(self, fn, *iterables, timeout=None, chunksize=1):
Exception: If fn(*args) raises for any values.
"""
if timeout is not None:
end_time = timeout + time.time()
end_time = timeout + time.monotonic()

fs = [self.submit(fn, *args) for args in zip(*iterables)]

Expand All @@ -565,7 +565,7 @@ def result_iterator():
if timeout is None:
yield fs.pop().result()
else:
yield fs.pop().result(end_time - time.time())
yield fs.pop().result(end_time - time.monotonic())
finally:
for future in fs:
future.cancel()
Expand Down
2 changes: 1 addition & 1 deletion wwqLyParse/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.8
1.5.9
2 changes: 1 addition & 1 deletion wwqLyParse/ykdl

0 comments on commit 5726b61

Please sign in to comment.