commit: ce11f7e38d2e309359a6bf8963f4f7a0569fdc52
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 6 03:29:19 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct 6 03:29:19 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=ce11f7e3
lock: fix hardlink_active definition
This is a member function of a class, so it must have a |self| argument
first. The current code is clearly broken otherwise. Not that it seems
to matter as there aren't any callers in the current codebase.
catalyst/lock.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/lock.py b/catalyst/lock.py
index a6f9d3a..9f954eb 100644
--- a/catalyst/lock.py
+++ b/catalyst/lock.py
@@ -354,7 +354,7 @@ class LockDir:
return True
return False
- def hardlink_active(lock):
+ def hardlink_active(self, lock):
if not os.path.exists(lock):
return False