summaryrefslogtreecommitdiff
path: root/jinja2/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* clarify quoting behavior of urlencode filterDavid Lord2019-11-041-11/+20
|
* don't create a third queueDavid Lord2019-10-241-2/+1
|
* LRUCache.copy initializes queue methodsRyan Siemens2019-10-241-0/+1
|
* use "Jinja" instead of "Jinja2"David Lord2019-10-231-2/+2
|
* clarify cycler.next() behaviorDavid Lord2019-10-201-6/+32
|
* skip template with same name as directoryDavid Lord2019-10-131-7/+6
| | | | | | When using multiple paths with FileSystemLoader, a template with the same name as a directory will not prevent loading a template in the directory.
* Prevent deadlock in LRUCache.setdefaultEtiennePelletier2019-10-041-10/+5
| | | | | setdefault was acquiring write_lock, then calling getitem and also potentially setitem, which also both try to acquire the write lock.
* Simplify splitting import_name in import_string()Min ho Kim2019-07-241-3/+1
|
* Added new method itervalues() to LRUCache and deprecated itervalue()gokcegrbl2019-05-311-0/+9
| | | | (Fixes pallets/jinja#999)
* Import abstract base classes from collections.abcFlorian Bruhin2018-08-071-7/+2
| | | | | | | | | | | | | | | | In Python 3.7, importing ABCs directly from the `collections` module shows a warning (and in Python 3.8 it will stop working) - see https://github.com/python/cpython/commit/c66f9f8d3909f588c251957d499599a1680e2320 This fixes various DeprecationWarnings such as those: ``` .../jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping .../jinja2/runtime.py:318: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping ```
* Fix typos (#815)luzpaz2018-02-181-1/+1
| | | Found via `codespell -q 3` using v1.12.0.dev0
* Merge branch '2.9-maintenance'Armin Ronacher2017-08-091-1/+1
|\
| * Make tojson always safe (fix #709)Ayala Shachar2017-05-231-1/+1
| |
* | Don't allow setting real attributes on ns objectsAdrian Moennich2017-06-241-2/+13
| | | | | | | | https://github.com/pallets/jinja/pull/684#issuecomment-291958060
* | Add support for namespace attribute assignmentAdrian Moennich2017-06-241-0/+12
|/
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Updated docs on autoescaping and made select_autoescape case insensitiveArmin Ronacher2017-01-071-2/+7
|
* Added a more convenient autoescaping functionArmin Ronacher2017-01-071-0/+49
|
* Ported tojson filter. Fixes #458Armin Ronacher2017-01-061-0/+31
|
* Merge pull request #525 from iffy/fix-cycle-nextArmin Ronacher2017-01-031-1/+3
|\ | | | | Give Cycler a next() method so that it works in python2 and 3
| * Give Cycler a next() method so that it works in python2 and 3Matt Haggard2015-12-291-1/+3
| |
* | Make noopener the default for urlizeArmin Ronacher2016-12-311-8/+6
| |
* | Initial support for async renderingArmin Ronacher2016-12-281-0/+8
| |
* | Fix typo in clear_caches docstringMarcelo Jorge Vieira2016-09-091-1/+1
| |
* | Escape target attribute in the urlize function in utils.py. (#507)Sambhav Satija2016-04-101-1/+1
|/
* Fixed for_qs for urlencode. This fixes #515Armin Ronacher2015-11-201-1/+1
|
* Escape slashes in query strings. This fixes #445Armin Ronacher2015-05-251-2/+6
|
* Merge pull request #375 from zart/fix-relative-search-on-windowsMarkus Unterwaditzer2015-03-111-1/+1
|\ | | | | Windows returns EINVAL on bogus filenames
| * Windows returns EINVAL on bogus filenamesKonstantin Zemlyak2014-09-281-1/+1
| | | | | | | | Related pull of pyramid_jinja2: https://github.com/Pylons/pyramid_jinja2/pull/94
* | Fix typoFabio Utzig2015-01-181-1/+1
|/
* Issue #126: Add `target` keyword argument to urlize.Berker Peksag2013-08-211-5/+11
|
* Removed some no longer needed code from compatArmin Ronacher2013-05-201-2/+3
|
* Removed some dead importsArmin Ronacher2013-05-201-1/+1
|
* More cleanup in the utils moduleArmin Ronacher2013-05-201-30/+2
|
* Some more small cleanup for metaclassesArmin Ronacher2013-05-201-2/+0
|
* Make the runtime leak less of the version hacksArmin Ronacher2013-05-201-2/+3
|
* PY3 -> PY2 macroArmin Ronacher2013-05-191-2/+2
|
* Unified version checks where appropriateArmin Ronacher2013-05-191-2/+2
|
* Moved all six usages (ignoring testsuite) into jinja2._compatArmin Ronacher2013-05-191-28/+8
|
* Removed bundled markupsafeArmin Ronacher2013-05-191-11/+2
|
* Fixed MethodType being wrong on 3.xArmin Ronacher2013-05-181-1/+1
|
* No need for tuple comparisons.Cory Benfield2013-05-181-1/+1
|
* utils: remove some old py compat codeThomas Waldmann2013-05-181-44/+3
|
* python 3 port: manual fixes, remove 2to3 from setup.py, remove fixersThomas Waldmann2013-05-181-19/+12
|
* python 3 port: automated changes by a slightly modified python-modernizeThomas Waldmann2013-05-171-10/+11
| | | | (replacing unicode with six.text_type, but not replacing u"" by six.u(""))
* Pessimistic locking for LRU cache. This fixes #8Armin Ronacher2013-04-131-20/+24
|
* Fixed an issue about urlize functionmozillazg2013-03-181-0/+1
| | | | | | | | | | | When URL startswith 'https://', the return is wrong. Before: >>> urlize('https://github.com/') u'<a href="http://https://github.com/">https://github.com/</a>' After: >>> urlize('https://github.com/') u'<a href="https://github.com/">https://github.com/</a>'
* Few typos in jinja2.utilsFlorent Xicluna2012-02-051-7/+7
|
* Renamed urlescape to urlencodeArmin Ronacher2012-01-071-1/+1
|
* Reworked implementation of the urlescape filter, made it Python3 compatible, ↵Armin Ronacher2012-01-071-0/+19
| | | | documented it.