Fix typos in docstring/comments

This patch replaces typos 'beacause' by 'because' and 'tupe'
by 'tuple'.

Change-Id: I55006d0af7ae417a91ec190104351865304e2991
This commit is contained in:
Ha Van Tu 2016-09-27 14:15:54 +07:00
parent 659f951d72
commit 0355c13253
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class Version(object):
:param headers: webob headers
:param default_version: version to use if not specified in headers
: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
"""
version_str = headers.get(Version.string, default_version)

View File

@ -139,7 +139,7 @@ class NoExceptionTracebackHook(hooks.PecanHook):
faultstring = faultstring.split(traceback_marker, 1)[0]
# Remove trailing newlines and spaces if any.
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.
state.response.json = json_body