mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -22,7 +22,7 @@ class Generator:
|
|||
self.putlock.acquire()
|
||||
if not self.killed:
|
||||
try:
|
||||
apply(self.func, (self,) + self.args)
|
||||
self.func(self, *self.args)
|
||||
except Killed:
|
||||
pass
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue