Patchwork [bitbake-devel,04/14] toasterui: avoid variable name conflict

login
register
mail settings
Submitter Alexandru DAMIAN
Date April 4, 2014, 2:10 p.m.
Message ID <6ed7db6e74062825f8537ee5482fff8846126b9f.1396620556.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/70117/
State New
Headers show

Comments

Alexandru DAMIAN - April 4, 2014, 2:10 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

We rename a local variable in as to prevent a conflict with
a similary named function parameter.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 lib/bb/ui/buildinfohelper.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Patch

diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index e4d2f1f..dd93d0b 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -761,10 +761,10 @@  class BuildInfoHelper(object):
             recipe_information = self._get_recipe_information_from_taskfile(fn)
             recipe = self.orm_wrapper.get_update_recipe_object(recipe_information)
             class MockEvent: pass
-            event = MockEvent()
-            event.taskname = taskname
-            event.taskhash = taskhash
-            task_information = self._get_task_information(event,recipe)
+            mevent = MockEvent()
+            mevent.taskname = taskname
+            mevent.taskhash = taskhash
+            task_information = self._get_task_information(mevent,recipe)
 
             task_information['start_time'] = datetime.datetime.now()
             task_information['outcome'] = Task.OUTCOME_NA
@@ -780,10 +780,10 @@  class BuildInfoHelper(object):
             recipe_information = self._get_recipe_information_from_taskfile(fn)
             recipe = self.orm_wrapper.get_update_recipe_object(recipe_information)
             class MockEvent: pass
-            event = MockEvent()
-            event.taskname = taskname
-            event.taskhash = taskhash
-            task_information = self._get_task_information(event,recipe)
+            mevent = MockEvent()
+            mevent.taskname = taskname
+            mevent.taskhash = taskhash
+            task_information = self._get_task_information(mevent,recipe)
 
             task_information['path_to_sstate_obj'] = sstatefile