def is_botocore():
    try:
        import botocore
        return True
    except ImportError:
        if six.PY2:
            try:
                import boto
                return False
            except __HOLE__:
                raise NotConfigured('missing botocore or boto library')
        else:
            raise NotConfigured('missing botocore library')
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/boto.py/is_botocore