Chameleon

Latest version: v4.6.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 19

3.0

----------------

Bugs:

- Fix issue on Python 2 where an exception was not cleared when using
the pipe operator and was thus accessible through `sys.exc_info()`.

- The "exists" expression no longer leaks error information.

- Escape '$$' into '$' in both content and string expressions.

- Fix use of macro definition inside translation block.

Improvements:

- Allow unquoted attribute values.

- Wrap attribute error thrown when trying to use a non-macro as a
macro as a `RenderError` to get proper error output.

- Throw a parse error if '--' (double hyphen) appears in an XML
comment.

- The `i18n:target` attribute now overrides a default
`target_language` variable and is passed to the translation
function.

- Include filename in the on-disk cache module name. Previously,
only the SHA digest in hex representation would be used, making
it difficult to see where the module came from. This fixes issue
132.

- Add support for non-ascii attribute names.
[sank]

Compatibility:

- Drop support for Python 2.6, 3.1, and 3.2.

2.131

-------------------

- Fixing brown bag release.

2.25

-----------------

- Add explicit support / testing for Python 3.5.

- Add ``\r`` to negative regex matches to the chameleon parser, where ``\n`` is used but ``\r`` was missing.
Fixes a case, where the tag name was parsed into ``html\r`` instead of ``html``.
Fixes: https://github.com/malthe/chameleon/issues/219

2.24

-----------------

- Fixed Python 3.5 compatibility.

- Fixed brown bag release.

2.23

-----------------

- Added ``enable_data_attributes`` option that allows using HTML5 data
attributes as control attributes instead or in addition to XML
namespace attributes.

2.22

-----------------

- Fix brown bag release.

Page 7 of 19

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.