Commit Graph

140 Commits

Author SHA1 Message Date
Dag Wieers
9bd3cb22c1
Add more strict type tests
This PR adds a few more type-related tests.

- boolean
    Testing of an object is a boolean required 2 tests.

- false
    Make this similar to testing none value

- true
    Make this similar to testing none value

- integer
    The existing 'number' test does not make a distinction between
    integer, float or even booleans

- float
    The existing 'number' test does not make a distinction between
    integer, float or even booleans
2019-10-09 20:02:28 -07:00
David Lord
0a4dad6031
add changelog for #938 2019-10-07 07:42:04 -07:00
David Lord
c8b1b020c0
add changelog for #858 2019-10-06 23:42:36 -07:00
David Lord
5e645ab25c
document debug extension 2019-10-04 19:13:39 -07:00
David Lord
e68d9b8705
Merge branch '2.10.x' 2019-10-04 12:53:44 -07:00
Josh Holland
b5adc65c22
Fix incorrect release date for 2.10.3 2019-10-04 12:44:46 -07:00
David Lord
f179cf8c71
Merge pull request #828 from chamini2/trim-more
Add chars option to trim
2019-10-04 12:01:37 -07:00
David Lord
544c2e9501
Merge branch '2.10.x' 2019-10-04 11:59:18 -07:00
David Lord
c6a71f9545
release version 2.10.3 2019-10-04 11:50:02 -07:00
Matteo Ferrando
9a5d522cb5
add chars option to trim 2019-10-04 11:46:04 -07:00
David Lord
38165dfeba
Merge branch '2.10.x' 2019-10-04 11:22:50 -07:00
David Lord
0fee409131
release version 2.10.2 2019-10-04 11:18:56 -07:00
EtiennePelletier
065b58fc74
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.
2019-10-04 07:58:58 -07:00
David Lord
436f00b776
Merge branch '2.10.x' 2019-09-04 08:25:09 -07:00
Victor Stinner
3a86ef3d72
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.
2019-09-04 07:40:52 -07:00
David Lord
9550dc85ff
Merge branch '2.10.x' 2019-07-26 15:21:16 -07:00
David Lord
288dd42f57
Merge branch '2.9.x' into docs 2019-07-26 15:01:03 -07:00
David Lord
90756da7b6
reformat readme 2019-07-26 14:36:55 -07:00
David Lord
06696563d7
fix linkcheck issues 2019-07-26 12:12:41 -07:00
David Lord
f77b09d998
modernize docs config, use pallets-sphinx-themes 2019-07-26 11:41:08 -07:00
David Lord
733851eda0
clean up numeric underscore support
add changelog
clean up docs
parametrize tests
explain float regex
2019-07-23 11:07:09 -07:00
David Lord
483b62eec2
clean up scientific notation support
add changelog
clean up docs
parametrize tests
2019-07-23 08:19:51 -07:00
Brendan
f7b110cbd0
exclude globals from find_undeclared_variables 2019-07-22 10:43:47 -07:00
David Lord
81783615ea
Merge branch 'master' into 557-map-default 2019-07-22 10:30:10 -07:00
Brendan
8b09b03aa0
Adding a default parameter to builtin map filter 2019-07-22 09:43:13 -07:00
Prakhar Bhandari
35fcd9fef2
sandbox uses xrange on Python 2 2019-07-22 08:30:22 -07:00
Kevin
2319cd5409
add default to map filter 2019-07-22 07:38:50 -07:00
Mark Roth
1e71e31512
Allow '{%+' to be valid syntax (but NOP) when lstrip_blocks == False. Fixes #748. 2019-07-20 14:18:56 -07:00
David Lord
13cc9f410c
Merge branch '2.10.x' 2019-07-20 14:03:04 -07:00
Juan Barreneche
4b1cae9c60 Add python 3.7 deprecation warning fix to changelog 2019-06-18 10:51:55 -03:00
Étienne Pelletier
19133d4059 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(undefined=jinja2.ChainableUndefined)
>>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render()
'val'

* Remove class decorator from ChainableUndefined
2019-05-08 10:47:33 -04:00
David Lord
fd89fed745
Merge branch '2.10.x' 2019-04-06 13:12:56 -07:00
David Lord
c4c4088945
release 2.10.1 2019-04-06 11:02:53 -07:00
Armin Ronacher
7e417c5c6e
Update CHANGES.rst 2019-02-18 08:15:10 +01:00
Florian Bruhin
5425921899 Also drop Python 2.6 2018-06-27 21:48:02 +02:00
Florian Bruhin
d1fb22fd45 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.
2018-06-27 16:13:52 +02:00
David Lord
989a7db234
add changelog
fix unrelated docs issue
2018-02-06 07:48:10 -08:00
Unknown
778ccb22e9 Trivial typos
Most non-user facing.
2017-11-08 20:02:28 -05:00
David Lord
b2dd36b60f
Bump version number to 2.11.dev 2017-11-08 12:02:36 -08:00
David Lord
d9d3fc32f0
clean up MANIFEST.in
clean up make-release.py for py3
add rst extension to CHANGES for GitHub
clean up changelog formatting
2017-11-08 10:53:47 -08:00