author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
501,110 | 14.05.2018 12:24:02 | 14,400 | d28e9be7b38867607bc6cb8501824266a29ff167 | Quick lookup table for builtin filters and tests-- references | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1319,6 +1319,23 @@ evaluates into an undefined object::\nList of Builtin Filters\n-----------------------\n+=================== =================== ================== ====================== ==... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Quick lookup table for builtin filters and tests-- references #584 |
501,155 | 27.06.2018 16:13:52 | -7,200 | d1fb22fd45ad6d0caa314fe373a377fbbf82ba08 | Drop Python 3.3 support
It's currently broken on Travis (as it was dropped in 'wheel'), so continuing to
support it is probably not worth the pain. | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -5,7 +5,6 @@ python:\n- 3.6\n- 3.5\n- 3.4\n- - 3.3\n- 2.7\n- 2.6\n- pypy\n"
},
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -12,6 +12,7 @@ ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Drop Python 3.3 support
It's currently broken on Travis (as it was dropped in 'wheel'), so continuing to
support it is probably not worth the pain. |
501,155 | 27.06.2018 21:48:02 | -7,200 | 5425921899f7c84b3a08e2dd06610beacb2fc20e | Also drop Python 2.6 | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -6,7 +6,6 @@ python:\n- 3.5\n- 3.4\n- 2.7\n- - 2.6\n- pypy\nenv:\n"
},
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -12,7 +12,7 @@ unreleas... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Also drop Python 2.6 |
501,106 | 29.10.2018 19:32:49 | 0 | f98266115d021727809fb5876136c9142abce505 | parser: Fix typo `self.lineno` -> `token.lineno` | [
{
"change_type": "MODIFY",
"old_path": "jinja2/parser.py",
"new_path": "jinja2/parser.py",
"diff": "@@ -717,7 +717,7 @@ class Parser(object):\nelse:\narg = nodes.Tuple(args, 'load', lineno=token.lineno)\nreturn nodes.Getitem(node, arg, 'load', lineno=token.lineno)\n- self.fail('expected subscript ex... | Python | BSD 3-Clause New or Revised License | pallets/jinja | parser: Fix typo `self.lineno` -> `token.lineno` |
501,113 | 17.11.2018 04:51:46 | -19,080 | 7b6dd16d71e5d2150ed34770d4ea5142e3003671 | Clarify that last filter doesn't work with generators | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -440,7 +440,15 @@ def do_first(environment, seq):\n@environmentfilter\ndef do_last(environment, seq):\n- \"\"\"Return the last item of a sequence.\"\"\"\n+ \"\"\"\n+ Return the last item of a seq... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Clarify that last filter doesn't work with generators |
501,100 | 12.01.2019 11:39:49 | 18,000 | eca6fbfd6f4f60d3503dba7253cfb941d0751365 | Fixing compiler handling of parens around boolean comparisons. | [
{
"change_type": "MODIFY",
"old_path": "jinja2/compiler.py",
"new_path": "jinja2/compiler.py",
"diff": "@@ -1529,9 +1529,11 @@ class CodeGenerator(NodeVisitor):\n@optimizeconst\ndef visit_Compare(self, node, frame):\n+ self.write('(')\nself.visit(node.expr, frame)\nfor op in node.ops:\nself.visit(op... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fixing compiler handling of parens around boolean comparisons. |
501,055 | 18.02.2019 07:14:47 | 0 | 2b23cca8cf5fc72c8b5ad68bf0e48031e680dadf | Await in async version of the map filter | [
{
"change_type": "MODIFY",
"old_path": "jinja2/asyncfilters.py",
"new_path": "jinja2/asyncfilters.py",
"diff": "from functools import wraps\n-from jinja2.asyncsupport import auto_aiter\n+from jinja2.asyncsupport import auto_aiter, auto_await\nfrom jinja2 import filters\n@@ -109,7 +109,7 @@ async def... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Await in async version of the map filter (#913) |
501,058 | 29.04.2019 11:26:33 | 25,200 | 98dc54dff420dc85d5e2459cce6cbb5849f1d794 | add list filter to make example match output | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -284,7 +284,7 @@ def do_unique(environment, value, case_sensitive=False, attribute=None):\n.. sourcecode:: jinja\n- {{ ['foo', 'bar', 'foobar', 'FooBar']|unique }}\n+ {{ ['foo', 'bar', 'foobar', ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add list filter to make example match output |
501,142 | 06.05.2019 10:01:39 | 14,400 | 2fb7a4a30fd4dad994997aef8db1bd1bd95b0a39 | Add Links section to README | [
{
"change_type": "MODIFY",
"old_path": "README.rst",
"new_path": "README.rst",
"diff": "@@ -49,3 +49,14 @@ Builds\n| ``2.9-maintenance`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=2.9-maintenance |\n| | :target: https://travis-ci.org/pallets/jinja |\n+---------------------+---------... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add Links section to README |
501,139 | 27.05.2018 11:41:20 | -7,200 | 7d00a40465c89bee141ab5a3db545a20e7d30509 | Fix lexer being extremely slow on large amounts of whitespace. Fixes | [
{
"change_type": "MODIFY",
"old_path": "jinja2/lexer.py",
"new_path": "jinja2/lexer.py",
"diff": "@@ -409,6 +409,11 @@ def get_lexer(environment):\nreturn lexer\n+class OptionalLStrip(tuple):\n+ def __new__(cls, *members, **kwargs):\n+ return super(OptionalLStrip, cls).__new__(cls, members)\n+\n+\nc... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix lexer being extremely slow on large amounts of whitespace. Fixes #857 |
501,119 | 06.05.2019 12:33:13 | 14,400 | 6373e25f80f70cdeed5d3573322792e557cbe07f | fixes deletes link to Jinja 1 docs.
This just fixes a broken link by deleteing it.
I'm assuming Jinja 1 docs. aren't readily available anymore.
I looked for a git tag for version 1 as an alternative target,
but didn't see that either. | [
{
"change_type": "MODIFY",
"old_path": "docs/faq.rst",
"new_path": "docs/faq.rst",
"diff": "@@ -153,7 +153,7 @@ Why is there no Python 2.3/2.4/2.5/3.1/3.2 support?\nPython 2.3 is missing a lot of features that are used heavily in Jinja2. This\ndecision was made as with the upcoming Python 2.6 and 3.... | Python | BSD 3-Clause New or Revised License | pallets/jinja | fixes #242, deletes link to Jinja 1 docs.
This just fixes a broken link by deleteing it.
I'm assuming Jinja 1 docs. aren't readily available anymore.
I looked for a git tag for version 1 as an alternative target,
but didn't see that either. |
501,066 | 08.05.2019 10:47:33 | 14,400 | 19133d40593ced72eb28e230588abcc70d8b9f82 | Add ChainableUndefined allowing getattr & getitem
* Add ChainableUndefined allowing getattr & getitem
Allows using default values with chains of items or attributes that may
contain undefined values without raising a jinja2.exceptions.UndefinedError.
>>> import jinja2
>>> env = jinja2.Environment(undefined=jinja2.Chain... | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -10,6 +10,7 @@ dist/\n.tox/\n.cache/\n.idea/\n+env/\nvenv/\nvenv-*/\n.coverage\n"
},
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -13,9 +13,1... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add ChainableUndefined allowing getattr & getitem (#997)
* Add ChainableUndefined allowing getattr & getitem
Allows using default values with chains of items or attributes that may
contain undefined values without raising a jinja2.exceptions.UndefinedError.
>>> import jinja2
>>> env = jinja2.Environment(undefi... |
501,056 | 13.05.2019 15:46:41 | 18,000 | 9b38bb434a23c0a4843b9d376645569dfb23ee13 | BUGFIX - Template parse if with when referencing with dictionary subproperty | [
{
"change_type": "MODIFY",
"old_path": "jinja2/parser.py",
"new_path": "jinja2/parser.py",
"diff": "@@ -841,7 +841,9 @@ class Parser(object):\n'name:and')):\nif self.stream.current.test('name:is'):\nself.fail('You cannot chain multiple tests with is')\n- args = [self.parse_primary()]\n+ arg_node = s... | Python | BSD 3-Clause New or Revised License | pallets/jinja | BUGFIX #930 - Template parse if with when referencing with dictionary subproperty |
501,147 | 16.05.2019 13:54:05 | -10,800 | e622e8997a684fd68dacd5fc95f9ebec76d7e052 | Remove duplicated testcase | [
{
"change_type": "MODIFY",
"old_path": "tests/test_imports.py",
"new_path": "tests/test_imports.py",
"diff": "@@ -139,8 +139,6 @@ class TestIncludes(object):\ntest_includes(t, x='missing')\nt = test_env.from_string('{% include x %}')\ntest_includes(t, x='header')\n- t = test_env.from_string('{% incl... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Remove duplicated testcase |
501,088 | 20.05.2019 13:19:08 | -3,600 | 62ca10664f09548bdfe83830f8447e9cad01650a | docs(filters): fix typo `columwrapper` => `columnwrapper` | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -725,7 +725,7 @@ def do_slice(value, slices, fill_with=None):\n.. sourcecode:: html+jinja\n- <div class=\"columwrapper\">\n+ <div class=\"columnwrapper\">\n{%- for column in items|slice(3) %}\n<u... | Python | BSD 3-Clause New or Revised License | pallets/jinja | docs(filters): fix typo `columwrapper` => `columnwrapper` |
501,193 | 31.05.2019 12:28:44 | 0 | 90595070ae0c8da489faf24f153b918d2879e759 | Added new method itervalues() to LRUCache and deprecated itervalue()
(Fixes pallets/jinja#999) | [
{
"change_type": "MODIFY",
"old_path": "jinja2/utils.py",
"new_path": "jinja2/utils.py",
"diff": "import re\nimport json\nimport errno\n+import warnings\nfrom collections import deque\nfrom threading import Lock\nfrom jinja2._compat import text_type, string_types, implements_iterator, \\\n@@ -456,6 ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Added new method itervalues() to LRUCache and deprecated itervalue()
(Fixes pallets/jinja#999) |
501,151 | 31.05.2019 14:11:28 | 18,000 | e632dc5f1bba03f51d201ad034870fca2f3ceeaa | adds documentation on use of python methods in expressions | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1309,13 +1309,35 @@ The general syntax is ``<do something> if <something is true> else <do\nsomething else>``.\nThe `else` part is optional. If not provided, the else block implicitly\n-evalua... | Python | BSD 3-Clause New or Revised License | pallets/jinja | adds documentation on use of python methods in expressions |
501,079 | 31.05.2019 14:17:35 | 14,400 | 4965facc02a3c8db4a928efe33bdcbe5c7bb74e2 | docs: Python3-ize the examples
This commit updates the examples to conform to Python 3 instead
of Python 2, as Python 3 is more acceptable these days. | [
{
"change_type": "MODIFY",
"old_path": "docs/api.rst",
"new_path": "docs/api.rst",
"diff": "@@ -46,7 +46,7 @@ To load a template from this environment you just have to call the\nTo render it with some variables, just call the :meth:`render` method::\n- print template.render(the='variables', go='here... | Python | BSD 3-Clause New or Revised License | pallets/jinja | docs: Python3-ize the examples
This commit updates the examples to conform to Python 3 instead
of Python 2, as Python 3 is more acceptable these days. |
501,161 | 31.05.2019 16:50:15 | 14,400 | 8a39ecae159e691afaef3305628d9ca4eae56970 | Add ability to specify multiple attributes in sort,
e.g. foo|sort(attribute='name,id').
This fixes | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -84,6 +84,44 @@ def make_attrgetter(environment, attribute, postprocess=None):\nreturn attrgetter\n+def make_multi_attrgetter(environment, attribute, postprocess=None):\n+ \"\"\"Returns a callabl... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add ability to specify multiple attributes in sort,
e.g. foo|sort(attribute='name,id').
This fixes #670 |
501,054 | 31.05.2019 16:37:27 | 14,400 | 273d8b184d2caad34e68d7d0f4ef9f1321c3d2c9 | issue-423 remind not to put block in if statements in doc | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -390,7 +390,9 @@ this template \"extends\" another template. When the template system evaluates\nthis template, it first locates the parent. The extends tag should be the\nfirst tag in the temp... | Python | BSD 3-Clause New or Revised License | pallets/jinja | issue-423 remind not to put block in if statements in doc |
501,087 | 31.05.2019 14:31:10 | 18,000 | b5c6c9c39daa6d758ce75fac1756d92baad510a6 | Write a new documentation section on nesting extends. | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -435,6 +435,36 @@ This gives back the results of the parent block::\n{% endblock %}\n+Nesting template extends.\n+~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+In the case of multiple levels of %extends, the ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Write a new documentation section on nesting extends. |
501,161 | 09.06.2019 09:35:29 | 14,400 | 5dea3f7d9b52cc3dbcb8abfa3ac962f6bd6db838 | Refactor _prepare_attribute_parts() to use in both make_attrgetter() and make_multi_attrgetter() | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -65,12 +65,7 @@ def make_attrgetter(environment, attribute, postprocess=None):\nto access attributes of attributes. Integer parts in paths are\nlooked up as integers.\n\"\"\"\n- if attribute is N... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Refactor _prepare_attribute_parts() to use in both make_attrgetter() and make_multi_attrgetter() |
501,122 | 04.07.2019 13:24:51 | 25,200 | c61b366c02de34da90695ff57592d3fda90ac207 | Register custom test category markers.
Since around pytest 3.6 it's been possible to register custom
markers, and since version 4.5.0 pytest warns about any which
are not registered. Register a list of such markers, extracted
from those warnings, so they don't clutter the test output. | [
{
"change_type": "MODIFY",
"old_path": "tests/conftest.py",
"new_path": "tests/conftest.py",
"diff": "@@ -16,12 +16,54 @@ from jinja2.utils import have_async_gen\nfrom jinja2 import Environment\n-def pytest_ignore_collect(path, config):\n+def pytest_ignore_collect(path):\nif 'async' in path.basename... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Register custom test category markers.
Since around pytest 3.6 it's been possible to register custom
markers, and since version 4.5.0 pytest warns about any which
are not registered. Register a list of such markers, extracted
from those warnings, so they don't clutter the test output. |
501,184 | 31.05.2019 18:52:45 | 14,400 | 1e71e3151238a7ac8ad2f0cfcda1f13c90613781 | Allow '{%+' to be valid syntax (but NOP) when lstrip_blocks == False. Fixes | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -16,8 +16,11 @@ unreleased\n- The ``map`` filter in async mode now automatically awaits\n- Added a new ``ChainableUndefined`` class to support getitem\nand getattr on an undefined object. (`#977`_)\n+- Allow... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Allow '{%+' to be valid syntax (but NOP) when lstrip_blocks == False. Fixes #748. |
501,165 | 31.05.2019 13:59:01 | 14,400 | 2319cd5409910d124a4f1acc06e02ac138ef8eba | add default to map filter | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -16,9 +16,11 @@ unreleased\n- The ``map`` filter in async mode now automatically awaits\n- Added a new ``ChainableUndefined`` class to support getitem\nand getattr on an undefined object. (`#977`_)\n-- Allow... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add default to map filter |
501,068 | 06.05.2019 12:00:53 | 14,400 | 35fcd9fef243b4818aeaaa2d4fdb279e7e0126ac | sandbox uses xrange on Python 2 | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -5,9 +5,12 @@ Jinja Changelog\nVersion 2.10.2\n--------------\n-_Unreleased_\n+Unreleased\n- Fix Python 3.7 deprecation warnings.\n+- Using ``range`` in the sandboxed environment uses ``xrange`` on\n+ Python... | Python | BSD 3-Clause New or Revised License | pallets/jinja | sandbox uses xrange on Python 2 |
501,075 | 06.05.2019 11:49:48 | 14,400 | 8b09b03aa061bfa0c9a97de382b2a503e38e7304 | Adding a default parameter to builtin map filter | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -14,8 +14,10 @@ unreleased\nslow initial import. (`#765`_)\n- Python 2.6 and 3.3 are not supported anymore.\n- The `map` filter in async mode now automatically awaits\n+- Added `default` parameter for the `m... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Adding a default parameter to builtin map filter |
501,075 | 07.05.2019 12:00:06 | 14,400 | f7b110cbd0c59cf382790baa950d2558c1bffd03 | exclude globals from find_undeclared_variables | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -19,6 +19,8 @@ unreleased\n- Allow ``{%+`` syntax (with NOP behavior) when\n``lstrip_blocks == False`` (`#748`_)\n- Added a ``default`` parameter for the ``map`` filter. (`#557`_)\n+- Exclude environment glo... | Python | BSD 3-Clause New or Revised License | pallets/jinja | exclude globals from find_undeclared_variables |
501,127 | 12.11.2018 13:56:41 | 18,000 | fd00805ca76808197758800d9d19ee2d6ac708ae | support scientific notation | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1177,12 +1177,19 @@ for Python objects such as strings and numbers. The following literals exist:\narguments to function calls and filters, or just to extend or include a\ntemplate).\n-42 / 42... | Python | BSD 3-Clause New or Revised License | pallets/jinja | support scientific notation |
501,127 | 12.11.2018 19:43:13 | 18,000 | 1fea4b65f9bdc6908b28e27f24c1dc785796b4df | support underscore in int and float | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1177,13 +1177,16 @@ for Python objects such as strings and numbers. The following literals exist:\narguments to function calls and filters, or just to extend or include a\ntemplate).\n-42:\n- ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | support underscore in int and float |
501,159 | 18.07.2019 08:21:34 | 14,400 | 996bcadc3e43e439d640b254953ae40a599551e6 | document that sort is stable | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -284,7 +284,9 @@ def do_sort(\nenvironment, value, reverse=False, case_sensitive=False, attribute=None\n):\n\"\"\"Sort an iterable. Per default it sorts ascending, if you pass it\n- true as first... | Python | BSD 3-Clause New or Revised License | pallets/jinja | document that sort is stable |
501,076 | 08.08.2019 17:14:03 | 25,200 | 2231a5fffee6f37ed831c1fe79596b0d4034840c | Update PyPI link to point to Jinja2 instead of 1 | [
{
"change_type": "MODIFY",
"old_path": "README.rst",
"new_path": "README.rst",
"diff": "@@ -56,7 +56,7 @@ Links\n* Website: http://jinja.pocoo.org/\n* Documentation: http://jinja.pocoo.org/docs/\n* License: `BSD <https://raw.githubusercontent.com/pallets/jinja/master/LICENSE>`_\n-* Releases: https:/... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Update PyPI link to point to Jinja2 instead of 1 |
501,157 | 20.08.2019 00:40:39 | -7,200 | 3a86ef3d72fdefb149c0c859e6e37035826f3557 | Fix TracebackFrameProxy.set_next() on Python 3.7
Fix issue fix a crash in TracebackFrameProxy.set_next() on
Python 3.7 and newer, when Python is build in debug mode.
Since Python 3.7, traceback.tb_next field can be modified: ctypes is
no longer needed. | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -8,6 +8,8 @@ Unreleased\n- Fix Python 3.7 deprecation warnings.\n- Using ``range`` in the sandboxed environment uses ``xrange`` on\nPython 2 to avoid memory use. :issue:`933`\n+- Use Python 3.7's better trac... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix TracebackFrameProxy.set_next() on Python 3.7
Fix issue #1050: fix a crash in TracebackFrameProxy.set_next() on
Python 3.7 and newer, when Python is build in debug mode.
Since Python 3.7, traceback.tb_next field can be modified: ctypes is
no longer needed. |
501,066 | 09.05.2019 16:47:54 | 14,400 | 065b58fc745e303b104995b101151e56b673f984 | Prevent deadlock in LRUCache.setdefault
setdefault was acquiring write_lock, then calling getitem and also
potentially setitem, which also both try to acquire the write lock. | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -21,6 +21,7 @@ Unreleased\n2.56e-3. :issue:`912`, :pr:`922`\n- Int and float literals can be written with the '_' separator for\nlegibility, like 12_345. :pr:`923`\n+- Fix a bug causing deadlocks in ``LRUCac... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Prevent deadlock in LRUCache.setdefault
setdefault was acquiring write_lock, then calling getitem and also
potentially setitem, which also both try to acquire the write lock. |
501,066 | 09.05.2019 16:49:50 | 14,400 | 53a5d0aa4436455b64e78fe1229e53e65cf1e789 | Add tests for utils.py - LRUCache, Lorem Ipsum & + | [
{
"change_type": "MODIFY",
"old_path": "tests/conftest.py",
"new_path": "tests/conftest.py",
"diff": "@@ -42,6 +42,7 @@ def pytest_configure(config):\n'lexer',\n'lexnparse',\n'loaders',\n+ 'loremIpsum',\n'lowlevel',\n'lrucache',\n'lstripblocks',\n"
},
{
"change_type": "MODIFY",
"old_path... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add tests for utils.py - LRUCache, Lorem Ipsum & + |
501,066 | 09.05.2019 16:50:47 | 14,400 | 69d8d9886044c509afed3fed5994a987f99fad42 | Add tests for Undefined classes | [
{
"change_type": "MODIFY",
"old_path": "tests/test_api.py",
"new_path": "tests/test_api.py",
"diff": "@@ -270,6 +270,13 @@ class TestUndefined(object):\nassert env.from_string('{{ not missing }}').render() == 'True'\npytest.raises(UndefinedError,\nenv.from_string('{{ missing - 1}}').render)\n+ und1 ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add tests for Undefined classes |
501,171 | 10.08.2019 22:08:39 | -3,600 | 8afc7e57c94bca530c0094e3cdbdbd8b4a1a5541 | Fix bug with when using Markup on ChainableUndefined
Wrapping a ChainableUndefined object with Markup causes an
UndefinedError because Markup thinks that ChainableUndefined has an
attribute called __html__ and tries to call it.
This commit fixes this by defining a method __html__ that calls
ChainableUndefined.__str__. ... | [
{
"change_type": "MODIFY",
"old_path": "jinja2/runtime.py",
"new_path": "jinja2/runtime.py",
"diff": "@@ -753,9 +753,9 @@ def make_logging_undefined(logger=None, base=None):\n# is not overwritten from Undefined in this class.\n# This would cause a recursion error in Python 2.\nclass ChainableUndefin... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix bug with when using Markup on ChainableUndefined
Wrapping a ChainableUndefined object with Markup causes an
UndefinedError because Markup thinks that ChainableUndefined has an
attribute called __html__ and tries to call it.
This commit fixes this by defining a method __html__ that calls
ChainableUndefined.__str__... |
501,095 | 14.01.2018 14:01:22 | 0 | 017c8d3509c694398093797ee2ed019f1eb02221 | Add support for a {% debug %} extension tag.
This dumps the available variables, filters and tests. | [
{
"change_type": "MODIFY",
"old_path": "jinja2/ext.py",
"new_path": "jinja2/ext.py",
"diff": "~~~~~~~~~~\nJinja extensions allow to add custom tags similar to the way django custom\n- tags work. By default two example extensions exist: an i18n and a cache\n- extension.\n+ tags work. The following de... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add support for a {% debug %} extension tag.
This dumps the available variables, filters and tests. |
501,163 | 06.10.2019 00:00:24 | 14,400 | 051b5217bf39e3d9ac8184204214106998c6ae52 | Eliminate dead code by using pytests.raises instead of try/except/else | [
{
"change_type": "MODIFY",
"old_path": "tests/test_api.py",
"new_path": "tests/test_api.py",
"diff": "@@ -223,12 +223,8 @@ class TestUndefined(object):\npytest.raises(UndefinedError, t.render, test=test)\ndef test_undefined_and_special_attributes(self):\n- try:\n+ with pytest.raises(AttributeError):... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Eliminate dead code by using pytests.raises instead of try/except/else |
501,117 | 09.10.2019 19:14:03 | 14,400 | c76f035e85c4239f0a24e8aa36755f85363551aa | changed test_join functions to unique names | [
{
"change_type": "MODIFY",
"old_path": "tests/test_asyncfilters.py",
"new_path": "tests/test_asyncfilters.py",
"diff": "@@ -91,14 +91,14 @@ def test_groupby_multidot(env_async, articles):\n@mark_dualiter('int_items', lambda: [1, 2, 3])\n-def test_join(env_async, int_items):\n+def test_join_env_int(e... | Python | BSD 3-Clause New or Revised License | pallets/jinja | changed test_join functions to unique names |
501,102 | 06.05.2019 17:17:43 | 14,400 | ef1a4c698c1b9f1630519730c8379c0d6987004e | fixing LoopContext, loops indexing and iterator length property | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -44,6 +44,9 @@ Unreleased\nenvironment's ``undefined`` class. Omitting the ``else`` clause is a\nvalid shortcut and should not raise an error when using\n:class:`StrictUndefined`). :issue:`710`, :pr:`1079`\n... | Python | BSD 3-Clause New or Revised License | pallets/jinja | fixing LoopContext, loops indexing and iterator length property |
501,090 | 23.04.2018 00:26:22 | 25,200 | 39d2e2254af6c0d829fc98b021f840aed2b53ea1 | LRUCache.copy initializes queue methods | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -55,6 +55,8 @@ Unreleased\n- :class:`~nativetypes.NativeTemplate` correctly handles quotes\nbetween expressions. ``\"'{{ a }}', '{{ b }}'\"`` renders as the tuple\n``('1', '2')`` rather than the string ``'1,... | Python | BSD 3-Clause New or Revised License | pallets/jinja | LRUCache.copy initializes queue methods |
501,071 | 07.09.2017 11:21:11 | -7,200 | 4e7e45ab35db5ef68fc52b0ba936f12ad49cd12a | let wordwrap filter respect existing newlines
textwrap.wrap() has unexpected behaviour where when wrapping multiple
paragraphs it will not consider existing newlines.
I.e. when your first paragraph ends on col 75, the next paragraph
will be wrapped on col 5 already.
This patch is wrapping each line individually and com... | [
{
"change_type": "MODIFY",
"old_path": "jinja2/filters.py",
"new_path": "jinja2/filters.py",
"diff": "@@ -700,9 +700,23 @@ def do_wordwrap(environment, s, width=79, break_long_words=True,\nif not wrapstring:\nwrapstring = environment.newline_sequence\nimport textwrap\n- return wrapstring.join(textwr... | Python | BSD 3-Clause New or Revised License | pallets/jinja | let wordwrap filter respect existing newlines
textwrap.wrap() has unexpected behaviour where when wrapping multiple
paragraphs it will not consider existing newlines.
I.e. when your first paragraph ends on col 75, the next paragraph
will be wrapped on col 5 already.
This patch is wrapping each line individually and ... |
501,105 | 23.03.2018 17:58:15 | -3,600 | 2edcf7db4bc6641415f442342d7331c41557c476 | add break_on_hyphens parameter to wordwrap filter | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -65,6 +65,8 @@ Unreleased\n- ``|wordwrap`` filter treats existing newlines as separate paragraphs\nto be wrapped individually, rather than creating short intermediate\nlines. :issue:`175`\n+- Add ``break_on_... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add break_on_hyphens parameter to wordwrap filter |
501,168 | 19.11.2019 15:26:39 | -3,600 | 70ea1d3e224638aa7db10e7814105a590c09cdff | use 'callable' instead of typechecking to inject context | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -75,6 +75,8 @@ Unreleased\nlines. :issue:`175`\n- Add ``break_on_hyphens`` parameter to ``|wordwrap`` filter.\n:issue:`550`\n+- Use :func:`callable` to inject context at runtime for compatibility\n+ with Cyt... | Python | BSD 3-Clause New or Revised License | pallets/jinja | use 'callable' instead of typechecking to inject context |
501,141 | 15.11.2019 22:16:55 | -19,080 | 48036fb4cb3c45ff160f448d02af08443fcee7d9 | return on first false when folding Compare node | [
{
"change_type": "MODIFY",
"old_path": "jinja2/nodes.py",
"new_path": "jinja2/nodes.py",
"diff": "@@ -772,6 +772,8 @@ class Compare(Expr):\nfor op in self.ops:\nnew_value = op.expr.as_const(eval_ctx)\nresult = _cmpop_to_func[op.op](value, new_value)\n+ if not result:\n+ return False\nvalue = new_val... | Python | BSD 3-Clause New or Revised License | pallets/jinja | return on first false when folding Compare node |
501,078 | 01.06.2018 17:16:29 | 14,400 | 1539dd418ab179730ac503501b8cc18100d8b7fb | add a node for derived context references
This allows extensions to access locals in the scope from which they
were called. | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -85,6 +85,9 @@ Unreleased\nand source for Python >= 3.7. :issue:`1104`\n- Tracebacks for template syntax errors in Python 3 no longer show\ninternal compiler frames. :issue:`763`\n+- Add a ``DerivedContextRe... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add a node for derived context references
This allows extensions to access locals in the scope from which they
were called. |
501,088 | 08.12.2019 14:21:03 | 0 | 13ff6c8c1d2ae64c06d4f6fc8666a19485062354 | fix(templates.rst): fix typo (`hat` => `that`) | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -983,7 +983,7 @@ Assignments use the `set` tag and can have multiple targets::\n{% endfor %}\nFound item having something: {{ ns.found }}\n- Note hat the ``obj.attr`` notation in the `set` tag ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | fix(templates.rst): fix typo (`hat` => `that`) |
501,063 | 13.12.2019 16:24:50 | 18,000 | b23a0dec2da3036310852ac82d25a1b115aa0995 | TemplateSyntaxError can be pickled | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -99,6 +99,8 @@ Unreleased\n``UndefinedError`` consistently. ``select_template`` will show the\nundefined message in the list of attempts rather than the empty\nstring. :issue:`1037`\n+- ``TemplateSyntaxError... | Python | BSD 3-Clause New or Revised License | pallets/jinja | TemplateSyntaxError can be pickled |
501,116 | 03.02.2020 23:25:56 | -3,600 | 9933324688170a7037a764717b4e88adefaf4101 | Use stricter getattr() checks for decorator functions
Explicit checks for "is True" prevents unexpected behaviour with objects
that are callable and have permissive gettatr(), such as Mock.
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/asyncfilters.py",
"new_path": "src/jinja2/asyncfilters.py",
"diff": "@@ -26,17 +26,16 @@ async def async_select_or_reject(args, kwargs, modfunc, lookup_attr):\ndef dualfilter(normal_filter, async_filter):\nwrap_evalctx = False\n- if getattr(normal_f... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Use stricter getattr() checks for decorator functions
Explicit checks for "is True" prevents unexpected behaviour with objects
that are callable and have permissive gettatr(), such as Mock.
Fixes #1145 |
501,070 | 27.02.2020 12:46:58 | 21,600 | ba080f51e0d7e20a7870573d1814eeccbc32d99a | use soft_str in do_wordcount, to trigger undefined | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -8,7 +8,8 @@ Unreleased\n- Fix a bug that caused callable objects with ``__getattr__``, like\n:class:`~unittest.mock.Mock` to be treated as a\n:func:`contextfunction`. :issue:`1145`\n-\n+- Update ``wordcount... | Python | BSD 3-Clause New or Revised License | pallets/jinja | use soft_str in do_wordcount, to trigger undefined |
501,156 | 28.02.2020 16:29:26 | -3,600 | 930dd3d977fab589fc0d84cf8c1bcc789ed4d9a5 | Add link to template designer documentation
For those who were actually looking for the template design documentation putting a link directly to it might prevent them to have to google for it. When on the API page, there is no direct way to find the template design documentation. Hope this can help others. | [
{
"change_type": "MODIFY",
"old_path": "docs/api.rst",
"new_path": "docs/api.rst",
"diff": "@@ -5,9 +5,10 @@ API\n:noindex:\n:synopsis: public Jinja API\n-This document describes the API to Jinja and not the template language. It\n-will be most useful as reference to those implementing the template ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add link to template designer documentation
For those who were actually looking for the template design documentation putting a link directly to it might prevent them to have to google for it. When on the API page, there is no direct way to find the template design documentation. Hope this can help others. |
501,074 | 27.03.2020 13:20:01 | -10,800 | 77a212bf93933237cd3574fb44368eea2659f9c5 | Fix tokens line number calculation when whitespace stripping is used | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -21,6 +21,8 @@ Unreleased\nwhen using Pytest. Due to the difficulty in supporting Python 2 and\n:pep:`451` simultaneously, the changes are reverted until 3.0.\n:pr:`1182`\n+- Fix line numbers in error messag... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix tokens line number calculation when whitespace stripping is used |
501,107 | 28.03.2020 16:18:58 | 0 | 0fd45a4dc7c47e49de91058a226c6b1c96d86483 | namespace object works in async templates | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -23,6 +23,8 @@ Unreleased\n:pr:`1182`\n- Fix line numbers in error messages when newlines are stripped.\n:pr:`1178`\n+- The special ``namespace()`` assignment object in templates works in\n+ async environmen... | Python | BSD 3-Clause New or Revised License | pallets/jinja | namespace object works in async templates |
501,108 | 08.04.2020 13:15:30 | 25,200 | 35aa1948c0e80ba864c949ec764edbe9debfc092 | Update oudated CutomLoader code example
py3 for CustomLoader example | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/loaders.py",
"new_path": "src/jinja2/loaders.py",
"diff": "@@ -55,8 +55,8 @@ class BaseLoader:\nif not exists(path):\nraise TemplateNotFound(template)\nmtime = getmtime(path)\n- with file(path) as f:\n- source = f.read().decode('utf-8')\n+ with open... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Update oudated CutomLoader code example (#1185)
py3 for CustomLoader example |
501,139 | 02.04.2020 16:55:57 | -7,200 | dbbd082bce92cb21ae3e4f49aa32554e05e5d8fc | Fix unintended lstrip_blocks behavior. Fixes
Introduced in Tests will follow, also results of performance
testing. | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/lexer.py",
"new_path": "src/jinja2/lexer.py",
"diff": "@@ -682,6 +682,7 @@ class Lexer(object):\nbalancing_stack = []\nlstrip_unless_re = self.lstrip_unless_re\nnewlines_stripped = 0\n+ line_starting = True\nwhile 1:\n# tokenizer loop\n@@ -731,7 +73... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix unintended lstrip_blocks behavior. Fixes #1138
Introduced in #858. Tests will follow, also results of performance
testing. |
501,139 | 03.04.2020 11:29:28 | -7,200 | 7163513a352cb7eda328fedb2bfcd987510929af | Add tests for lstrip whitespace behavior fix
Also did peformance tests for the previous fix and saw no measurable
impact. | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -25,6 +25,8 @@ Unreleased\n:pr:`1178`\n- The special ``namespace()`` assignment object in templates works in\nasync environments. :issue:`1180`\n+- Fix whitespace being removed before tags in the middle of l... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add tests for lstrip whitespace behavior fix
Also did peformance tests for the previous fix and saw no measurable
impact. |
501,140 | 15.06.2020 13:39:33 | 14,400 | 6de60977acd7e82ea204a04756addaef1de13c2d | remove sandbox._MagicFormatMapping
add test for escape formatter | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/sandbox.py",
"new_path": "src/jinja2/sandbox.py",
"diff": "@@ -75,37 +75,6 @@ _mutable_spec = (\n)\n-class _MagicFormatMapping(abc.Mapping):\n- \"\"\"This class implements a dummy wrapper to fix a bug in the Python\n- standard library for string for... | Python | BSD 3-Clause New or Revised License | pallets/jinja | remove sandbox._MagicFormatMapping
add test for escape formatter |
501,140 | 19.06.2020 11:53:29 | 14,400 | cd88dec8ea7c5aa13fdf120481cc989be2c7916f | add more tests for import context behavior | [
{
"change_type": "MODIFY",
"old_path": "tests/test_imports.py",
"new_path": "tests/test_imports.py",
"diff": "@@ -98,6 +98,30 @@ class TestImports:\nwith pytest.raises(UndefinedError, match=\"does not export the requested name\"):\nt.render()\n+ def test_import_with_globals(self, test_env):\n+ env =... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add more tests for import context behavior |
501,140 | 22.06.2020 09:54:08 | 14,400 | cc792d8c918b44c3c6815cced07b0a334a2fed42 | imported templates can see the current globals
_get_default_module takes an optional context to indicate that the
template is imported. If there are differences between the environment
and rendered template globals, a new module is used for the imported
template. | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -11,6 +11,8 @@ Unreleased\n- Remove code that was marked deprecated.\n- Use :pep:`451` API to load templates with\n:class:`~loaders.PackageLoader`. :issue:`1168`\n+- Fix a bug that caused imported macros to ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | imported templates can see the current globals
_get_default_module takes an optional context to indicate that the
template is imported. If there are differences between the environment
and rendered template globals, a new module is used for the imported
template. |
501,140 | 17.06.2020 14:12:57 | 14,400 | 6b0122768f2a5a1decba592e1758dba3c17abcf4 | ignore trim_blocks using '+%}' | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -13,7 +13,7 @@ Unreleased\n:class:`~loaders.PackageLoader`. :issue:`1168`\n- Fix a bug that caused imported macros to not have access to the\ncurrent template's globals. :issue:`688`\n-\n+- Add ability to ig... | Python | BSD 3-Clause New or Revised License | pallets/jinja | ignore trim_blocks using '+%}' |
501,140 | 10.06.2020 16:09:09 | 14,400 | 8da77f9753be0c4357daf2ac8b53730a2d977fdf | add required attribute to blocks
required blocks must be overridden at some point, although not
necessarily by the direct child template | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -19,6 +19,8 @@ Unreleased\n- Fix UndefinedError incorrectly being thrown on an undefined variable\ninstead of ``Undefined`` being returned on\n``NativeEnvironment`` on Python 3.10. :issue:`1335`\n+- Add ``re... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add required attribute to blocks
required blocks must be overridden at some point, although not
necessarily by the direct child template |
501,118 | 18.06.2020 16:06:46 | 14,400 | 1843d6d4110f7d46094fa71cdf1eef998fd7cf71 | deprecate 'with' and 'autoescape' extensions | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -21,6 +21,7 @@ Unreleased\n``NativeEnvironment`` on Python 3.10. :issue:`1335`\n- Add ``required`` attribute to blocks that must be overridden at some\npoint, but not necessarily by the direct child :issue:`... | Python | BSD 3-Clause New or Revised License | pallets/jinja | deprecate 'with' and 'autoescape' extensions |
501,178 | 19.04.2020 05:42:12 | 14,400 | d504e1d1e2798d7b4661462b9ef4cd77dd270ff9 | Improve and extend urlize | [
{
"change_type": "MODIFY",
"old_path": "docs/api.rst",
"new_path": "docs/api.rst",
"diff": "@@ -550,6 +550,10 @@ Example::\nThe default target that is issued for links from the `urlize` filter\nif no other target is defined by the call explicitly.\n+``urlize.additional_uri_schemes``:\n+ Additional u... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Improve and extend urlize |
501,191 | 30.01.2021 14:20:26 | 36,000 | 2f41690b3ba0d0427ec5fc007a40575d95f057ae | update docs on adding extensions | [
{
"change_type": "MODIFY",
"old_path": "docs/extensions.rst",
"new_path": "docs/extensions.rst",
"diff": "@@ -11,14 +11,17 @@ code into a reusable class like adding support for internationalization.\nAdding Extensions\n-----------------\n-Extensions are added to the Jinja environment at creation tim... | Python | BSD 3-Clause New or Revised License | pallets/jinja | update docs on adding extensions (#1237) |
501,191 | 04.02.2021 06:02:48 | 36,000 | c580dd08b53f91136008cebb1b860bc3b61aca73 | update building docs instructions in contributing guide | [
{
"change_type": "MODIFY",
"old_path": "CONTRIBUTING.rst",
"new_path": "CONTRIBUTING.rst",
"diff": "@@ -207,6 +207,12 @@ Read more about `coverage <https://coverage.readthedocs.io>`__.\nBuilding the docs\n~~~~~~~~~~~~~~~~~\n+Install the documentation dependencies if you have not already done so.\n+\... | Python | BSD 3-Clause New or Revised License | pallets/jinja | update building docs instructions in contributing guide (#1235) |
501,182 | 22.02.2021 21:14:22 | -19,080 | 73a94e00d4376da11966fd6add5bdd469b59b0da | map filter can use False as default | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -30,6 +30,8 @@ Unreleased\nhas been updated to be more efficient and match more cases. URLs\nwithout a scheme are linked as ``https://`` instead of ``http://``.\n:issue:`522, 827, 1172`, :pr:`1195`\n+- Filte... | Python | BSD 3-Clause New or Revised License | pallets/jinja | map filter can use False as default |
501,140 | 22.06.2020 15:27:18 | 14,400 | fed1b24d5fda4547725c31df3493a6dfdb170884 | allow scoped blocks to access loop vars | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/compiler.py",
"new_path": "src/jinja2/compiler.py",
"diff": "@@ -1008,9 +1008,12 @@ class CodeGenerator(NodeVisitor):\n# try to figure out if we have an extended loop. An extended loop\n# is necessary if the loop is in recursive mode if the special ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | allow scoped blocks to access loop vars |
501,140 | 23.06.2020 10:53:59 | 14,400 | f524bcce0cf295941fe665cbcb6846e7e9f39df5 | track local loop/block vars for contextfunctions | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -32,6 +32,10 @@ Unreleased\n:issue:`522, 827, 1172`, :pr:`1195`\n- Filters that get attributes, such as ``map`` and ``groupby``, can\nuse a false or empty value as a default. :issue:`1331`\n+- Fix a bug that... | Python | BSD 3-Clause New or Revised License | pallets/jinja | track local loop/block vars for contextfunctions |
501,140 | 23.06.2020 15:36:48 | 14,400 | 49d5f9788c32033d624ce443f1830871a0c79675 | fix bug with cached templates not using new globals | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -36,6 +36,8 @@ Unreleased\nbeing accessed in custom context functions. :issue:`768`\n- Fix a bug that caused scoped blocks from accessing special loop\nvariables. :issue:`1088`\n+- Fix a bug that prevented c... | Python | BSD 3-Clause New or Revised License | pallets/jinja | fix bug with cached templates not using new globals |
501,140 | 26.06.2020 15:26:04 | 14,400 | ebf0e2dfdad237a938436cd18fc49405c5703dc6 | allow optional use of filter based on existence | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -39,6 +39,8 @@ Unreleased\n- Update the template globals when calling\n``Environment.get_template(globals=...)`` even if the template was\nalready loaded. :issue:`295`\n+- Do not raise an error for undefined... | Python | BSD 3-Clause New or Revised License | pallets/jinja | allow optional use of filter based on existence |
501,059 | 13.01.2020 16:18:10 | -25,200 | 3fba8980987c127ac998050728031b6af2854626 | add pgettext and npgettext | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -46,6 +46,8 @@ Unreleased\navailable in a template before using it. Test functions can be\ndecorated with ``@environmentfunction``, ``@evalcontextfunction``,\nor ``@contextfunction``. :issue:`842`, :pr:`1248... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add pgettext and npgettext |
501,094 | 10.03.2020 20:57:28 | 25,200 | 2e0a3da2bc8b764dc8cb5aec390cc7ac7dacd8ae | parse hex, octal, and binary integer literals | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -50,6 +50,8 @@ Unreleased\nextension. :issue:`441`\n- The ``|indent`` filter's ``width`` argument can be a string to\nindent by. :pr:`1167`\n+- The parser understands hex, octal, and binary integer literals.... | Python | BSD 3-Clause New or Revised License | pallets/jinja | parse hex, octal, and binary integer literals |
501,143 | 09.05.2020 13:04:28 | 25,200 | 609bcb08312a844e88ff3239a0810c1ad36460d3 | Undefined.__contains__ raises UndefinedError | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -52,6 +52,8 @@ Unreleased\nindent by. :pr:`1167`\n- The parser understands hex, octal, and binary integer literals.\n:issue:`1170`\n+- ``Undefined.__contains__`` (``in``) raises an ``UndefinedError``\n+ inst... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Undefined.__contains__ raises UndefinedError |
501,084 | 23.09.2020 18:34:58 | -28,800 | 3242428c52852718abe3929481a2446c9e43482f | add Undefined.__aiter__ | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -54,6 +54,7 @@ Unreleased\n:issue:`1170`\n- ``Undefined.__contains__`` (``in``) raises an ``UndefinedError``\ninstead of a ``TypeError``. :issue:`1198`\n+- ``Undefined`` is iterable in an async environment. ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add Undefined.__aiter__ |
501,132 | 02.03.2021 23:12:30 | -3,600 | 3642ae7fef491222fb81fa3c0ae01bffca25fa41 | NativeEnvironment supports async mode | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -55,6 +55,7 @@ Unreleased\n- ``Undefined.__contains__`` (``in``) raises an ``UndefinedError``\ninstead of a ``TypeError``. :issue:`1198`\n- ``Undefined`` is iterable in an async environment. :issue:`1294`\n+... | Python | BSD 3-Clause New or Revised License | pallets/jinja | NativeEnvironment supports async mode |
501,145 | 26.05.2020 18:46:18 | -7,200 | 1fa864a56156151d117c5066afeb14e72b454a40 | add symbol names for tilde and pipe operators | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1389,10 +1389,10 @@ two categories:\n``is``\nPerforms a :ref:`test <tests>`.\n-``|``\n+``|`` (pipe, vertical bar)\nApplies a :ref:`filter <filters>`.\n-``~``\n+``~`` (tilde)\nConverts all oper... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add symbol names for tilde and pipe operators |
501,057 | 13.06.2020 13:30:27 | 36,000 | 0fa20045b0d2bf06f11a2bab005d9bd986525eda | update wording on dictionary default ordering | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -688,9 +688,17 @@ iterate over containers like `dict`::\n{% endfor %}\n</dl>\n-Note, however, that **Python dicts are not ordered**; so you might want to\n-either pass a sorted ``list`` of ``tu... | Python | BSD 3-Clause New or Revised License | pallets/jinja | update wording on dictionary default ordering |
501,144 | 23.02.2021 14:34:36 | -28,800 | 34fbec9a726113381a27c30d2363aae676b9086a | add default parameter to groupby | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -58,6 +58,8 @@ Unreleased\n- ``NativeEnvironment`` supports async mode. :issue:`1362`\n- Template rendering only treats ``\\n``, ``\\r\\n`` and ``\\r`` as line\nbreaks. Other characters are left unchanged. :... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add default parameter to groupby |
501,173 | 10.02.2020 14:15:23 | 28,800 | 8c97ae57d103ea1c692cbb1ed34b85e80fba6af4 | refactor compiler environment.is_async checks | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/compiler.py",
"new_path": "src/jinja2/compiler.py",
"diff": "@@ -505,10 +505,11 @@ class CodeGenerator(NodeVisitor):\nif undefs:\nself.writeline(f\"{' = '.join(undefs)} = missing\")\n+ def choose_async(self, async_value=\"async \", sync_value=\"\"):... | Python | BSD 3-Clause New or Revised License | pallets/jinja | refactor compiler environment.is_async checks |
501,188 | 16.05.2021 23:45:06 | 14,400 | 06c646df2d7bde401c5a4bfc73794e74d612beab | Use pathlib in some test places | [
{
"change_type": "MODIFY",
"old_path": "tests/conftest.py",
"new_path": "tests/conftest.py",
"diff": "-import os\n+from pathlib import Path\nimport pytest\n@@ -27,8 +27,8 @@ def package_loader():\n@pytest.fixture\ndef filesystem_loader():\n\"\"\"returns FileSystemLoader initialized to res/templates ... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Use pathlib in some test places |
501,140 | 21.05.2021 13:56:58 | 14,400 | f3bc9c6a915badd3871eb1bc5aae5421d2f6496d | clear assignments in loops at end of iteration | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -5,6 +5,9 @@ Version 3.0.2\nUnreleased\n+- Fix a loop scoping bug that caused assignments in nested loops\n+ to still be referenced outside of it. :issue:`1427`\n+\nVersion 3.0.1\n-------------\n"
},
{
... | Python | BSD 3-Clause New or Revised License | pallets/jinja | clear assignments in loops at end of iteration |
501,097 | 18.09.2021 16:24:10 | -3,600 | baff54fe1d7b74c9fa8adb9d1324a77b8a2640ad | imported macros can access template globals in async mode | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -9,6 +9,8 @@ Version 3.0.2\nnames. :issue:`1452, 1453`\n- Revert an unintended change that caused ``Undefined`` to act like\n``StrictUndefined`` for the ``in`` operator. :issue:`1448`\n+- Imported macros hav... | Python | BSD 3-Clause New or Revised License | pallets/jinja | imported macros can access template globals in async mode |
501,149 | 09.11.2021 17:15:31 | -3,600 | bb0db82b91e2842e900fd731acb9de7fab1d72ce | native: keep same behavior on Python 3.10 | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -7,6 +7,8 @@ Unreleased\n- Fix traceback rewriting internals for Python 3.10 and 3.11.\n:issue:`1535`\n+- Fix how the native environment treats leading and trailing spaces\n+ when parsing values on Python 3.... | Python | BSD 3-Clause New or Revised License | pallets/jinja | native: keep same behavior on Python 3.10 |
501,148 | 18.10.2021 23:58:54 | -14,400 | b756b1924a50248d8b0b127ec3c08704c3e47831 | Reduce async overhead due to auto_await | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -9,6 +9,8 @@ Unreleased\n:issue:`1535`\n- Fix how the native environment treats leading and trailing spaces\nwhen parsing values on Python 3.10. :pr:`1537`\n+- Improve async performance by avoiding checks fo... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Reduce async overhead due to auto_await |
501,149 | 13.10.2021 16:56:48 | -7,200 | 2903565262e6c8971e612a2717feb430e284e4ac | support native types in macros | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -22,6 +22,8 @@ Unreleased\n``resolve``.\n- ``unicode_urlencode`` is renamed to ``url_quote``.\n+- Add support for native types in macros. :issue:`1510`\n+\nVersion 3.0.3\n-------------\n"
},
{
"chang... | Python | BSD 3-Clause New or Revised License | pallets/jinja | support native types in macros |
501,114 | 28.11.2021 19:34:23 | -3,600 | e04df6ed8cd6fe25c81066159d482008c93faab6 | Fix little typo in docstring
Fix a little typo in `do_sort` docstring. | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/filters.py",
"new_path": "src/jinja2/filters.py",
"diff": "@@ -415,7 +415,7 @@ def do_sort(\n.. sourcecode:: jinja\n- {% for user users|sort(attribute=\"age,name\") %}\n+ {% for user in users|sort(attribute=\"age,name\") %}\n...\n{% endfor %}\n"
}... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix little typo in docstring
Fix a little typo in `do_sort` docstring. |
501,109 | 03.03.2022 12:41:35 | 28,800 | ac3ac6c965462935f2d1c041ed9e28c1926bdfcc | async_variant filters are pickleable | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -28,6 +28,8 @@ Unreleased\n``{% trans \"title\" %}``. :issue:`1430`\n- Update valid identifier characters from Python 3.6 to 3.7.\n:pr:`1571`\n+- Filters and tests decorated with ``@async_variant`` are pickl... | Python | BSD 3-Clause New or Revised License | pallets/jinja | async_variant filters are pickleable |
501,115 | 15.03.2022 15:56:40 | -7,200 | 6e4df02773465d7a80c75cad93289d24f70bfa74 | Fix formatting in tricks.rst | [
{
"change_type": "MODIFY",
"old_path": "docs/tricks.rst",
"new_path": "docs/tricks.rst",
"diff": "@@ -74,8 +74,8 @@ sense to define a default for that variable::\n...\n<ul id=\"navigation\">\n{% for href, id, caption in navigation_bar %}\n- <li{% if id == active_page %} class=\"active\"{% endif\n- %... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix formatting in tricks.rst |
501,062 | 01.04.2022 22:29:09 | -7,200 | 21da8f529888a2144bafd183439d26564c6dc134 | add missing options to overlay from __init__ | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -5,6 +5,9 @@ Version 3.1.2\nUnreleased\n+- Add parameters to ``Environment.overlay`` to match ``__init__``.\n+ :issue:`1645`\n+\nVersion 3.1.1\n-------------\n"
},
{
"change_type": "MODIFY",
"old... | Python | BSD 3-Clause New or Revised License | pallets/jinja | add missing options to overlay from __init__ |
501,169 | 10.04.2022 20:55:22 | 0 | 746bb95780c17687b27b6d1bf4df1216f0da972c | Fix race conditions in FileSystemBytecodeCache | [
{
"change_type": "MODIFY",
"old_path": "CHANGES.rst",
"new_path": "CHANGES.rst",
"diff": "@@ -7,6 +7,7 @@ Unreleased\n- Add parameters to ``Environment.overlay`` to match ``__init__``.\n:issue:`1645`\n+- Handle race condition in ``FileSystemBytecodeCache``. :issue:`1654`\nVersion 3.1.1\n"
},
{
... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix race conditions in FileSystemBytecodeCache |
501,061 | 18.07.2022 15:35:31 | -7,200 | 5e636989f098354ecbe0e6445047cbcc1a03d186 | Fix typo in docs/api/#custom-tests | [
{
"change_type": "MODIFY",
"old_path": "docs/api.rst",
"new_path": "docs/api.rst",
"diff": "@@ -751,8 +751,8 @@ Now it can be used in templates:\n{% endif %}\nSome decorators are available to tell Jinja to pass extra information to\n-the filter. The object is passed as the first argument, making the... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Fix typo in docs/api/#custom-tests |
501,061 | 22.07.2022 17:47:56 | -7,200 | c4bff4efee83a50f051a5f49015b21989c0d0fd4 | Add in docs/switching/#loops little improvement for consistency | [
{
"change_type": "MODIFY",
"old_path": "docs/switching.rst",
"new_path": "docs/switching.rst",
"diff": "@@ -84,7 +84,7 @@ In Django, the special variable for the loop context is called\n.. code-block:: django\n{% for item in items %}\n- {{ item }}\n+ {{ forloop.counter }}. {{ item }}\n{% empty %}\nN... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Add in docs/switching/#loops little improvement for consistency |
501,176 | 02.08.2022 02:44:14 | -7,200 | 997f7f524396d616edf8a62d21fb5d8dac6c7814 | Replacing os.path.sep with os.sep in loader | [
{
"change_type": "MODIFY",
"old_path": "src/jinja2/loaders.py",
"new_path": "src/jinja2/loaders.py",
"diff": "@@ -28,7 +28,7 @@ def split_template_path(template: str) -> t.List[str]:\npieces = []\nfor piece in template.split(\"/\"):\nif (\n- os.path.sep in piece\n+ os.sep in piece\nor (os.path.altse... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Replacing os.path.sep with os.sep in loader (#1698) |
501,091 | 25.10.2022 09:33:24 | 14,400 | 3ccc61b0bd4f143f34d89fbab8dda7e1c1d524f7 | Update templates.rst
Fix typo | [
{
"change_type": "MODIFY",
"old_path": "docs/templates.rst",
"new_path": "docs/templates.rst",
"diff": "@@ -1172,7 +1172,7 @@ none of the templates exist.\n{% include ['special_sidebar.html', 'sidebar.html'] ignore missing %}\nA variable, with either a template name or template object, can also be\n... | Python | BSD 3-Clause New or Revised License | pallets/jinja | Update templates.rst
Fix typo |
141,017 | 09.01.2017 12:29:39 | -14,400 | f47369b4378d6e27ea347b0cb64d19e4281f4350 | JavaDoc - Correct a mistake in HaloTheme | [
{
"change_type": "MODIFY",
"old_path": "modules/web/src/com/haulmont/cuba/web/theme/HaloTheme.java",
"new_path": "modules/web/src/com/haulmont/cuba/web/theme/HaloTheme.java",
"diff": "package com.haulmont.cuba.web.theme;\n-import com.vaadin.ui.Table;\n-\npublic class HaloTheme {\n/**\n@@ -80,7 +78,7... | Java | Apache License 2.0 | cuba-platform/cuba | PL-8406 JavaDoc - Correct a mistake in HaloTheme |
141,017 | 09.01.2017 11:19:54 | -14,400 | afa4a6bfe800ff618765927eb328fe15e136dd3a | Visibility of the tab on accordion could not be adjusted by specifying UI permission | [
{
"change_type": "MODIFY",
"old_path": "modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopFieldGroup.java",
"new_path": "modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopFieldGroup.java",
"diff": "package com.haulmont.cuba.desktop.gui.components;\n+import com.hau... | Java | Apache License 2.0 | cuba-platform/cuba | PL-8342 Visibility of the tab on accordion could not be adjusted by specifying UI permission |
140,999 | 09.01.2017 13:54:28 | -14,400 | 1f9cbeeeeb73d9775b5e30cd4300168d2902d676 | Extendable meta-annotations ("propagateToSubclasses" optional attribute) | [
{
"change_type": "MODIFY",
"old_path": "modules/core/test/com/haulmont/cuba/core/MetadataTest.java",
"new_path": "modules/core/test/com/haulmont/cuba/core/MetadataTest.java",
"diff": "@@ -20,11 +20,13 @@ import com.haulmont.chile.core.model.MetaClass;\nimport com.haulmont.chile.core.model.MetaModel;... | Java | Apache License 2.0 | cuba-platform/cuba | PL-8123 Extendable meta-annotations ("propagateToSubclasses" optional attribute) |
140,999 | 09.01.2017 13:58:57 | -14,400 | 39d604f22ebf468c3c9274fd3d6b1387fccc3ab1 | Give all platform mapped superclasses non-persistent entities a prefix | [
{
"change_type": "MODIFY",
"old_path": "modules/global/src/com/haulmont/cuba/core/entity/BaseDbGeneratedIdEntity.java",
"new_path": "modules/global/src/com/haulmont/cuba/core/entity/BaseDbGeneratedIdEntity.java",
"diff": "package com.haulmont.cuba.core.entity;\n+import com.haulmont.chile.core.annota... | Java | Apache License 2.0 | cuba-platform/cuba | PL-8426 Give all platform mapped superclasses non-persistent entities a prefix |
141,015 | 09.01.2017 16:02:33 | -14,400 | 47bedd0d1c71bd7eab77be420a6768e2888ef0f8 | Fix min-width / max-width setProperty call in client-side of Table | [
{
"change_type": "MODIFY",
"old_path": "modules/web-toolkit/src/com/haulmont/cuba/web/toolkit/ui/client/tableshared/TableWidgetDelegate.java",
"new_path": "modules/web-toolkit/src/com/haulmont/cuba/web/toolkit/ui/client/tableshared/TableWidgetDelegate.java",
"diff": "@@ -136,8 +136,8 @@ public class... | Java | Apache License 2.0 | cuba-platform/cuba | PL-8427 Fix min-width / max-width setProperty call in client-side of Table |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.