Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, log, **kwargs):
super(S3FS, self).__init__(**kwargs)
self.log = log
config = None
if self.signature_version:
config = Config(signature_version=self.signature_version)
self.client = boto3.client(
"s3",
aws_access_key_id=self.access_key_id,
aws_secret_access_key=self.secret_access_key,
endpoint_url=self.endpoint_url,
region_name=self.region_name,
config=config)
self.resource = boto3.resource(
"s3",