diff options
author | Guido van Rossum <guido@python.org> | 2003-02-27 20:14:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-27 20:14:51 (GMT) |
commit | 68468eba635570400f607e140425a222018e56f9 (patch) | |
tree | 2176c8822392383a88caa0a2209a1d2f3446d45c /Lib/threading.py | |
parent | f389c7727362321a91dbaff13b7e1cef6cbaa3d8 (diff) | |
download | cpython-68468eba635570400f607e140425a222018e56f9.zip cpython-68468eba635570400f607e140425a222018e56f9.tar.gz cpython-68468eba635570400f607e140425a222018e56f9.tar.bz2 |
Get rid of many apply() calls.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 81236da..1c37963 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -57,7 +57,7 @@ else: Lock = _allocate_lock def RLock(*args, **kwargs): - return apply(_RLock, args, kwargs) + return _RLock(*args, **kwargs) class _RLock(_Verbose): @@ -128,7 +128,7 @@ class _RLock(_Verbose): def Condition(*args, **kwargs): - return apply(_Condition, args, kwargs) + return _Condition(*args, **kwargs) class _Condition(_Verbose): @@ -240,7 +240,7 @@ class _Condition(_Verbose): def Semaphore(*args, **kwargs): - return apply(_Semaphore, args, kwargs) + return _Semaphore(*args, **kwargs) class _Semaphore(_Verbose): @@ -282,7 +282,7 @@ class _Semaphore(_Verbose): def BoundedSemaphore(*args, **kwargs): - return apply(_BoundedSemaphore, args, kwargs) + return _BoundedSemaphore(*args, **kwargs) class _BoundedSemaphore(_Semaphore): """Semaphore that checks that # releases is <= # acquires""" @@ -297,7 +297,7 @@ class _BoundedSemaphore(_Semaphore): def Event(*args, **kwargs): - return apply(_Event, args, kwargs) + return _Event(*args, **kwargs) class _Event(_Verbose): @@ -396,7 +396,7 @@ class Thread(_Verbose): def run(self): if self.__target: - apply(self.__target, self.__args, self.__kwargs) + self.__target(*self.__args, **self.__kwargs) def __bootstrap(self): try: |