From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dan.rpsys.net ([93.97.175.187]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1UaU4b-0005zr-NY for openembedded-core@lists.openembedded.org; Thu, 09 May 2013 18:52:17 +0200 Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r49GaSIx022909 for ; Thu, 9 May 2013 17:36:28 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vAvNL4D42Ywc for ; Thu, 9 May 2013 17:36:28 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r49GaPNP022905 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Thu, 9 May 2013 17:36:26 +0100 Message-ID: <1368117230.27116.104.camel@ted> From: Richard Purdie To: openembedded-core Date: Thu, 09 May 2013 17:33:50 +0100 X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Subject: [PATCH] buildstats: Drop spurious open() call X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 16:52:18 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit This file is already opened a few lines previously, so drop the duplicated call. Signed-off-by: Richard Purdie --- 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)