news.rst (cheetah3-3.2.1) | : | news.rst (cheetah3-3.2.2) | ||
---|---|---|---|---|
News | News | |||
==== | ==== | |||
3.2.2 (2019-04-29) | ||||
------------------ | ||||
Minor features: | ||||
- Replaced outdated and insecure ``mktemp`` with ``mkstemp``. | ||||
Bug fixes: | ||||
- Fixed bugs in ``TemplateCmdLineIface.py``: read binary pickles | ||||
from stdin and files. | ||||
Tests: | ||||
- Use ``cgi.escape()`` for Python 2, ``html.escape()`` for Python 3. | ||||
- Created tests for ``TemplateCmdLineIface``. | ||||
3.2.1 (2019-03-19) | 3.2.1 (2019-03-19) | |||
------------------ | ------------------ | |||
Minor features: | Minor features: | |||
- Changed LoadTemplate.loadTemplate{Module,Class}: | - Changed ``LoadTemplate.loadTemplate{Module,Class}``: | |||
the loaded module's __name__ set to just the file name. | the loaded module's ``__name__`` set to just the file name. | |||
- Use imp for Python 2, importlib for Python 3. | - Use ``imp`` for Python 2, ``importlib`` for Python 3. | |||
Bug fixes: | Bug fixes: | |||
- Fix a bug in LoadTemplate.loadTemplate{Module,Class}: | - Fix a bug in ``LoadTemplate.loadTemplate{Module,Class}``: | |||
raise ImportError if the template was not found. | raise ``ImportError`` if the template was not found. | |||
CI: | CI: | |||
- At Travis deploy wheels for macOS. | - At Travis deploy wheels for macOS. | |||
- At AppVeyor deploy wheels directly to PyPI. | - At AppVeyor deploy wheels directly to PyPI. | |||
3.2.0 (2019-02-06) | 3.2.0 (2019-02-06) | |||
------------------ | ------------------ | |||
Features: | Features: | |||
- Dropped support for Python 3.3. | - Dropped support for Python 3.3. | |||
- Implement LoadTemplate.loadTemplate{Module,Class} to load templates | - Implement ``LoadTemplate.loadTemplate{Module,Class}`` | |||
from .py[co], .py or .tmpl. | to load templates from ``.py[co]``, ``.py`` or ``.tmpl``. | |||
- CheetahDirOwner caches compiled template in the template directory. | - ``CheetahDirOwner`` caches compiled template in the template directory. | |||
- CheetahDirOwner now silently ignores errors on compiled templates | - ``CheetahDirOwner`` now silently ignores errors on compiled templates | |||
writing. To get tracebacks set CheetahDirOwner.debuglevel = 1. | writing. To get tracebacks set ``CheetahDirOwner.debuglevel = 1``. | |||
- CheetahDirOwner and DirOwner byte-compile compiled templates | - ``CheetahDirOwner`` and ``DirOwner`` byte-compile compiled templates | |||
to .pyc/.pyo. Errors on writing are silently ignored. | to ``.pyc/.pyo``. Errors on writing are silently ignored. | |||
Minor features: | Minor features: | |||
- Implement Compiler.__unicode__ under Python 2 and Compiler.__bytes__ | - Implement ``Compiler.__unicode__`` under Python 2 | |||
under Python 3. | and ``Compiler.__bytes__`` under Python 3. | |||
Bug fixes: | Bug fixes: | |||
- Fix a bug in Compiler.__str__: under Python 2 the method now always | - Fix a bug in ``Compiler.__str__``: under Python 2 the method | |||
returns str; it encodes unicode to str using encoding from the | always returns str; it encodes unicode to str using encoding from the | |||
compiled source. Under Python 3 the method decodes bytes to str. | compiled source. Under Python 3 the method decodes bytes to str. | |||
Code: | Code: | |||
- Source code was made flake8-clean using the latest flake8. | - Source code was made flake8-clean using the latest flake8. | |||
Documentation: | Documentation: | |||
- Remove outdated section markers. | - Remove outdated section markers. | |||
- Better documentation for ImportHooks. | - Better documentation for ImportHooks. | |||
End of changes. 6 change blocks. | ||||
16 lines changed or deleted | 33 lines changed or added |