1 |
commit: 019eca4e09848978975284802913dee574c41c96 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 15:58:12 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 15:58:12 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=019eca4e |
7 |
|
8 |
lint: drop use of apply() |
9 |
|
10 |
This builtin has been deprecated since python-2.3, so call the function |
11 |
directly instead of via apply. |
12 |
|
13 |
catalyst/base/stagebase.py | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py |
17 |
index 7bc7522..fcdf729 100644 |
18 |
--- a/catalyst/base/stagebase.py |
19 |
+++ b/catalyst/base/stagebase.py |
20 |
@@ -1426,7 +1426,7 @@ class StageBase(TargetBase, ClearBase, GenBase): |
21 |
print "--- Running action sequence: "+x |
22 |
sys.stdout.flush() |
23 |
try: |
24 |
- apply(getattr(self,x)) |
25 |
+ getattr(self, x)() |
26 |
except LockInUse: |
27 |
print "Error, unable to aquire the lock..." |
28 |
print " Catalyst aborting...." |