Skip to content

Commit

Permalink
docs: fix a few simple typos
Browse files Browse the repository at this point in the history
There are small typos in:
- doc/json.rst
- doc/web.rst
- morepath/app.py
- morepath/autosetup.py
- morepath/tests/test_excview.py
- morepath/tests/test_request.py
- morepath/tests/test_run.py
- morepath/tests/test_security.py

Fixes:
- Should read `verified` rather than `verfied`.
- Should read `successfully` rather than `succesfully`.
- Should read `parameters` rather than `paramaters`.
- Should read `omitted` rather than `ommitted`.
- Should read `instance` rather than `istance`.
- Should read `influence` rather than `infleunce`.
- Should read `including` rather than `incuding`.
- Should read `gracefully` rather than `gracefuly`.

Closes #551
  • Loading branch information
timgates42 authored and jugmac00 committed May 29, 2022
1 parent 47bced9 commit c52f26e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/json.rst
Expand Up @@ -51,7 +51,7 @@ Now we can write a JSON view that just returns an ``Item`` instance::
def item_default(self, request):
return self

The ``self`` we return in this view is an istance of ``Item``. This is
The ``self`` we return in this view is an instance of ``Item``. This is
now automatically converted to a JSON object.

load function for views
Expand Down
2 changes: 1 addition & 1 deletion doc/web.rst
Expand Up @@ -448,7 +448,7 @@ client.
WebOb makes management of cookies more convenient: the
:attr:`webob.request.BaseRequest.cookies` attribute on the request
object contains the list of cookies sent by the client, and the
response object has an API incuding
response object has an API including
:meth:`webob.response.Response.set_cookie` and
:meth:`webob.response.Response.delete_cookie` to allow you to manage
cookies.
Expand Down
2 changes: 1 addition & 1 deletion morepath/app.py
Expand Up @@ -365,7 +365,7 @@ def _class_path(self, model, variables):
:param model: model class or :class:`morepath.App` subclass.
:param variables: dictionary with variables to reconstruct
the path and URL paramaters from path pattern.
the path and URL parameters from path pattern.
:return: a :class:`morepath.path.PathInfo` with path within this app,
or ``None`` if the path couldn't be determined.
"""
Expand Down
2 changes: 1 addition & 1 deletion morepath/autosetup.py
Expand Up @@ -103,7 +103,7 @@ def autoscan(ignore=None):
See also :func:`scan`.
:param ignore: ignore to ignore some modules
during scanning. Optional. If ommitted, ignore ``.test`` and
during scanning. Optional. If omitted, ignore ``.test`` and
``.tests`` packages by default. See :func:`importscan.scan` for
more details.
Expand Down
2 changes: 1 addition & 1 deletion morepath/tests/test_excview.py
Expand Up @@ -117,7 +117,7 @@ class MyException(Exception):
def view(self, request):
raise MyException()

# the view name should have no infleunce on myexception lookup
# the view name should have no influence on myexception lookup
@app.view(model=MyException)
def myexception_default(self, request):
return "My exception"
Expand Down
2 changes: 1 addition & 1 deletion morepath/tests/test_request.py
Expand Up @@ -6,7 +6,7 @@ def test_request_reset():
# In order to verify the behaviour of Request.reset we issue the
# same request three times:
#
# 1. The server responds succesfully (generate_error = False)
# 1. The server responds successfully (generate_error = False)
#
# 2. The server responds with an error (generate_error = True) and
# returns the request as it was when the exception was thrown
Expand Down
2 changes: 1 addition & 1 deletion morepath/tests/test_run.py
Expand Up @@ -24,7 +24,7 @@ def test_run_port_out_of_range(mockserver, capsys):


def test_run_socketerror(mockserver, capsys):
"""Fail gracefuly on a socket error.
"""Fail gracefully on a socket error.
In this case the error is triggered by listening on example.com.
Expand Down
2 changes: 1 addition & 1 deletion morepath/tests/test_security.py
Expand Up @@ -415,7 +415,7 @@ def verify_identity(identity):

def test_dispatch_verify_identity():
# This app uses two Identity classes, morepath.Identity and
# Anonymous, which are verfied in two different ways (see the two
# Anonymous, which are verified in two different ways (see the two
# functions a little further down that are decorated by
# @App.verify_identity).
class App(morepath.App):
Expand Down

0 comments on commit c52f26e

Please sign in to comment.