Commit 3d50e35a authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

pithos: backend.util pep8 fixes

parent 8590e148
......@@ -53,8 +53,7 @@ class PithosBackendPool(ObjectPool):
public_url_alphabet=None,
account_quota_policy=None,
container_quota_policy=None,
container_versioning_policy=None
):
container_versioning_policy=None):
super(PithosBackendPool, self).__init__(size=size)
self.db_module = db_module
self.db_connection = db_connection
......@@ -79,26 +78,26 @@ class PithosBackendPool(ObjectPool):
def _pool_create(self):
backend = connect_backend(
db_module=self.db_module,
db_connection=self.db_connection,
block_module=self.block_module,
block_path=self.block_path,
block_umask=self.block_umask,
block_size = self.block_size,
hash_algorithm = self.hash_algorithm,
queue_module=self.queue_module,
block_params=self.block_params,
queue_hosts=self.queue_hosts,
queue_exchange=self.queue_exchange,
astakos_url=self.astakos_url,
service_token=self.service_token,
astakosclient_poolsize=self.astakosclient_poolsize,
free_versioning=self.free_versioning,
public_url_security=self.public_url_security,
public_url_alphabet=self.public_url_alphabet,
account_quota_policy=self.account_quota_policy,
container_quota_policy=self.container_quota_policy,
container_versioning_policy=self.container_versioning_policy)
db_module=self.db_module,
db_connection=self.db_connection,
block_module=self.block_module,
block_path=self.block_path,
block_umask=self.block_umask,
block_size=self.block_size,
hash_algorithm=self.hash_algorithm,
queue_module=self.queue_module,
block_params=self.block_params,
queue_hosts=self.queue_hosts,
queue_exchange=self.queue_exchange,
astakos_url=self.astakos_url,
service_token=self.service_token,
astakosclient_poolsize=self.astakosclient_poolsize,
free_versioning=self.free_versioning,
public_url_security=self.public_url_security,
public_url_alphabet=self.public_url_alphabet,
account_quota_policy=self.account_quota_policy,
container_quota_policy=self.container_quota_policy,
container_versioning_policy=self.container_versioning_policy)
backend._real_close = backend.close
backend.close = instancemethod(_pooled_backend_close, backend,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment