Merge pull request #783 from luzpaz/trivial-typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trivial typos
authored by David Lord · committed by GitHub · parents b2dd36b, 778ccb2 · Browse files · 6 files·+11 added−11 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+11 added−11 removed
- other:+11 added−11 removed
Provenance
- Commit
9b255f4- Tree
2afb37e- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
b2dd36b- Parent 2
778ccb2
6 files changed+11 added−11 removed
modified:docs/api.rst+1 added-1 removed
276 unmodified lines277 env = Environment(autoescape=select_autoescape(['html', 'htm', 'xml']),278 loader=PackageLoader('mypackage'))279 280 The :func:`~jinja.select_autoescape` function returns a function that281-works rougly like this::281+works roughly like this::282 283 def autoescape(template_name):284 if template_name is None:285 return False647 unmodified linesmodified:jinja2/compiler.py+1 added-1 removed
408 unmodified lines409 def signature(self, node, frame, extra_kwargs=None):410 """Writes a function call to the stream for the current node.411 A leading comma is added automatically. The extra keyword412 arguments may not include python keywords otherwise a syntax413- error could occour. The extra keyword arguments should be given413+ error could occur. The extra keyword arguments should be given414 as python dict.415 """416 # if any of the given keyword arguments is a python keyword417 # we have to make sure that no invalid call is created.1304 unmodified linesmodified:jinja2/ext.py+1 added-1 removed
543 unmodified lines544 545 .. versionchanged:: 2.3546 Basic support for translation comments was added. If `comment_tags`547 is now set to a list of keywords for extraction, the extractor will548- try to find the best preceeding comment that begins with one of the548+ try to find the best preceding comment that begins with one of the549 keywords. For best results, make sure to not have more than one550 gettext call in one line of code and the matching comment in the551 same line or the line before.552 75 unmodified linesmodified:scripts/pylintrc+6 added-6 removed
1 # lint Python modules using external checkers.2 # 3-# This is the main checker controling the other ones and the reports3+# This is the main checker controlling the other ones and the reports4 # generation. It is itself both a raw checker and an astng checker in order5 # to:6 # * handle message activation / deactivation at the module level7 # * handle some basic but necessary stats'data (number of classes, methods...)57 unmodified lines65 # command line instead of printing them on stdout. Reports (if any) will be66 # written in a file name "pylint_global.[txt|html]".67 files-output=no68 69-# Tells wether to display a full report or only the messages69+# Tells whether to display a full report or only the messages70 reports=yes71 72 # Python expression which should return a note less than 10 (10 is the highest73 # note).You have access to the variables errors warning, statement which74-# respectivly contain the number of errors / warnings messages and the total74+# respectively contain the number of errors / warnings messages and the total75 # number of statements analyzed. This is used by the global evaluation report76 # (R0004).77 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)78 15 unmodified lines94 # * use of variable before assigment95 # 96 [VARIABLES]97 98-# Tells wether we should check for unused import in __init__ files.98+# Tells whether we should check for unused import in __init__ files.99 init-import=no100 101 # A regular expression matching names used for dummy variables (i.e. not used).102 dummy-variables-rgx=_|dummy6 unmodified lines109 # try to find bugs in the code using type inference110 # 111 [TYPECHECK]112 113-# Tells wether missing members accessed in mixin class should be ignored. A113+# Tells whether missing members accessed in mixin class should be ignored. A114 # mixin class is detected if its name ends with "mixin" (case insensitive).115 ignore-mixin-members=yes116 117 # When zope mode is activated, consider the acquired-members option to ignore122 unmodified lines240 241 # checks for :242 # * methods without self as first argument243 # * overridden methods signature244-# * access only to existant members via self244+# * access only to existent members via self245 # * attributes not defined in the __init__ method246 # * supported interfaces implementation247 # * unreachable code248 # 53 unmodified linesmodified:CHANGES.rst+1 added-1 removed
120 unmodified lines121 intended behavior in all situations however it does not restore the122 old behavior where limited assignments to outer scopes was possible.123 For more information and a discussion see #641124 - Resolved an issue where ``block scoped`` would not take advantage of the125- new scoping rules. In some more exotic cases a variable overriden in a125+ new scoping rules. In some more exotic cases a variable overridden in a126 local scope would not make it into a block.127 - Change the code generation of the ``with`` statement to be in line with the128 new scoping rules. This resolves some unlikely bugs in edge cases. This129 also introduces a new internal ``With`` node that can be used by extensions.473 unmodified linesmodified:setup.py+1 added-1 removed
26 unmodified lines27 28 Application logic is for the controller but don't try to make the life29 for the template designer too hard by giving him too few functionality.30 31-For more informations visit the new `Jinja2 webpage`_ and `documentation`_.31+For more information visit the new `Jinja2 webpage`_ and `documentation`_.32 33 .. _sandboxed: https://en.wikipedia.org/wiki/Sandbox_(computer_security)34 .. _Django: https://www.djangoproject.com/35 .. _Jinja2 webpage: http://jinja.pocoo.org/45 unmodified lines