# Path: awscfncli2/config/formats.py
# def load_format(version):
#     if version == 3:
#         return FormatV3
#     elif version == 2:
#         return FormatV2
#     elif version == 1 or version is None:
#         return FormatV1
#     else:
#         raise FormatError('Unspported config version {}'.format(version))


import os
import yaml
import logging
from .formats import load_format
# -*- coding: utf-8 -*-




class ConfigError(Exception):
    pass


class ConfigParser(object):

    def get_format(self, config, **context):
        # inspect version
        version = config.get('Version')

# Path: awscfncli2/config/formats.py
# def load_format(version):
#     if version == 3:
#         return FormatV3
#     elif version == 2:
#         return FormatV2
#     elif version == 1 or version is None:
#         return FormatV1
#     else:
#         raise FormatError('Unspported config version {}'.format(version))


# Path: awscfncli2/config/config.py
import os
import yaml
import logging
from .formats import load_format

# -*- coding: utf-8 -*-




class ConfigError(Exception):
    pass


class ConfigParser(object):

    def get_format(self, config, **context):
        # inspect version
        version = config.get('Version')

        config_format = load_format(version)