Skip to content

Commit edc4a9f

Browse files
add slots
1 parent 419cfa6 commit edc4a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/asyncio/events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def _run(self):
115115

116116
class _ThreadSafeHandle(Handle):
117117

118+
__slots__ = ('_lock',)
119+
118120
def __init__(self, callback, args, loop, context=None):
119121
super().__init__(callback, args, loop, context)
120122
self._lock = threading.RLock()

0 commit comments

Comments
 (0)