[kteam-tools 3/5] [link-to-tracker] Cleanups: fix setattr() issues
Juerg Haefliger
juerg.haefliger at canonical.com
Wed Jun 28 08:46:30 UTC 2017
Non-functional changes to fix the following pylint issues:
- Instance of 'WorkflowBugTask' has no <foo> member (no-member)
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
stable/link-to-tracker | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stable/link-to-tracker b/stable/link-to-tracker
index d76b82b3f56d..d784268e0dfa 100755
--- a/stable/link-to-tracker
+++ b/stable/link-to-tracker
@@ -31,10 +31,10 @@ class WorkflowBugTask(object):
def __init__(self, lp_task, task_name):
self.__status = None
self.__assignee = None
- setattr(self, 'name', task_name)
- setattr(self, 'importance', lp_task.importance)
- setattr(self, 'lp_task', lp_task)
self.__modified = False
+ self.name = task_name
+ self.importance = lp_task.importance
+ self.lp_task = lp_task
self.bug = lp_task.bug
# status
--
2.11.0
More information about the kernel-team
mailing list