nfv/nfv/nfv-common/nfv_common/forensic/_parsers.py
Al Bailey 86601b800c Fix relative import warnings from pylint
W0403 relative-import is no longer suppressed by pylint.rc

Note:
six.moves.urllib.request was considered a relative import
from six.moves import urllib is considered valid.

The code is updated to satisfy pylint and pep8.

nfv_scenario_tests main.py still needs to use a
relative import based on how it is invoked.

Story: 2004515
Task: 28575
Change-Id: I3f576f3990352e9456fe3ee5d3a80cb1307f31e0
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-12-20 16:54:35 -06:00

31 lines
531 B
Python
Executable File

# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from nfv_common.forensic import _nfv_vim_parser
_parsers = dict()
def parser_get(parser_name):
"""
Returns the associated parser
"""
return _parsers.get(parser_name, None)
def parser_initialize():
"""
Initialize module
"""
global _parsers
_parsers['nfv-vim'] = _nfv_vim_parser.parser_initialize()
def parser_finalize():
"""
Finalize module
"""
_nfv_vim_parser.parser_finalize()