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:
calvin 2006-02-16 19:47:37 +00:00
parent fa7790fce3
commit 68a4d32212

View file

@ -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):