From: Chris Larson Date: Wed, 16 Feb 2011 22:24:24 +0000 (-0700) Subject: runqueue: simplify RunQueueStats.copy X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~46450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f73918d99e1aff5447830971eb993f4a7e1e4e1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git runqueue: simplify RunQueueStats.copy (Bitbake rev: 778571f155139fcf43d0e30e875c39d6592ae03f) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index abf7c003e58..f61e913b9e3 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):