commit:     019eca4e09848978975284802913dee574c41c96
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 15:58:12 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 15:58:12 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=019eca4e

lint: drop use of apply()

This builtin has been deprecated since python-2.3, so call the function
directly instead of via apply.

 catalyst/base/stagebase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 7bc7522..fcdf729 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1426,7 +1426,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                        print "--- Running action sequence: "+x
                        sys.stdout.flush()
                        try:
-                               apply(getattr(self,x))
+                               getattr(self, x)()
                        except LockInUse:
                                print "Error, unable to aquire the lock..."
                                print " Catalyst aborting...."

Reply via email to