Skip to content
Myr

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

6 files+11 added−11 removed

modified:docs/api.rst+1 added-1 removed
276 unmodified lines
277 env = Environment(autoescape=select_autoescape(['html', 'htm', 'xml']),278 loader=PackageLoader('mypackage'))279280The :func:`~jinja.select_autoescape` function returns a function that281works rougly like this::281works roughly like this::282283 def autoescape(template_name):284 if template_name is None:285 return False
647 unmodified lines
modified:jinja2/compiler.py+1 added-1 removed
408 unmodified lines
409 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 lines
modified:jinja2/ext.py+1 added-1 removed
543 unmodified lines
544545 .. 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 lines
modified: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 lines
65# command line instead of printing them on stdout. Reports (if any) will be66# written in a file name "pylint_global.[txt|html]".67files-output=no6869# Tells wether to display a full report or only the messages69# Tells whether to display a full report or only the messages70reports=yes7172# 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).77evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)78
15 unmodified lines
94# * use of variable before assigment95# 96[VARIABLES]9798# Tells wether we should check for unused import in __init__ files.98# Tells whether we should check for unused import in __init__ files.99init-import=no100101# A regular expression matching names used for dummy variables (i.e. not used).102dummy-variables-rgx=_|dummy
6 unmodified lines
109# try to find bugs in the code using type inference110# 111[TYPECHECK]112113# 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).115ignore-mixin-members=yes116117# When zope mode is activated, consider the acquired-members option to ignore
122 unmodified lines
240241# 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 lines
modified:CHANGES.rst+1 added-1 removed
120 unmodified lines
121 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 lines
modified:setup.py+1 added-1 removed
26 unmodified lines
2728Application logic is for the controller but don't try to make the life29for the template designer too hard by giving him too few functionality.3031For more informations visit the new `Jinja2 webpage`_ and `documentation`_.31For more information visit the new `Jinja2 webpage`_ and `documentation`_.3233.. _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