From: Paul Burton Date: Tue, 27 Sep 2016 15:03:52 +0000 (+0100) Subject: patman: Import 'configparser' lower case to be python 3.x safe X-Git-Tag: v2016.11-rc2~10^2~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ce7b21e6c98301f9b05daac076db33d498cfbe1;p=u-boot patman: Import 'configparser' lower case to be python 3.x safe 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 --- diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 01f6c38c19..3caf379358 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