Skip to content

Commit ea6d979

Browse files
committed
Don't reimplement asyncio.isfuture.
1 parent ed6a947 commit ea6d979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvloop/loop.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cdef isfuture(obj):
4444
if aio_isfuture is None:
4545
return isinstance(obj, aio_Future)
4646
else:
47-
return getattr(obj, '_asyncio_future_blocking', None) is not None
47+
return aio_isfuture(obj)
4848

4949

5050
@cython.no_gc_clear

0 commit comments

Comments
 (0)