Skip to content

Commit ac77939

Browse files
committed
Rollback micro-optimization
1 parent bf940f1 commit ac77939

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
@@ -626,7 +626,7 @@ cdef class Loop:
626626
ValueError if the object is invalid
627627
"""
628628
# Copy of the `selectors._fileobj_to_fd()` function.
629-
if type(fileobj) is int:
629+
if isinstance(fileobj, int):
630630
fd = fileobj
631631
else:
632632
try:

0 commit comments

Comments
 (0)