Skip to content

Commit 97c174a

Browse files
committed
Micro-optimize fileobj_to_fd()
1 parent f38a6c3 commit 97c174a

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 isinstance(fileobj, int):
629+
if type(fileobj) is int:
630630
fd = fileobj
631631
else:
632632
try:

0 commit comments

Comments
 (0)