Skip to contentSkip to conversation

buildstats: Drop spurious open() call

PATCH New Richard Purdie 1 participant 1 message May 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildstats: Drop spurious open() call

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

---

meta/classes/buildstats.bbclass +0 -1
index 453c50b..e12e14f 100644
@@ -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)