From patchwork Tue Sep 27 15:03:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 675676 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3sk4006sDsz9sf9 for ; Wed, 28 Sep 2016 01:05:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CCC37B3888; Tue, 27 Sep 2016 17:05:18 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SgXN9lxDb_0S; Tue, 27 Sep 2016 17:05:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A744B385E; Tue, 27 Sep 2016 17:05:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 914BDB3875 for ; Tue, 27 Sep 2016 17:05:15 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Thu0x5Oo2Fx for ; Tue, 27 Sep 2016 17:05:15 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailapp01.imgtec.com (mailapp02.imgtec.com [217.156.133.132]) by theia.denx.de (Postfix) with ESMTP id 658A0B3865 for ; Tue, 27 Sep 2016 17:05:15 +0200 (CEST) Received: from HHMAIL03.hh.imgtec.org (unknown [10.44.0.21]) by Forcepoint Email with ESMTPS id 7DE9168F35A6; Tue, 27 Sep 2016 16:05:11 +0100 (IST) Received: from HHMAIL01.hh.imgtec.org (10.100.10.19) by HHMAIL03.hh.imgtec.org (10.44.0.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 27 Sep 2016 16:05:14 +0100 Received: from localhost (10.100.200.122) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 27 Sep 2016 16:05:13 +0100 From: Paul Burton To: Date: Tue, 27 Sep 2016 16:03:52 +0100 Message-ID: <20160927150358.6248-5-paul.burton@imgtec.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160927150358.6248-1-paul.burton@imgtec.com> References: <20160927150358.6248-1-paul.burton@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [10.100.200.122] Subject: [U-Boot] [PATCH v2 04/10] patman: Import 'configparser' lower case to be python 3.x safe X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" In python 3.x module names used in import statements are case sensitive, and the configparser module is named in all lower-case. Import it as such in order to avoid errors when running with python 3.x. Signed-off-by: Paul Burton Acked-by: Simon Glass --- Changes in v2: None tools/patman/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 01f6c38..3caf379 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -5,7 +5,11 @@ from __future__ import print_function -import ConfigParser +try: + import configparser as ConfigParser +except: + import ConfigParser + import os import re