# pylint:disable=C0111
import os

try:
    if os.environ.get('MAXMINDDB_PURE_PYTHON') == '1':
        raise ImportError()
    from maxminddb.extension import Reader, InvalidDatabaseError
except ImportError as e:
    if os.environ.get('MAXMINDDB_PURE_PYTHON') == '0':
        raise e
    from maxminddb.decoder import InvalidDatabaseError
    from maxminddb.reader import Reader


__title__ = 'maxminddb'
__version__ = '0.3.2'
__author__ = 'Gregory Oschwald'
__license__ = 'Apache License, Version 2.0'
__copyright__ = 'Copyright 2014 Maxmind, Inc.'

# pylint:disable=C0111
import os

try:
    if os.environ.get('MAXMINDDB_PURE_PYTHON') == '1':
        raise ImportError()
    from maxminddb.extension import Reader, InvalidDatabaseError
except ImportError as import_error:
    if os.environ.get('MAXMINDDB_PURE_PYTHON') == '0':
        raise import_error
    from maxminddb.decoder import InvalidDatabaseError
    from maxminddb.reader import Reader


__title__ = 'maxminddb'
__version__ = '0.3.2'
__author__ = 'Gregory Oschwald'
__license__ = 'Apache License, Version 2.0'
__copyright__ = 'Copyright 2014 Maxmind, Inc.'

Make pylint happy