From 7337c9e706985148c988626814830a4768d1f6ba Mon Sep 17 00:00:00 2001 From: Andreas Florath Date: Wed, 21 Dec 2016 20:18:12 +0000 Subject: [PATCH] dib-lint: python3 compatibility fixes When using up to date distributions for dib development, pep8 installs using python3. This patch fixes the problem, that not the complete dib-lint (which is called) is compatible with python3. Change-Id: I417d03746edb4d34011b997edf8b5b9662ea6f09 Signed-off-by: Andreas Florath --- bin/dib-lint | 14 +++++++++----- .../pypi/pre-install.d/00-configure-pypi-mirror | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/bin/dib-lint b/bin/dib-lint index 0b33790e..d7e602f3 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -34,11 +34,15 @@ parse_exclusions() { # ignore = sete setu section="dib-lint" option="ignore" - global_exclusions=$(python -c \ - "import ConfigParser; \ - conf=ConfigParser.ConfigParser(); \ - conf.read('tox.ini'); \ - print conf.get('$section', '$option') if conf.has_option('$section', '$option') else ''" + global_exclusions=$(python - <