def _get_s3_config(self, key=None):
        try:
            config = dict(configuration.get_config().items('s3'))
        except NoSectionError:
            return {}
        # So what ports etc can be read without us having to specify all dtypes
        for k, v in six.iteritems(config):
            try:
                config[k] = int(v)
            except __HOLE__:
                pass
        if key:
            return config.get(key)
        return config
dataset/ETHPy150Open spotify/luigi/luigi/s3.py/S3Client._get_s3_config