From 5f73918d99e1aff5447830971eb993f4a7e1e4e1 Mon Sep 17 00:00:00 2001
From: Chris Larson <chris_larson@mentor.com>
Date: Wed, 16 Feb 2011 15:24:24 -0700
Subject: runqueue: simplify RunQueueStats.copy

(Bitbake rev: 778571f155139fcf43d0e30e875c39d6592ae03f)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 bitbake/lib/bb/runqueue.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'bitbake/lib/bb')

diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index abf7c003e..f61e913b9 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -48,10 +48,7 @@ class RunQueueStats:
 
     def copy(self):
         obj = self.__class__(self.total)
-        obj.completed = self.completed
-        obj.skipped = self.skipped
-        obj.failed = self.failed
-        obj.active = self.active
+        obj.__dict__.update(self.__dict__)
         return obj
 
     def taskFailed(self):
-- 
cgit v1.2.3