Merge "Fixed inconsistencies in docstrings"

This commit is contained in:
Jenkins 2016-07-11 21:23:29 +00:00 committed by Gerrit Code Review
commit 1ba56c64e9
5 changed files with 24 additions and 30 deletions

View File

@ -180,12 +180,12 @@ def check_object_creation(req, object_name):
:param req: HTTP request object :param req: HTTP request object
:param object_name: name of object to be created :param object_name: name of object to be created
:returns HTTPRequestEntityTooLarge: the object is too large :returns: HTTPRequestEntityTooLarge -- the object is too large
:returns HTTPLengthRequired: missing content-length header and not :returns: HTTPLengthRequired -- missing content-length header and not
a chunked request a chunked request
:returns HTTPBadRequest: missing or bad content-type header, or :returns: HTTPBadRequest -- missing or bad content-type header, or
bad metadata bad metadata
:returns HTTPNotImplemented: unsupported transfer-encoding header value :returns: HTTPNotImplemented -- unsupported transfer-encoding header value
""" """
try: try:
ml = req.message_length() ml = req.message_length()

View File

@ -153,8 +153,7 @@ class InternalClient(object):
def make_request( def make_request(
self, method, path, headers, acceptable_statuses, body_file=None): self, method, path, headers, acceptable_statuses, body_file=None):
""" """Makes a request to Swift with retries.
Makes a request to Swift with retries.
:param method: HTTP method of request. :param method: HTTP method of request.
:param path: Path of request. :param path: Path of request.
@ -367,8 +366,7 @@ class InternalClient(object):
def get_account_metadata( def get_account_metadata(
self, account, metadata_prefix='', acceptable_statuses=(2,)): self, account, metadata_prefix='', acceptable_statuses=(2,)):
""" """Gets account metadata.
Gets account metadata.
:param account: Account on which to get the metadata. :param account: Account on which to get the metadata.
:param metadata_prefix: Used to filter values from the headers :param metadata_prefix: Used to filter values from the headers
@ -418,8 +416,7 @@ class InternalClient(object):
# container methods # container methods
def container_exists(self, account, container): def container_exists(self, account, container):
""" """Checks to see if a container exists.
Checks to see if a container exists.
:param account: The container's account. :param account: The container's account.
:param container: Container to check. :param container: Container to check.
@ -479,8 +476,7 @@ class InternalClient(object):
def get_container_metadata( def get_container_metadata(
self, account, container, metadata_prefix='', self, account, container, metadata_prefix='',
acceptable_statuses=(2,)): acceptable_statuses=(2,)):
""" """Gets container metadata.
Gets container metadata.
:param account: The container's account. :param account: The container's account.
:param container: Container to get metadata on. :param container: Container to get metadata on.
@ -580,8 +576,7 @@ class InternalClient(object):
def get_object_metadata( def get_object_metadata(
self, account, container, obj, metadata_prefix='', self, account, container, obj, metadata_prefix='',
acceptable_statuses=(2,), headers=None): acceptable_statuses=(2,), headers=None):
""" """Gets object metadata.
Gets object metadata.
:param account: The object's account. :param account: The object's account.
:param container: The object's container. :param container: The object's container.

View File

@ -1874,8 +1874,7 @@ def capture_stdio(logger, **kwargs):
def parse_options(parser=None, once=False, test_args=None): def parse_options(parser=None, once=False, test_args=None):
""" """Parse standard swift server/daemon options with optparse.OptionParser.
Parse standard swift server/daemon options with optparse.OptionParser.
:param parser: OptionParser to use. If not sent one will be created. :param parser: OptionParser to use. If not sent one will be created.
:param once: Boolean indicating the "once" option is available :param once: Boolean indicating the "once" option is available