@@ -407,7 +407,7 @@ def __init__(self, catchall=True, autojson=True, config=None):
407407
408408 self .mounts = {}
409409 self .error_handler = {}
410- #: If true, most exceptions are catched and returned as :exc:`HTTPError`
410+ #: If true, most exceptions are caught and returned as :exc:`HTTPError`
411411 self .catchall = catchall
412412 self .config = config or {}
413413 self .serve = True
@@ -638,8 +638,8 @@ def remove_hook(self, name, func):
638638
639639 def handle (self , path , method = 'GET' ):
640640 """ (deprecated) Execute the first matching route callback and return
641- the result. :exc:`HTTPResponse` exceptions are catched and returned.
642- If :attr:`Bottle.catchall` is true, other exceptions are catched as
641+ the result. :exc:`HTTPResponse` exceptions are caught and returned.
642+ If :attr:`Bottle.catchall` is true, other exceptions are caught as
643643 well and returned as :exc:`HTTPError` instances (500).
644644 """
645645 depr ("This method will change semantics in 0.10. Try to avoid it." )
@@ -1081,7 +1081,7 @@ def set_cookie(self, key, value, secret=None, **kargs):
10811081 :param value: the value of the cookie.
10821082 :param secret: required for signed cookies. (default: None)
10831083 :param max_age: maximum age in seconds. (default: None)
1084- :param expires: a datetime object or UNIX timestamp. (defaut : None)
1084+ :param expires: a datetime object or UNIX timestamp. (default : None)
10851085 :param domain: the domain that is allowed to read the cookie.
10861086 (default: current domain)
10871087 :param path: limits the cookie to a given path (default: /)
0 commit comments