Fix typos in docstring/comments
This patch replaces typos 'beacause' by 'because' and 'tupe' by 'tuple'. Change-Id: I55006d0af7ae417a91ec190104351865304e2991
This commit is contained in:
parent
659f951d72
commit
0355c13253
@ -85,7 +85,7 @@ class Version(object):
|
|||||||
:param headers: webob headers
|
:param headers: webob headers
|
||||||
:param default_version: version to use if not specified in headers
|
:param default_version: version to use if not specified in headers
|
||||||
:param latest_version: version to use if latest is requested
|
:param latest_version: version to use if latest is requested
|
||||||
:returns: a tupe of (major, minor) version numbers
|
:returns: a tuple of (major, minor) version numbers
|
||||||
:raises: webob.HTTPNotAcceptable
|
:raises: webob.HTTPNotAcceptable
|
||||||
"""
|
"""
|
||||||
version_str = headers.get(Version.string, default_version)
|
version_str = headers.get(Version.string, default_version)
|
||||||
|
@ -139,7 +139,7 @@ class NoExceptionTracebackHook(hooks.PecanHook):
|
|||||||
faultstring = faultstring.split(traceback_marker, 1)[0]
|
faultstring = faultstring.split(traceback_marker, 1)[0]
|
||||||
# Remove trailing newlines and spaces if any.
|
# Remove trailing newlines and spaces if any.
|
||||||
json_body['faultstring'] = faultstring.rstrip()
|
json_body['faultstring'] = faultstring.rstrip()
|
||||||
# Replace the whole json. Cannot change original one beacause it's
|
# Replace the whole json. Cannot change original one because it's
|
||||||
# generated on the fly.
|
# generated on the fly.
|
||||||
state.response.json = json_body
|
state.response.json = json_body
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user