From 41f8f467dc2bc0cab734fd5969feb6bab58386ef Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 16 Oct 2008 07:19:16 +0000 Subject: [PATCH] No self here. --- pisi/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/api.py b/pisi/api.py index 1922ce3d..a2de9abd 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -53,12 +53,12 @@ def locked(func): """ Decorator for synchronizing privileged functions """ - def wrapper(self,*__args,**__kw): + def wrapper(*__args,**__kw): lock = file(pisi.util.join_path(pisi.context.config.lock_dir(), 'pisi'), 'w') try: fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB) try: - return func(self,*__args,**__kw) + return func(*__args,**__kw) except Exception, e: lock.close() raise e