aboutsummaryrefslogtreecommitdiffstats
path: root/anteater/src/patch_scan.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-06-21 14:57:13 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-06-28 23:08:14 -0700
commiteceefe7114bc5d0fc94ac77ee4e510c94c1a76bf (patch)
treecf24e060a2972701c3b6788ed0ed748c8168fe0f /anteater/src/patch_scan.py
parentf2149d0366a2dd7add11d017679307256632d372 (diff)
add Python3 support with six
switch to relative imports for package file use absolute imports in main this requires renaming anteater.py to main.py to avoid absolute import name conflict update setup.py to indicate python 3.4 support Change-Id: I0fcaf8a9825557962dc98a6a4eef490051fbbfb0 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'anteater/src/patch_scan.py')
-rw-r--r--anteater/src/patch_scan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py
index f8ef225..71604a8 100644
--- a/anteater/src/patch_scan.py
+++ b/anteater/src/patch_scan.py
@@ -19,15 +19,15 @@
from __future__ import division, print_function, absolute_import
from binaryornot.check import is_binary
import anteater.utils.anteater_logger as antlog
-import anteater.src.get_lists as get_lists
-import ConfigParser
import hashlib
+import six.moves.configparser
import sys
import re
+from . import get_lists
logger = antlog.Logger(__name__).getLogger()
-config = ConfigParser.RawConfigParser()
+config = six.moves.configparser.RawConfigParser()
config.read('anteater.conf')
reports_dir = config.get('config', 'reports_dir')
failure = False