PEP8 Fixes

This commit is contained in:
gholt 2011-04-16 01:58:08 +00:00
parent 97e817ecb7
commit be74d9e773
5 changed files with 15 additions and 12 deletions

View File

@ -468,7 +468,7 @@ class Swauth(object):
{"account_id": "AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162",
"services": {"storage": {"default": "local",
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162"}},
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946"}},
"users": [{"name": "tester"}, {"name": "tester3"}]}
:param req: The webob.Request to process.
@ -522,7 +522,7 @@ class Swauth(object):
this::
"services": {"storage": {"default": "local",
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162"}}
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946"}}
Making use of this section is described in :func:`handle_get_token`.

View File

@ -239,7 +239,7 @@ class BucketController(Controller):
if 'acl' in args:
return get_acl(self.account_name)
objects = loads(''.join(list(body_iter)))
body = ('<?xml version="1.0" encoding="UTF-8"?>'
'<ListBucketResult '

View File

@ -1325,8 +1325,8 @@ class AccountController(Controller):
if value[0].lower().startswith('x-account-meta-'))
if self.app.memcache:
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
return self.make_requests(req, self.app.account_ring, account_partition,
'PUT', req.path_info, [headers] * len(accounts))
return self.make_requests(req, self.app.account_ring,
account_partition, 'PUT', req.path_info, [headers] * len(accounts))
@public
def POST(self, req):
@ -1342,8 +1342,9 @@ class AccountController(Controller):
if value[0].lower().startswith('x-account-meta-'))
if self.app.memcache:
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
return self.make_requests(req, self.app.account_ring, account_partition,
'POST', req.path_info, [headers] * len(accounts))
return self.make_requests(req, self.app.account_ring,
account_partition, 'POST', req.path_info,
[headers] * len(accounts))
@public
def DELETE(self, req):
@ -1356,8 +1357,9 @@ class AccountController(Controller):
'X-CF-Trans-Id': self.trans_id}
if self.app.memcache:
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
return self.make_requests(req, self.app.account_ring, account_partition,
'DELETE', req.path_info, [headers] * len(accounts))
return self.make_requests(req, self.app.account_ring,
account_partition, 'DELETE', req.path_info,
[headers] * len(accounts))
class BaseApplication(object):

View File

@ -440,8 +440,8 @@ class LogProcessorDaemon(Daemon):
"""
:returns: the keylist mapping.
The keylist mapping determines how the stats fields are aggregated in
the final aggregation step.
The keylist mapping determines how the stats fields are aggregated
in the final aggregation step.
"""
if self._keylist_mapping == None:

View File

@ -150,7 +150,8 @@ class LogUploader(Daemon):
def upload_all_logs(self):
"""
Match files under log_dir to source_filename_pattern and upload to swift
Match files under log_dir to source_filename_pattern and upload to
swift
"""
pattern = self.validate_filename_pattern()
if not pattern: