Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
acl=None,
consistency=None,
metadata=None,
autocommit=True,
**kwargs,
):
"""
See ``GCSFile``.
consistency: None or str
If None, use default for this instance
"""
if block_size is None:
block_size = self.default_block_size
const = consistency or self.consistency
return GCSFile(
self,
path,
mode,
block_size,
cache_options=cache_options,
consistency=const,
metadata=metadata,
acl=acl,
autocommit=autocommit,
**kwargs,
)
def _open(self, path, mode='rb', block_size=None, acl=None,
consistency=None, metadata=None, autocommit=True, **kwargs):
"""
See ``GCSFile``.
consistency: None or str
If None, use default for this instance
"""
if block_size is None:
block_size = self.default_block_size
const = consistency or self.consistency
return GCSFile(self, path, mode, block_size, consistency=const,
metadata=metadata, acl=acl, autocommit=autocommit)