summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <kunda@scribus.net>2017-11-08 20:02:28 -0500
committerUnknown <kunda@scribus.net>2017-11-08 20:02:28 -0500
commit778ccb22e942872c4340ce2326131d38d0676150 (patch)
tree2afb37e8cb341efa2f4c8fdc8d61871f413d3448
parentb2dd36b60f307e659a424d322141c6510ae100c2 (diff)
downloadjinja2-778ccb22e942872c4340ce2326131d38d0676150.tar.gz
Trivial typos
Most non-user facing.
-rw-r--r--CHANGES.rst2
-rw-r--r--docs/api.rst2
-rw-r--r--jinja2/compiler.py2
-rw-r--r--jinja2/ext.py2
-rw-r--r--scripts/pylintrc12
-rw-r--r--setup.py2
6 files changed, 11 insertions, 11 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index ab60084..4ff4770 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -122,7 +122,7 @@ Version 2.9.3
old behavior where limited assignments to outer scopes was possible.
For more information and a discussion see #641
- Resolved an issue where ``block scoped`` would not take advantage of the
- new scoping rules. In some more exotic cases a variable overriden in a
+ new scoping rules. In some more exotic cases a variable overridden in a
local scope would not make it into a block.
- Change the code generation of the ``with`` statement to be in line with the
new scoping rules. This resolves some unlikely bugs in edge cases. This
diff --git a/docs/api.rst b/docs/api.rst
index fedc1c7..c35f1f9 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -278,7 +278,7 @@ function for this::
loader=PackageLoader('mypackage'))
The :func:`~jinja.select_autoescape` function returns a function that
-works rougly like this::
+works roughly like this::
def autoescape(template_name):
if template_name is None:
diff --git a/jinja2/compiler.py b/jinja2/compiler.py
index d534a82..5135a77 100644
--- a/jinja2/compiler.py
+++ b/jinja2/compiler.py
@@ -410,7 +410,7 @@ class CodeGenerator(NodeVisitor):
"""Writes a function call to the stream for the current node.
A leading comma is added automatically. The extra keyword
arguments may not include python keywords otherwise a syntax
- error could occour. The extra keyword arguments should be given
+ error could occur. The extra keyword arguments should be given
as python dict.
"""
# if any of the given keyword arguments is a python keyword
diff --git a/jinja2/ext.py b/jinja2/ext.py
index 0734a84..eed3f21 100644
--- a/jinja2/ext.py
+++ b/jinja2/ext.py
@@ -545,7 +545,7 @@ def babel_extract(fileobj, keywords, comment_tags, options):
.. versionchanged:: 2.3
Basic support for translation comments was added. If `comment_tags`
is now set to a list of keywords for extraction, the extractor will
- try to find the best preceeding comment that begins with one of the
+ try to find the best preceding comment that begins with one of the
keywords. For best results, make sure to not have more than one
gettext call in one line of code and the matching comment in the
same line or the line before.
diff --git a/scripts/pylintrc b/scripts/pylintrc
index 4f85b49..6a5f0d7 100644
--- a/scripts/pylintrc
+++ b/scripts/pylintrc
@@ -1,6 +1,6 @@
# lint Python modules using external checkers.
#
-# This is the main checker controling the other ones and the reports
+# This is the main checker controlling the other ones and the reports
# generation. It is itself both a raw checker and an astng checker in order
# to:
# * handle message activation / deactivation at the module level
@@ -66,12 +66,12 @@ include-ids=yes
# written in a file name "pylint_global.[txt|html]".
files-output=no
-# Tells wether to display a full report or only the messages
+# Tells whether to display a full report or only the messages
reports=yes
# Python expression which should return a note less than 10 (10 is the highest
# note).You have access to the variables errors warning, statement which
-# respectivly contain the number of errors / warnings messages and the total
+# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (R0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
@@ -95,7 +95,7 @@ comment=no
#
[VARIABLES]
-# Tells wether we should check for unused import in __init__ files.
+# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching names used for dummy variables (i.e. not used).
@@ -110,7 +110,7 @@ additional-builtins=
#
[TYPECHECK]
-# Tells wether missing members accessed in mixin class should be ignored. A
+# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
@@ -241,7 +241,7 @@ int-import-graph=
# checks for :
# * methods without self as first argument
# * overridden methods signature
-# * access only to existant members via self
+# * access only to existent members via self
# * attributes not defined in the __init__ method
# * supported interfaces implementation
# * unreachable code
diff --git a/setup.py b/setup.py
index 4070da4..afdaa31 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ Philosophy
Application logic is for the controller but don't try to make the life
for the template designer too hard by giving him too few functionality.
-For more informations visit the new `Jinja2 webpage`_ and `documentation`_.
+For more information visit the new `Jinja2 webpage`_ and `documentation`_.
.. _sandboxed: https://en.wikipedia.org/wiki/Sandbox_(computer_security)
.. _Django: https://www.djangoproject.com/