Skip to content

Merge in pallets/jinja:master and fix unit tests#1

Merged
gsemet merged 22 commits intogsemet:masterfrom
tobywf:master
Sep 16, 2019
Merged

Merge in pallets/jinja:master and fix unit tests#1
gsemet merged 22 commits intogsemet:masterfrom
tobywf:master

Conversation

@tobywf
Copy link
Copy Markdown

@tobywf tobywf commented Jun 23, 2019

Issue pallets#970 , please see existing pull request pallets#976 . The merge from pallets/jinja:master looks weird, and to show the CI passes, I've also cut pallets#1023 to show how it would look like. Feel free to close either PR depending on which path you choose.

kevin-brown and others added 22 commits May 6, 2019 10:07
These have been broken for about a month now because of the upgrade
to Sphinx 2. This upgrade happened automatically because we do not
have the version pinned.

Luckily this issue appears to only be from having Python 2 syntax in
the docs script, so making that compatible with Python 3 fixes the
error and allows the docs to pass.
The 'is' operator is not meant to be used for comparisons. It currently working is an implementation detail of CPython.
CPython 3.8 has added a SyntaxWarning for this.
Ticket is referenced in [#Issue 1](https://github.com/pallets/meta/issues/1) in the Meta repo.
I spoke with @davidism and the decision was to use Contributor Covenant. It has easy GitHub integration and quality content.
* 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.ChainableUndefined)
>>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render()
'val'

* Remove class decorator from ChainableUndefined
docs(filters): fix typo `columwrapper` => `columnwrapper`
Added new method itervalues() to LRUCache and deprecated itervalue()
Follow suggestion to use :noindex: for the instance in api."
Document nested extends and super.super().
@gsemet gsemet merged commit f1f7cec into gsemet:master Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.