David Lord
e01e0a21f9
Merge pull request #1509 from kianmeng/fix-typos
...
Fix typos
2021-11-09 09:17:51 -08:00
David Lord
6aa096a674
Merge pull request #1522 from klette/fix-node-hash
...
Use `object.__hash__` for `Node.__hash__`
2021-11-09 09:16:49 -08:00
Kristian Klette
9b96b4817a
Use object.__hash__ for Node.__hash__
...
This fixes a regression in commit 60293416db
that
changed the `__hash__` implementation of Node from the default pointer
hash, to a hash based on the node fields.
Since these fields contains list objects, they are not hashable, making
every call to `Node.__hash__` fail.
This breaks some third-party usage such as in `django-compressor`
(See: https://github.com/django-compressor/django-compressor/issues/1060 )
This changed reverts the hash method back to using `object.__hash__` as
the hash implementation.
2021-11-09 09:12:22 -08:00
David Lord
c0130ea7dd
Merge pull request #1516 from mohd-akram/async-perf
...
Reduce async overhead due to auto_await
2021-11-09 08:54:15 -08:00
Mohamed Akram
b756b1924a
Reduce async overhead due to auto_await
2021-11-09 08:52:20 -08:00
David Lord
99b6fc7f37
Merge pull request #1537 from mkrizek/literal_eval-py-310
...
native: keep same behavior on Python 3.10
2021-11-09 08:46:33 -08:00
Martin Krizek
bb0db82b91
native: keep same behavior on Python 3.10
2021-11-09 08:41:02 -08:00
David Lord
a4e2532489
Merge pull request #1536 from pallets/traceback-codetype
...
simplify CodeType rewriting
2021-11-09 08:27:21 -08:00
David Lord
99435a4e69
simplify CodeType rewriting
2021-11-09 07:10:53 -08:00
David Lord
a83aded810
Merge pull request #1527 from hroncok/py3.11-tracebacks
...
Tests: Adapt expected traceback regexes for Python 3.11.0a1
2021-11-05 07:22:28 -07:00
Miro Hrončok
757756696c
Tests: Adapt expected traceback regexes for Python 3.11.0a1
...
Fixes https://github.com/pallets/jinja/issues/1526
Before:
File ".../broken.html", line 2, in <module>
{{ fail() }}
File ".../test_debug.py", line 32, in <lambda>
tmpl.render(fail=lambda: 1 / 0)
ZeroDivisionError: division by zero
After:
File ".../broken.html", line 2, in <module>
{{ fail() }}
^^^^^^^^^^^^
File ".../test_debug.py", line 32, in <lambda>
tmpl.render(fail=lambda: 1 / 0)
~~^~~
ZeroDivisionError: division by zero
2021-11-05 07:19:04 -07:00
David Lord
acd4e343ee
Merge pull request #1531 from pallets/test-3.11
...
test Python 3.11
2021-11-05 07:18:41 -07:00
David Lord
aa27de364a
test Python 3.11
2021-11-05 07:15:25 -07:00
David Lord
423cbfa89a
update py==1.11.0 to work on Python 3.11
2021-11-05 07:13:12 -07:00
David Lord
7e98f23538
Merge pull request #1530 from pallets/test-3.10
...
test Python 3.10
2021-11-05 06:45:06 -07:00
David Lord
34eb205e83
test Python 3.10
2021-11-05 06:34:17 -07:00
David Lord
d5a436c279
Merge pull request #1524 from pallets/update-requirements
...
update requirements
2021-11-01 12:47:56 -07:00
David Lord
23619d33da
update requirements
2021-11-01 12:44:28 -07:00
Kian-Meng, Ang
8cc3a64fa6
Fix typos
2021-10-12 22:36:44 +08:00
David Lord
b7d12b6b15
Merge pull request #1506 from pallets/release-3.0.2
...
release version 3.0.2
2021-10-04 17:53:10 -07:00
David Lord
76c9cf832a
release version 3.0.2
2021-10-04 17:48:23 -07:00
David Lord
28ef40cb0c
Merge pull request #1505 from pallets/package-loader-path
...
omit curdir from PackageLoader root path
2021-10-04 17:45:34 -07:00
David Lord
8931077058
omit curdir from PackageLoader root path
...
fixes compatibility with zip imports
Co-authored-by: kuepe-sl <peter_kueffner@web.de>
2021-10-04 17:39:39 -07:00
David Lord
355ef53451
Merge pull request #1495 from daniel-stoneuk/patch-async-globals
2021-10-04 13:51:05 -07:00
Daniel Stone
baff54fe1d
imported macros can access template globals in async mode
2021-10-04 13:49:13 -07:00
David Lord
fb9cac66e9
Merge pull request #1504 from pallets/update-requirements
...
update requirements
2021-10-04 13:25:34 -07:00
David Lord
ad1ebe30f2
apply pyupgrade
2021-10-04 13:22:49 -07:00
David Lord
c287f61adc
update pre-commit hooks
2021-10-04 13:22:34 -07:00
David Lord
28c7d492e1
update requirements
2021-10-04 13:22:22 -07:00
David Lord
362cdcfd9d
Merge pull request #1503 from pallets/except-chain
...
use exception chaining
2021-10-04 13:19:54 -07:00
David Lord
a99f8c150b
use exception chaining
...
fixes flake8-bugbear B904
2021-10-04 13:16:13 -07:00
David Lord
03146f50c5
Merge pull request #1501 from pallets/ignore-internal-warning
...
ignore internal asyncio warning
2021-10-04 12:47:32 -07:00
David Lord
5fdec22242
ignore internal asyncio warning
...
https://bugs.python.org/issue45097
2021-10-04 12:43:17 -07:00
nabbisen
8cef6b89c5
replace http with https in docs
2021-08-28 09:12:38 -04:00
David Lord
024fa10f10
Merge pull request #1482 from esadek/pip_link
...
update pip link
2021-08-10 06:18:48 -07:00
Emil Sadek
62cbc9b6e8
update pip link
2021-08-10 06:08:06 -07:00
David Lord
531145d28b
Merge pull request #1455 from ewjoachim/undefined-contains-1204
...
Only StrictUndefined.__contains__ raises error
2021-08-09 11:10:01 -07:00
Joachim Jablon
d5f49f5cc1
Fixes #1448 : Revert Undefined.__contains__ to 2.x behaviour
2021-08-09 11:07:35 -07:00
David Lord
1891320941
Merge pull request #1454 from atetubou/deterministic_test
...
make compile_templates deterministic
2021-08-09 11:00:30 -07:00
Takuto Ikuta
4c703ec44d
make compile_templates deterministic
...
Python3 doesn't keep insertion order for set(), so this sorts some
places for deterministic output for compiled template.
2021-08-09 10:58:24 -07:00
David Lord
02071b3e59
Merge pull request #1449 from amy-lei/loop-scoping
...
fix loop scoping bug
2021-08-09 10:19:58 -07:00
David Lord
d4e5112550
Merge pull request #1451 from greyli/improve-contributing-guide
...
Improve the contributing guide
2021-05-25 06:44:22 -07:00
Grey Li
1d3d466c63
Improve the contributing guide
2021-05-25 08:51:55 +08:00
Amy
f3bc9c6a91
clear assignments in loops at end of iteration
2021-05-21 11:24:04 -07:00
David Lord
1037184acd
Merge pull request #1447 from pallets/update-theme
...
Update theme
2021-05-20 20:52:48 -07:00
David Lord
5f09dc4cc0
update pallets and sphinx requirements
2021-05-20 20:49:38 -07:00
David Lord
570f94cc10
update pallets-sphinx-themes
2021-05-20 20:48:16 -07:00
David Lord
738644d816
start version 3.0.2.dev0
2021-05-18 13:39:52 -07:00
David Lord
3b3e16fc18
Merge pull request #1445 from pallets/release-3.0.1
...
release version 3.0.1
2021-05-18 13:37:58 -07:00
David Lord
4d23bfb317
release version 3.0.1
2021-05-18 13:35:09 -07:00