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