mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-21 12:51:53 +00:00
rename _synchronized in synchronize
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3079 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
fa7790fce3
commit
68a4d32212
1 changed files with 3 additions and 3 deletions
|
|
@ -95,9 +95,9 @@ def signal_handler (signal_number):
|
|||
return newfunc
|
||||
|
||||
|
||||
def _synchronized (lock, func):
|
||||
def synchronize (lock, func):
|
||||
"""
|
||||
Call function with aqcuired lock.
|
||||
Return synchronized function acquiring the given lock.
|
||||
"""
|
||||
def newfunc (*args, **kwargs):
|
||||
"""
|
||||
|
|
@ -121,7 +121,7 @@ def synchronized (lock):
|
|||
"""
|
||||
A decorator calling a function with aqcuired lock.
|
||||
"""
|
||||
return lambda func: _synchronized(lock, func)
|
||||
return lambda func: synchronize(lock, func)
|
||||
|
||||
|
||||
def notimplemented (func):
|
||||
|
|
|
|||
Loading…
Reference in a new issue