From: Paul Burton Date: Tue, 27 Sep 2016 16:03:52 +0100 Subject: [U-Boot] [PATCH v2 04/10] patman: Import 'configparser' lower case to be python 3.x safe In-Reply-To: <20160927150358.6248-1-paul.burton@imgtec.com> References: <20160927150358.6248-1-paul.burton@imgtec.com> Message-ID: <20160927150358.6248-5-paul.burton@imgtec.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -- 2.10.0