Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97310:cfffac8c5062
Date: 2019-08-27 16:21 +0100
http://bitbucket.org/pypy/pypy/changeset/cfffac8c5062/
Log: Remove accidentally duplicated definition for isfuture()
diff --git a/lib-python/3/asyncio/futures.py b/lib-python/3/asyncio/futures.py
--- a/lib-python/3/asyncio/futures.py
+++ b/lib-python/3/asyncio/futures.py
@@ -107,17 +107,6 @@
self.loop.call_exception_handler({'message': msg})
-def isfuture(obj):
- """Check for a Future.
-
- This returns True when obj is a Future instance or is advertising
- itself as duck-type compatible by setting _asyncio_future_blocking.
- See comment in Future for more details.
- """
- return (hasattr(obj.__class__, '_asyncio_future_blocking') and
- obj._asyncio_future_blocking is not None)
-
-
class Future:
"""This class is *almost* compatible with concurrent.futures.Future.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit