Patchwork buildstats: Drop spurious open() call

login
register
mail settings
Submitter Richard Purdie
Date May 9, 2013, 4:33 p.m.
Message ID <1368117230.27116.104.camel@ted>
Download mbox | patch
Permalink /patch/49661/
State Accepted
Commit 4808629faa1222b31f92a3e410e06adb8e081293
Headers show

Comments

Richard Purdie - May 9, 2013, 4:33 p.m.
This file is already opened a few lines previously, so drop the duplicated
call.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

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)