[elbe-devel] [PATCH 07/25] pylint - asyncworker: set member var in constructor

Manuel Traut manut at linutronix.de
Wed Aug 29 21:02:37 CEST 2018


Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/asyncworker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/asyncworker.py b/elbepack/asyncworker.py
index cbbca080..b54de2ae 100644
--- a/elbepack/asyncworker.py
+++ b/elbepack/asyncworker.py
@@ -477,9 +477,9 @@ class CheckoutVersionJob(AsyncWorkerJob):
     def __init__(self, project, version):
         AsyncWorkerJob.__init__(self, project)
         self.version = version
+        self.name = project.xml.text("project/name")
 
     def enqueue(self, queue, db):
-        self.name = self.project.xml.text("project/name")
         old_status = db.set_busy(self.project.builddir,
                                  ["build_done", "has_changes", "build_failed"])
 
-- 
2.18.0




More information about the elbe-devel mailing list