Message217400
| Author |
pitrou |
| Recipients |
docs@python, giampaolo.rodola, gvanrossum, pitrou, qmega, vstinner, yselivanov |
| Date |
2014年04月28日.19:20:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1398712855.45.0.47796802283.issue21376@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|