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

"""
Count Sizes of File Types
"""

__author__ = 'Yan QiDong'
__version__ = '0.2.1'
__email__ = 'yanqd0@outlook.com'
__url__ = 'https://github.com/yanqd0/csft'
__copyright__ = 'Copyright (C) 2017 ' + __author__
__license__ = 'MIT License'


def _err_func(err):
    def _func(*args, **kwargs):
        raise err

    return _func


try:
    from .csft import csft2data
except ImportError as err:
    print(err)
    csft2data = _err_func(err)

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

"""
Count Sizes of File Types
"""
__author__ = 'Yan QiDong'
__version__ = '0.2.1'
__email__ = 'yanqd0@outlook.com'
__url__ = 'https://github.com/yanqd0/csft'
__copyright__ = 'Copyright (C) 2017 ' + __author__
__license__ = 'MIT License'


def _err_func(error):
    def _func(*args, **kwargs):
        print(args, kwargs)
        raise error

    return _func


try:
    from .csft import csft2data
except ImportError as err:
    print(err)
    csft2data = _err_func(err)

Fix warnings in __init__