From patchwork Wed Feb 25 21:17:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Erdmann?= X-Patchwork-Id: 443668 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 6EE06140083 for ; Thu, 26 Feb 2015 08:25:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=mailerd.de header.i=@mailerd.de header.b=heiKg1sb; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9420433457; Wed, 25 Feb 2015 21:25:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytdz-qBgjQl2; Wed, 25 Feb 2015 21:25:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C982A31AD8; Wed, 25 Feb 2015 21:25:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B904D1C2214 for ; Wed, 25 Feb 2015 21:25:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B3F5F31AD8 for ; Wed, 25 Feb 2015 21:25:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PITT+S9EIwQs for ; Wed, 25 Feb 2015 21:25:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by silver.osuosl.org (Postfix) with ESMTPS id 9A57D317C3 for ; Wed, 25 Feb 2015 21:25:53 +0000 (UTC) Received: by wghk14 with SMTP id k14so6349129wgh.4 for ; Wed, 25 Feb 2015 13:25:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerd.de; s=mails; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=BKxVz09QbL30WHHC5gssqrOJJJKRoLZcA/3qHr5NhtY=; b=heiKg1sbfT9Ii3pM8iX5keszLQk0B1R82gm1N5AcF2m/OId37V+aLPmvISCJ2Dpqkw 9aTVMXBh0f62JIYtijqx1BXFFe/yUGCDGgzmA0jKPjb9uispqPN2UtUMIuQbXBVVa9hr 5lj60oMaQyS7XH6hPTRJ3lggqZUg+ywYjpcSo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=BKxVz09QbL30WHHC5gssqrOJJJKRoLZcA/3qHr5NhtY=; b=FdYhUQgHrfIOniB9HRRqREGovHYXjjNAWAobXV0z5EiNw+UJN/A1BusJW4R58YWdHW uS3iftiZRfTTDxlE//DRaLdF4lBwzM1oQ4s7WZ/qUYTI1AViE5epf3wXldxLNbjaxd/P 3sEGEYO9MSdPi+gmzYnLbhDzouOZ8/RjyuO3hHlTGo1HqGbPzNA4Zj3zHVNLQEAR/t1u DXTtoAetefNT3n/X5A7wphJjNBQUzAR/RzQvH+VyUEGJQ0YzcbQtxgkscUNu9VetJsV4 LZb7U1u2atVLfldKUJ4P1+yuseZp6gQqZynoDTGBIFX0GGdZJh3aMTouJV2fXsOaZYar pseA== X-Gm-Message-State: ALoCoQmUmrPNM1Q+uClOVHf5rfpPqgm2MCAEsj4BggkXE2YjIpV0/mQHTP6u/cr19Ck+AYPaj01M X-Received: by 10.194.239.129 with SMTP id vs1mr9968860wjc.158.1424899069875; Wed, 25 Feb 2015 13:17:49 -0800 (PST) Received: from localhost.localdomain (dslb-188-105-009-107.188.105.pools.vodafone-ip.de. [188.105.9.107]) by mx.google.com with ESMTPSA id fo9sm26800926wib.16.2015.02.25.13.17.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 13:17:48 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Erdmann?= To: buildroot@buildroot.org Date: Wed, 25 Feb 2015 22:17:21 +0100 Message-Id: <1424899050-24932-5-git-send-email-dywi@mailerd.de> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424899050-24932-1-git-send-email-dywi@mailerd.de> References: <1424899050-24932-1-git-send-email-dywi@mailerd.de> MIME-Version: 1.0 Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH 04/13] autobuild-run, python3: configparser<>ConfigParser X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The ConfigParser module has been renamed to configparser. Py2k compatibility: import ConfigParser if version < 3 Signed-off-by: André Erdmann --- scripts/autobuild-run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index 3a3b8de..236597d 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -70,11 +70,12 @@ from time import localtime, strftime import sys import hashlib import argparse -import ConfigParser if sys.hexversion >= 0x3000000: + import configparser import urllib.request as _urllib else: + import ConfigParser as configparser import urllib2 as _urllib urlopen = _urllib.urlopen @@ -599,7 +600,7 @@ Format of the configuration file: if not os.path.exists(args.config): print("ERROR: configuration file %s does not exist" % args.config) sys.exit(1) - parser = ConfigParser.RawConfigParser() + parser = configparser.RawConfigParser() if not parser.read([args.config]): print("ERROR: cannot parse configuration file %s" % args.config) sys.exit(1)