aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Burton2016-09-27 16:03:52 +0100
committersjg2016-10-09 09:30:32 -0600
commit2ce7b21e6c98301f9b05daac076db33d498cfbe1 (patch)
treeb7eab4bb6280cdc292516a1a8e092c572c427693 /tools
parentac3fde9394ce90503930026c62ffd94bf7fa09fd (diff)
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 <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/patman/settings.py b/tools/patman/settings.py
index 01f6c38c19f..3caf3793582 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