Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] buildstats: Drop spurious open() call
@ 2013-05-09 16:33 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-09 16:33 UTC (permalink / raw)
  To: openembedded-core

This file is already opened a few lines previously, so drop the duplicated
call.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 453c50b..e12e14f 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -217,7 +217,6 @@ python run_buildstats () {
         if timedata:
             time, cpu = timedata
             # write end of build and cpu used into build_time
-            file = open(build_time, "a")
             file.write("Elapsed time: %0.2f seconds \n" % (time))
             if cpu:
                 file.write("CPU usage: %0.1f%% \n" % cpu)





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-09 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 16:33 [PATCH] buildstats: Drop spurious open() call Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox