Fixed few misspellings in comments

Change-Id: I8479c85cb8821c48b5da197cac37c80e5c1c7f05
This commit is contained in:
Ondřej Nový 2016-01-05 20:20:15 +01:00
parent 02ecd51b90
commit f53cf1043d
5 changed files with 7 additions and 7 deletions

View File

@ -375,7 +375,7 @@ class TempURL(object):
break break
if not is_valid_hmac: if not is_valid_hmac:
return self._invalid(env, start_response) return self._invalid(env, start_response)
# disallowed headers prevent accidently allowing upload of a pointer # disallowed headers prevent accidentally allowing upload of a pointer
# to data that the PUT tempurl would not otherwise allow access for. # to data that the PUT tempurl would not otherwise allow access for.
# It should be safe to provide a GET tempurl for data that an # It should be safe to provide a GET tempurl for data that an
# untrusted client just uploaded with a PUT tempurl. # untrusted client just uploaded with a PUT tempurl.
@ -540,7 +540,7 @@ class TempURL(object):
def _clean_disallowed_headers(self, env, start_response): def _clean_disallowed_headers(self, env, start_response):
""" """
Validate the absense of disallowed headers for "unsafe" operations. Validate the absence of disallowed headers for "unsafe" operations.
:returns: None for safe operations or swob.HTTPBadResponse if the :returns: None for safe operations or swob.HTTPBadResponse if the
request includes disallowed headers. request includes disallowed headers.

View File

@ -324,7 +324,7 @@ class BaseStoragePolicy(object):
Removes an alias name from the storage policy. Shouldn't be called Removes an alias name from the storage policy. Shouldn't be called
directly from the storage policy but instead through the storage directly from the storage policy but instead through the storage
policy collection class, so lookups by name resolve correctly. If policy collection class, so lookups by name resolve correctly. If
the name removed is the primary name then the next availiable alias the name removed is the primary name then the next available alias
will be adopted as the new primary name. will be adopted as the new primary name.
:param name: a name assigned to the storage policy :param name: a name assigned to the storage policy
@ -776,7 +776,7 @@ class StoragePolicyCollection(object):
def remove_policy_alias(self, *aliases): def remove_policy_alias(self, *aliases):
""" """
Removes a name or names from a policy. If the name removed is the Removes a name or names from a policy. If the name removed is the
primary name then the next availiable alias will be adopted primary name then the next available alias will be adopted
as the new primary name. as the new primary name.
:param *aliases: arbitrary number of existing policy names to remove. :param *aliases: arbitrary number of existing policy names to remove.

View File

@ -424,7 +424,7 @@ def get_log_line(req, res, trans_time, additional_info):
:param trans_time: the time the request took to complete, a float. :param trans_time: the time the request took to complete, a float.
:param additional_info: a string to log at the end of the line :param additional_info: a string to log at the end of the line
:returns: a properly formated line for logging. :returns: a properly formatted line for logging.
""" """
policy_index = get_policy_index(req.headers, res.headers) policy_index = get_policy_index(req.headers, res.headers)

View File

@ -221,7 +221,7 @@ class TestGlobalSetupObjectReconstructor(unittest.TestCase):
def part_2(set): def part_2(set):
# this part is a handoff in our config (always) # this part is a handoff in our config (always)
# so lets do a set with indicies from different nodes # so lets do a set with indices from different nodes
if set == 0: if set == 0:
return (local_id + 1) % 3 return (local_id + 1) % 3
else: else:

View File

@ -5558,7 +5558,7 @@ class TestObjectServer(unittest.TestCase):
object-metadata (e.g. X-Backend-Obj-Content-Length) object-metadata (e.g. X-Backend-Obj-Content-Length)
is generally expected tomatch the test_doc) is generally expected tomatch the test_doc)
:param finish_body: boolean, if true send "0\r\n\r\n" after test_doc :param finish_body: boolean, if true send "0\r\n\r\n" after test_doc
and wait for 100-continue before yeilding context and wait for 100-continue before yielding context
""" """
test_data = 'obj data' test_data = 'obj data'
footer_meta = { footer_meta = {