Message217400
Gasp. Perhaps concurrent.futures.TimeoutError can inherit from the standard TimeoutError? The following patch doesn't seem to disrupt the test suite:
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -49,7 +49,7 @@ class CancelledError(Error):
"""The Future was cancelled."""
pass
-class TimeoutError(Error):
+class TimeoutError(Error, TimeoutError):
"""The operation exceeded the given deadline."""
pass |
|
Date |
User |
Action |
Args |
2014-04-28 19:20:55 | pitrou | set | recipients:
+ pitrou, gvanrossum, vstinner, giampaolo.rodola, docs@python, yselivanov, qmega |
2014-04-28 19:20:55 | pitrou | set | messageid: <1398712855.45.0.47796802283.issue21376@psf.upfronthosting.co.za> |
2014-04-28 19:20:55 | pitrou | link | issue21376 messages |
2014-04-28 19:20:55 | pitrou | create | |
|