Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Few typos in jinja2.utils

  • Loading branch information...
commit 0ec4f763cf82745754848ce5a60734e9742c61b7 1 parent 99b2285
Florent Xicluna authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 7 jinja2/utils.py
14 jinja2/utils.py
@@ -67,7 +67,7 @@ def concat(gen):
67 67 del _test_gen_bug, _error
68 68
69 69
70   -# for python 2.x we create outselves a next() function that does the
  70 +# for python 2.x we create ourselves a next() function that does the
71 71 # basics without exception catching.
72 72 try:
73 73 next = next
@@ -132,7 +132,7 @@ def get_exported_names(context):
132 132
133 133
134 134 def evalcontextfunction(f):
135   - """This decoraotr can be used to mark a function or method as an eval
  135 + """This decorator can be used to mark a function or method as an eval
136 136 context callable. This is similar to the :func:`contextfunction`
137 137 but instead of passing the context, an evaluation context object is
138 138 passed. For more information about the eval context, see
@@ -195,7 +195,7 @@ def clear_caches():
195 195
196 196
197 197 def import_string(import_name, silent=False):
198   - """Imports an object based on a string. This use useful if you want to
  198 + """Imports an object based on a string. This is useful if you want to
199 199 use import paths as endpoints or something similar. An import path can
200 200 be specified either in dotted notation (``xml.sax.saxutils.escape``)
201 201 or with a colon as object delimiter (``xml.sax.saxutils:escape``).
@@ -412,7 +412,7 @@ def __getnewargs__(self):
412 412 return (self.capacity,)
413 413
414 414 def copy(self):
415   - """Return an shallow copy of the instance."""
  415 + """Return a shallow copy of the instance."""
416 416 rv = self.__class__(self.capacity)
417 417 rv._mapping.update(self._mapping)
418 418 rv._queue = deque(self._queue)
@@ -462,7 +462,7 @@ def __getitem__(self, key):
462 462 """Get an item from the cache. Moves the item up so that it has the
463 463 highest priority then.
464 464
465   - Raise an `KeyError` if it does not exist.
  465 + Raise a `KeyError` if it does not exist.
466 466 """
467 467 rv = self._mapping[key]
468 468 if self._queue[-1] != key:
@@ -497,7 +497,7 @@ def __setitem__(self, key, value):
497 497
498 498 def __delitem__(self, key):
499 499 """Remove an item from the cache dict.
500   - Raise an `KeyError` if it does not exist.
  500 + Raise a `KeyError` if it does not exist.
501 501 """
502 502 self._wlock.acquire()
503 503 try:
@@ -598,7 +598,7 @@ def __call__(self):
598 598
599 599 # try markupsafe first, if that fails go with Jinja2's bundled version
600 600 # of markupsafe. Markupsafe was previously Jinja2's implementation of
601   -# the Markup object but was moved into a separate package in a patchleve
  601 +# the Markup object but was moved into a separate package in a patchlevel
602 602 # release
603 603 try:
604 604 from markupsafe import Markup, escape, soft_unicode

0 comments on commit 0ec4f76

Please sign in to comment.
Something went wrong with that request. Please try again.