Skip to content
Myr

Merge pull request #1509 from kianmeng/fix-typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix typos

authored by David Lord · committed by GitHub · parents 6aa096a, 8cc3a64 · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−4 removed

  • tests:+2 added−2 removed
  • other:+2 added−2 removed

3 files+4 added−4 removed

modified:src/jinja2/nodes.py+1 added-1 removed
953 unmodified lines
954 operator = "/"955956957class FloorDiv(BinExpr):958 """Divides the left by the right node and truncates conver the958 """Divides the left by the right node and converts the959 result into an integer by truncating.960 """961962 operator = "//"
242 unmodified lines
modified:tests/test_inheritance.py+2 added-2 removed
35 unmodified lines
36{% extends "layout" %}37{% block block1 %}38 {% if false %}39 {% block block2 %}40 this should workd40 this should work41 {% endblock %}42 {% endif %}43{% endblock %}44"""
3 unmodified lines
48{% extends "layout" %}49{% block block1 %}50 {% if false %}51 {% block block2 %}52 this should workd52 this should work53 {% endblock %}54 {% endif %}55{% endblock %}56"""
349 unmodified lines
modified:CHANGES.rst+1 added-1 removed
421 unmodified lines
422 the old behavior where limited assignments to outer scopes was423 possible. For more information and a discussion see :issue:`641`424- Resolved an issue where ``block scoped`` would not take advantage of425 the new scoping rules. In some more exotic cases a variable426 overriden in a local scope would not make it into a block.426 overridden in a local scope would not make it into a block.427- Change the code generation of the ``with`` statement to be in line428 with the new scoping rules. This resolves some unlikely bugs in edge429 cases. This also introduces a new internal ``With`` node that can be430 used by extensions.
483 unmodified lines