summaryrefslogtreecommitdiff
path: root/jinja2/_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* use fspath instead of strDavid Lord2019-10-211-5/+19
|
* support pathlib in FileSystemLoader and ModuleLoaderAlex Chan2019-10-211-0/+5
|
* Import abstract base classes from collections.abcFlorian Bruhin2018-08-071-0/+6
| | | | | | | | | | | | | | | | 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 ```
* Merge pull request #470 from snoack/partial-nextJeff Widman2016-04-141-3/+0
|\ | | | | Use partial(next, ...) instead get_next()
| * Use partial(next, ...) instead get_next()Sebastian Noack2015-08-101-3/+0
| |
* | Improve with_metaclass()Sebastian Noack2015-08-051-14/+5
|/
* Fix number test failing for long in Python 2ThiefMaster2015-02-061-0/+2
|
* Removed some no longer needed code from compatArmin Ronacher2013-05-201-16/+0
|
* Removed duplication from types that was only necessary for IronPythonArmin Ronacher2013-05-201-19/+0
|
* Since we no longer support 2.5 we can use the builtin next() functionArmin Ronacher2013-05-201-6/+0
|
* Disable py_compile for Python 3 and pypyArmin Ronacher2013-05-201-0/+1
|
* Renamed helper classes in with_metaclassArmin Ronacher2013-05-201-2/+2
|
* Corrected a newlineArmin Ronacher2013-05-201-1/+1
|
* More cleanup in the utils moduleArmin Ronacher2013-05-201-2/+24
|
* Added an explanation for how with_metaclass worksArmin Ronacher2013-05-201-0/+9
|
* Make the runtime leak less of the version hacksArmin Ronacher2013-05-201-44/+40
|
* Removed unnecessary delArmin Ronacher2013-05-191-1/+0
|
* Added unicode mixin for unified string logicArmin Ronacher2013-05-191-0/+11
|
* PY3 -> PY2 macroArmin Ronacher2013-05-191-26/+60
|
* Unified version checks where appropriateArmin Ronacher2013-05-191-0/+2
|
* Moved all six usages (ignoring testsuite) into jinja2._compatArmin Ronacher2013-05-191-0/+52
|
* Fixed a docstring and a syntax error on 3.3Armin Ronacher2013-05-191-3/+3
|
* six.advance_iterator -> nextArmin Ronacher2013-05-191-4/+4
|
* Merge remote-tracking branch 'ThomasWaldmann/sprint-branch' into sprint-branchArmin Ronacher2013-05-181-0/+5
|
* stuff missing from previous commit, thanks gitThomas Waldmann2013-05-181-1/+2
|
* new jinja2._compat module for stuff not yet in six 1.3.0Thomas Waldmann2013-05-181-0/+18