diff options
Diffstat (limited to 'anteater')
-rw-r--r-- | anteater/main.py (renamed from anteater/anteater.py) | 11 | ||||
-rw-r--r-- | anteater/src/__init__.py | 1 | ||||
-rw-r--r-- | anteater/src/get_lists.py | 6 | ||||
-rw-r--r-- | anteater/src/patch_scan.py | 6 | ||||
-rw-r--r-- | anteater/src/project_scan.py | 7 | ||||
-rw-r--r-- | anteater/utils/__init__.py | 1 | ||||
-rw-r--r-- | anteater/utils/anteater_logger.py | 7 |
7 files changed, 24 insertions, 15 deletions
diff --git a/anteater/anteater.py b/anteater/main.py index 063fcbd..3a23ceb 100644 --- a/anteater/anteater.py +++ b/anteater/main.py @@ -23,16 +23,17 @@ Options: -h --help Show this screen. --version Show version. """ +from __future__ import absolute_import -import ConfigParser +import six.moves.configparser from docopt import docopt import os -from src.patch_scan import prepare_patchset -from src.project_scan import prepare_project -import utils.anteater_logger as antlog +from anteater.src.patch_scan import prepare_patchset +from anteater.src.project_scan import prepare_project +from anteater.utils import anteater_logger as antlog -config = ConfigParser.RawConfigParser() +config = six.moves.configparser.RawConfigParser() config.read('anteater.conf') reports_dir = config.get('config', 'reports_dir') logger = antlog.Logger(__name__).getLogger() diff --git a/anteater/src/__init__.py b/anteater/src/__init__.py index 896994c..1db8868 100644 --- a/anteater/src/__init__.py +++ b/anteater/src/__init__.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import pkg_resources try: diff --git a/anteater/src/get_lists.py b/anteater/src/get_lists.py index b7b9aea..e27335a 100644 --- a/anteater/src/get_lists.py +++ b/anteater/src/get_lists.py @@ -13,15 +13,17 @@ Gathers various values from the gate check yaml file and return them to the calling instance """ +from __future__ import absolute_import import anteater.utils.anteater_logger as antlog -import ConfigParser +import six.moves.configparser import copy import os import yaml import re -config = ConfigParser.RawConfigParser() + +config = six.moves.configparser.RawConfigParser() config.read('anteater.conf') logger = antlog.Logger(__name__).getLogger() master_list = config.get('config', 'master_list') 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 diff --git a/anteater/src/project_scan.py b/anteater/src/project_scan.py index 15498f1..647c256 100644 --- a/anteater/src/project_scan.py +++ b/anteater/src/project_scan.py @@ -16,16 +16,17 @@ """ from __future__ import division, print_function, absolute_import -import ConfigParser import hashlib +import six.moves.configparser import os import re import anteater.utils.anteater_logger as antlog -import anteater.src.get_lists as get_lists from binaryornot.check import is_binary +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') master_list = config.get('config', 'master_list') diff --git a/anteater/utils/__init__.py b/anteater/utils/__init__.py index 896994c..1db8868 100644 --- a/anteater/utils/__init__.py +++ b/anteater/utils/__init__.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import pkg_resources try: diff --git a/anteater/utils/anteater_logger.py b/anteater/utils/anteater_logger.py index 1fe705f..785e644 100644 --- a/anteater/utils/anteater_logger.py +++ b/anteater/utils/anteater_logger.py @@ -9,11 +9,14 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -import ConfigParser +from __future__ import absolute_import + import logging + import os +import six.moves.configparser -config = ConfigParser.RawConfigParser() +config = six.moves.configparser.RawConfigParser() config.read('anteater.conf') anteater_log = config.get('config', 'anteater_log') |