Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Chameleon for 
openSUSE:Factory checked in at 2026-11-16 15:14:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Chameleon (Old)
 and      /work/SRC/openSUSE:Factory/.python-Chameleon.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Chameleon"

Mon Nov 16 15:14:43 2026 rev:22 rq:1397875 version:4.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Chameleon/python-Chameleon.changes        
2025-04-14 12:59:32.491169953 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Chameleon.new.1251/python-Chameleon.changes  
    2026-11-16 15:14:52.183360248 +0100
@@ -1,0 +2,12 @@
+Fri Nov 13 08:36:20 UTC 2026 - Danilo Spinella <[email protected]>
+
+- Update to 4.6.1
+  * Added Python 3.15 compatibility.
+  * Raise ExpressionError on unknown TALES expression type, which
+    in turn
+  * Fix converting a render error to a string when the template
+    file is
+  * Fix _resolve_dotted so that each leading dot of a relative name
+  * Fix ExpressionEvaluator raising ValueError when given no
+
+-------------------------------------------------------------------

Old:
----
  Chameleon-4.6.0.tar.gz

New:
----
  Chameleon-4.6.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Chameleon.spec ++++++
--- /var/tmp/diff_new_pack.QsKN2b/_old  2026-11-16 15:14:53.009395082 +0100
+++ /var/tmp/diff_new_pack.QsKN2b/_new  2026-11-16 15:14:53.011395166 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Chameleon
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-Chameleon
-Version:        4.6.0
+Version:        4.6.1
 Release:        0
 Summary:        Fast HTML/XML Template Compiler
 License:        BSD-3-Clause AND BSD-4-Clause AND Python-2.0 AND ZPL-2.1

++++++ Chameleon-4.6.0.tar.gz -> Chameleon-4.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/.github/workflows/main.yml 
new/chameleon-4.6.1/.github/workflows/main.yml
--- old/chameleon-4.6.0/.github/workflows/main.yml      2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/.github/workflows/main.yml      2026-11-13 
08:04:24.000000000 +0100
@@ -21,7 +21,7 @@
         python setup.py bdist_wheel
     - uses: actions/upload-artifact@v4
       with:
-        name: Chameleon
+        name: chameleon
         path: ./dist/
   test:
     strategy:
@@ -33,19 +33,18 @@
         - "windows-latest"
         config:
         # [Python version, tox env]
-        - ["3.9",   "lint"]
-        - ["3.9",   "py39"]
-        - ["3.10",  "py310"]
-        - ["3.11",  "py311"]
-        - ["3.12",  "py312"]
-        - ["3.13",  "py313"]
-        - ["3.14.0-alpha - 3.14.99",  "py314"]
-        - ["pypy-3.9", "pypy3"]
-        - ["3.9",   "docs"]
-        - ["3.9",   "coverage"]
-        - ["3.12",  "mypy"]
-        - ["3.11",  "z3c.macro"]
-        - ["3.11",  "z3c.pt"]
+        - ["3.11", "lint"]
+        - ["3.11", "py311"]
+        - ["3.12", "py312"]
+        - ["3.13", "py313"]
+        - ["3.14", "py314"]
+        - ["3.15", "py315"]
+        - ["pypy-3.11", "pypy3"]
+        - ["3.11", "docs"]
+        - ["3.11", "coverage"]
+        - ["3.12", "mypy"]
+        - ["3.11", "z3c.macro"]
+        - ["3.11", "z3c.pt"]
     runs-on: ${{ matrix.os }}
     if: github.event_name != 'pull_request' || 
github.event.pull_request.head.repo.full_name != 
github.event.pull_request.base.repo.full_name
     name: ${{ matrix.config[1] }}
@@ -53,7 +52,7 @@
     - run: git config --global core.autocrlf false
     - uses: actions/checkout@v3
     - name: Set up Python
-      uses: actions/setup-python@v4
+      uses: actions/setup-python@v7
       with:
         python-version: ${{ matrix.config[0] }}
     - name: Pip cache
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/CHANGES.rst 
new/chameleon-4.6.1/CHANGES.rst
--- old/chameleon-4.6.0/CHANGES.rst     2024-12-31 12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/CHANGES.rst     2026-11-13 08:04:24.000000000 +0100
@@ -1,6 +1,29 @@
 Changes
 =======
 
+4.6.1 (2026-11-13)
+------------------
+
+- Added Python 3.15 compatibility.
+
+- Raise `ExpressionError` on unknown TALES expression type, which in turn
+  adds source information to the error output.
+  (`#458 <https://github.com/malthe/chameleon/issues/458>`_)
+
+- Fix converting a render error to a string when the template file is
+  not valid in the locale's encoding (for example a latin-1 file on a
+  UTF-8 system): the source lines are now read as UTF-8, replacing
+  undecodable bytes, instead of raising ``UnicodeDecodeError``.
+  (`#450 <https://github.com/malthe/chameleon/issues/450>`_)
+
+- Fix ``_resolve_dotted`` so that each leading dot of a relative name
+  goes up one module level (``..x`` resolved as ``.x``).
+  (`#451 <https://github.com/malthe/chameleon/issues/451>`_)
+
+- Fix ``ExpressionEvaluator`` raising ``ValueError`` when given no
+  builtins.
+  (`#452 <https://github.com/malthe/chameleon/issues/452>`_)
+
 4.6.0 (2024-12-31)
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/README.rst 
new/chameleon-4.6.1/README.rst
--- old/chameleon-4.6.0/README.rst      2024-12-31 12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/README.rst      2026-11-13 08:04:24.000000000 +0100
@@ -10,7 +10,7 @@
 <http://www.python.org>`_. It uses the *page templates* language.
 
 You can use it in any Python application with just about any
-version of Python (3.9+ and up, plus `pypy 3
+version of Python (3.11+ and up, plus `pypy 3
 <http://pypy.org>`_).
 
 Visit the `documentation <https://chameleon.readthedocs.io/en/latest/>`_
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/docs/conf.py 
new/chameleon-4.6.1/docs/conf.py
--- old/chameleon-4.6.0/docs/conf.py    2024-12-31 12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/docs/conf.py    2026-11-13 08:04:24.000000000 +0100
@@ -45,7 +45,7 @@
 
 # General information about the project.
 project = u'Chameleon'
-copyright = u'2008-2017 by Malthe Borch and the Repoze Community'
+copyright = u'2008-2016 by Malthe Borch'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -202,5 +202,5 @@
 
 # Configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {
-    'https://docs.python.org/': None,
+    "python": ("https://docs.python.org/3/";, None),
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/setup.py new/chameleon-4.6.1/setup.py
--- old/chameleon-4.6.0/setup.py        2024-12-31 12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/setup.py        2026-11-13 08:04:24.000000000 +0100
@@ -1,4 +1,4 @@
-__version__ = '4.6.0'
+__version__ = '4.6.1'
 
 import os
 
@@ -47,11 +47,11 @@
         "Intended Audience :: Developers",
         "Programming Language :: Python",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.9",
-        "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3.11",
         "Programming Language :: Python :: 3.12",
         "Programming Language :: Python :: 3.13",
+        "Programming Language :: Python :: 3.14",
+        "Programming Language :: Python :: 3.15",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: Python :: Implementation :: PyPy",
     ],
@@ -72,7 +72,7 @@
             'py.typed',
         ],
     },
-    python_requires='>=3.9',
+    python_requires='>=3.11',
     install_requires=install_requires,
     extras_require={
         'docs': {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/compiler.py 
new/chameleon-4.6.1/src/chameleon/compiler.py
--- old/chameleon-4.6.0/src/chameleon/compiler.py       2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/compiler.py       2026-11-13 
08:04:24.000000000 +0100
@@ -658,6 +658,7 @@
 
     We'll use the following convenience function to test the expression
     evaluator.
+
     >>> from chameleon.utils import Scope
     >>> def evaluate(d, *args):
     ...     return evaluator(Scope(d), *args)
@@ -686,7 +687,8 @@
 
     def __init__(self, engine, builtins):
         self._engine = engine
-        self._names, self._builtins = zip(*builtins.items())
+        self._names = tuple(builtins)
+        self._builtins = tuple(builtins.values())
         self._cache = {}
 
     def __call__(self, econtext, rcontext, expression_type, string=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/exc.py 
new/chameleon-4.6.1/src/chameleon/exc.py
--- old/chameleon-4.6.0/src/chameleon/exc.py    2024-12-31 12:14:23.000000000 
+0100
+++ new/chameleon-4.6.1/src/chameleon/exc.py    2026-11-13 08:04:24.000000000 
+0100
@@ -197,7 +197,7 @@
                 )
             elif self.filename and not self.filename.startswith('<'):
                 try:
-                    f = open(self.filename)
+                    f = open(self.filename, encoding='utf-8', errors='replace')
                 except OSError:
                     pass
                 else:
@@ -314,7 +314,7 @@
         for error in self._errors:
             expression, line, column, filename, exc = error
 
-            if isinstance(exc, UnicodeDecodeError):
+            if isinstance(exc, UnicodeDecodeError) and exc.object is not None:
                 string = safe_native(exc.object)
                 s, marker = compute_source_marker(
                     string, exc.start, string[exc.start:exc.end], LENGTH
@@ -331,7 +331,7 @@
 
             if filename and not filename.startswith('<') and line and column:
                 try:
-                    f = open(filename)
+                    f = open(filename, encoding='utf-8', errors='replace')
                 except OSError:
                     pass
                 else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/loader.py 
new/chameleon-4.6.1/src/chameleon/loader.py
--- old/chameleon-4.6.0/src/chameleon/loader.py 2024-12-31 12:14:23.000000000 
+0100
+++ new/chameleon-4.6.1/src/chameleon/loader.py 2026-11-13 08:04:24.000000000 
+0100
@@ -11,9 +11,8 @@
 import sys
 import tempfile
 import warnings
-from importlib.machinery import SourceFileLoader
 from importlib.util import module_from_spec
-from importlib.util import spec_from_loader
+from importlib.util import spec_from_file_location
 from threading import RLock
 from typing import TYPE_CHECKING
 from typing import Any
@@ -224,12 +223,11 @@
         try:
             module = sys.modules.get(base)
             if module is None:
-                loader = SourceFileLoader(base, filename)
-                spec = spec_from_loader(base, loader)
-                if spec is None:
+                spec = spec_from_file_location(base, filename)
+                if spec is None or spec.loader is None:
                     raise ModuleNotFoundError(f"{base} ({filename})")
                 module = module_from_spec(spec)
-                loader.exec_module(module)
+                spec.loader.exec_module(module)
                 sys.modules[base] = module
         finally:
             release_lock()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/tales.py 
new/chameleon-4.6.1/src/chameleon/tales.py
--- old/chameleon-4.6.0/src/chameleon/tales.py  2024-12-31 12:14:23.000000000 
+0100
+++ new/chameleon-4.6.1/src/chameleon/tales.py  2026-11-13 08:04:24.000000000 
+0100
@@ -526,6 +526,7 @@
         self.default = default
 
     def __call__(self, expression):
+        source = expression
         m = match_prefix(expression)
         if m is not None:
             prefix = m.group(1)
@@ -536,8 +537,12 @@
         try:
             factory = self.factories[prefix]
         except KeyError as exc:
-            raise LookupError(
-                "Unknown expression type: %s." % str(exc)
+            # An unknown or misspelled expression type (e.g. ``nocall:`` or
+            # ``strng:``) is a template language error, not an internal one:
+            # raise the documented expression error so the message is
+            # reported with the source location instead of a bare LookupError.
+            raise ExpressionError(
+                "Unknown expression type: %s." % str(exc), source
             )
 
         return factory(expression)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/tests/test_compiler.py 
new/chameleon-4.6.1/src/chameleon/tests/test_compiler.py
--- old/chameleon-4.6.0/src/chameleon/tests/test_compiler.py    1970-01-01 
01:00:00.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/tests/test_compiler.py    2026-11-13 
08:04:24.000000000 +0100
@@ -0,0 +1,17 @@
+import functools
+import unittest
+
+
+class ExpressionEvaluatorTestCase(unittest.TestCase):
+    def test_no_builtins(self):
+        from chameleon.compiler import ExpressionEngine
+        from chameleon.compiler import ExpressionEvaluator
+        from chameleon.tales import ExpressionParser
+        from chameleon.tales import PythonExpr
+        from chameleon.utils import Scope
+
+        parser = ExpressionParser({'python': PythonExpr}, 'python')
+        engine = functools.partial(ExpressionEngine, parser)
+        evaluator = ExpressionEvaluator(engine, {})
+        result = evaluator(Scope({'boo': 'baz'}), {}, 'python', 'boo * 2')
+        assert result == 'bazbaz'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/tests/test_exc.py 
new/chameleon-4.6.1/src/chameleon/tests/test_exc.py
--- old/chameleon-4.6.0/src/chameleon/tests/test_exc.py 2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/tests/test_exc.py 2026-11-13 
08:04:24.000000000 +0100
@@ -1,3 +1,5 @@
+import os
+import tempfile
 from unittest import TestCase
 
 from chameleon import exc
@@ -23,3 +25,18 @@
         e = exc.LanguageError('Invalid define syntax', token)
         # its fine if we get no exception from the following line
         str(e)
+
+    def test_render_error_of_non_utf8_file_to_string(self):
+        # the source lines are read back from the file for the error
+        # message; a file that is not valid in the locale's encoding
+        # must not make the conversion to a string fail
+        from chameleon import PageTemplateFile
+        body = '<?xml version="1.0" encoding="latin-1"?>\n<p>caf\xe9${foo}</p>'
+        with tempfile.TemporaryDirectory() as path:
+            filename = os.path.join(path, 'latin.pt')
+            with open(filename, 'wb') as f:
+                f.write(body.encode('latin-1'))
+            template = PageTemplateFile(filename)
+            with self.assertRaises(NameError) as context:
+                template()
+            self.assertIn('foo', str(context.exception))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/chameleon-4.6.0/src/chameleon/tests/test_templates.py 
new/chameleon-4.6.1/src/chameleon/tests/test_templates.py
--- old/chameleon-4.6.0/src/chameleon/tests/test_templates.py   2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/tests/test_templates.py   2026-11-13 
08:04:24.000000000 +0100
@@ -140,6 +140,28 @@
                 strict=True
             )
 
+    def test_case_on_same_element_as_switch_raises_language_error(self):
+        from chameleon.exc import LanguageError
+
+        with pytest.raises(LanguageError) as excinfo:
+            self.from_string(
+                '''<span tal:switch="1" tal:case="1">text</span>''',
+                strict=True
+            )
+
+        assert "same element" in str(excinfo.value)
+
+    def test_unknown_expression_type_raises_expression_error(self):
+        from chameleon.exc import ExpressionError
+
+        with pytest.raises(ExpressionError) as excinfo:
+            self.from_string(
+                '''<div tal:content="nocall: some_var">text</div>''',
+                strict=True
+            )
+
+        assert "Unknown expression type: 'nocall'." in str(excinfo.value)
+
     def test_syntax_error_in_non_strict_mode(self):
         from chameleon.exc import ExpressionError
 
@@ -456,6 +478,26 @@
         exc = create_formatted_exception(Difficult(), Difficult, str)
         assert exc.args == ()
 
+    def test_create_formatted_exception_unicode_error(self):
+        from chameleon.utils import create_formatted_exception
+
+        try:
+            "æøå".encode("utf-8").decode("ascii")
+        except UnicodeDecodeError as exc:
+            inner = exc
+
+        from chameleon.exc import ExceptionFormatter
+        exc = create_formatted_exception(inner, type(inner), str)
+
+        error = "expression", 1, 1, "", exc
+        formatter = ExceptionFormatter([error], {}, {}, repr)
+        exc = create_formatted_exception(
+            NameError('abc'), NameError, formatter
+        )
+
+        formatted = str(exc)
+        assert formatted.startswith(type(inner).__name__)
+
     def test_error_handler_makes_safe_copy(self):
         calls = []
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/tests/test_utils.py 
new/chameleon-4.6.1/src/chameleon/tests/test_utils.py
--- old/chameleon-4.6.0/src/chameleon/tests/test_utils.py       2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/tests/test_utils.py       2026-11-13 
08:04:24.000000000 +0100
@@ -19,3 +19,15 @@
 
     def test_values(self):
         assert list(self.child.values()) == [1, 2]
+
+
+class ResolveDottedTestCase(unittest.TestCase):
+    import os.path as _path
+
+    def test_relative_name(self):
+        from chameleon.utils import _resolve_dotted
+        assert _resolve_dotted('.path', 'os') is self._path
+
+    def test_relative_name_up_one_level(self):
+        from chameleon.utils import _resolve_dotted
+        assert _resolve_dotted('..path', 'os.sep') is self._path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/utils.py 
new/chameleon-4.6.1/src/chameleon/utils.py
--- old/chameleon-4.6.0/src/chameleon/utils.py  2024-12-31 12:14:23.000000000 
+0100
+++ new/chameleon-4.6.1/src/chameleon/utils.py  2026-11-13 08:04:24.000000000 
+0100
@@ -58,7 +58,7 @@
 
 entity_re = re.compile(r'&(#?)(x?)(\d{1,5}|\w{1,8});')
 
-module_cache = {}
+module_cache: dict[str, Any] = {}
 
 xml_prefixes = (
     (codecs.BOM_UTF8, 'utf-8-sig'),
@@ -90,8 +90,8 @@
 _xml_decl = encode_string("<?xml")
 
 RE_META = re.compile(
-    r'\s*<meta\s+http-equiv=["\']?Content-Type["\']?'
-    r'\s+content=["\']?([^;]+);\s*charset=([^"\']+)["\']?\s*/?\s*>\s*',
+    r'<meta\s+http-equiv=["\']?Content-Type["\']?\s+'
+    r'content=["\']?([^;]+);\s*charset=([^"\'\s]+)\s*(?:["\']\s*)?(?:/\s*)?>',
     re.IGNORECASE
 )
 
@@ -225,7 +225,7 @@
             inst = cls.__new__(new)
 
         BaseException.__init__(inst, *exc.args)
-        inst.__dict__ = exc.__dict__  # type: ignore[attr-defined]
+        inst.__dict__ = exc.__dict__  # type: ignore[assignment]
 
         return inst
     except ValueError:
@@ -283,7 +283,7 @@
             raise ValueError("relative name without base module")
         module_parts = module.split('.')
         name_parts.pop(0)
-        while not name[0]:
+        while not name_parts[0]:
             module_parts.pop()
             name_parts.pop(0)
         name_parts = module_parts + name_parts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/zpt/program.py 
new/chameleon-4.6.1/src/chameleon/zpt/program.py
--- old/chameleon-4.6.0/src/chameleon/zpt/program.py    2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/zpt/program.py    2026-11-13 
08:04:24.000000000 +0100
@@ -206,6 +206,7 @@
             switch = value
 
         self._switches.append(switch)
+        has_own_switch = switch is not None
 
         body = []
 
@@ -417,6 +418,18 @@
                     "Must define switch on a parent element.", clause
                 )
 
+            # ``tal:case`` on the same element as ``tal:switch`` would compile
+            # the case's cancel node outside the switch's cache node (the
+            # switch value is only cached by the wrapping ``Cache`` node, which
+            # this element's own ``Cancel`` node is not nested inside), so the
+            # compiler trips over its own invariant. ZPT requires the case
+            # statement on a child element of the switch statement anyway.
+            if has_own_switch:
+                raise LanguageError(
+                    "The case statement cannot be used on the same element "
+                    "as the switch statement.", clause
+                )
+
             def CASE(node):
                 return nodes.Define(
                     [nodes.Alias(["default"], self.default_marker)],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/src/chameleon/zpt/template.py 
new/chameleon-4.6.1/src/chameleon/zpt/template.py
--- old/chameleon-4.6.0/src/chameleon/zpt/template.py   2024-12-31 
12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/src/chameleon/zpt/template.py   2026-11-13 
08:04:24.000000000 +0100
@@ -330,8 +330,8 @@
         if encoding is not None:
             def translate(
                 msgid: str | bytes,
-                txl: TranslationFunction = translate,  # type: ignore
-                encoding: str = encoding,  # type: ignore[assignment]
+                txl: TranslationFunction = translate,
+                encoding: str = encoding,
                 **kwargs: Any
             ) -> str:
                 if isinstance(msgid, bytes):
@@ -340,7 +340,7 @@
 
             def decode(
                 inst: bytes,
-                encoding: str = encoding  # type: ignore[assignment]
+                encoding: str = encoding
             ) -> str:
                 return bytes.decode(inst, encoding, 'ignore')
         else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-4.6.0/tox.ini new/chameleon-4.6.1/tox.ini
--- old/chameleon-4.6.0/tox.ini 2024-12-31 12:14:23.000000000 +0100
+++ new/chameleon-4.6.1/tox.ini 2026-11-13 08:04:24.000000000 +0100
@@ -4,11 +4,11 @@
 minversion = 3.18
 envlist =
     lint
-    py39
-    py310
     py311
     py312
     py313
+    py314
+    py315
     pypy3
     docs
     coverage
@@ -18,6 +18,7 @@
 
 [testenv]
 usedevelop = true
+download = true
 deps =
     build
     wheel
@@ -25,11 +26,12 @@
     setuptools
 commands =
     pytest --doctest-modules -W error:"the load_module":DeprecationWarning -W 
error:"zipimport.zipimporter.load_module":DeprecationWarning -W 
error:"ast.":DeprecationWarning {posargs}
-extras =
-    test
 setenv =
     LOGNAME=dummy
 
+[pkgenv]
+download = true
+
 [testenv:lint]
 basepython = python3
 skip_install = true
@@ -110,11 +112,11 @@
     mypy
     importlib_metadata
 commands =
-    mypy -p chameleon --python-version 3.9
-    mypy -p chameleon --python-version 3.10
     mypy -p chameleon --python-version 3.11
     mypy -p chameleon --python-version 3.12
     mypy -p chameleon --python-version 3.13
+    mypy -p chameleon --python-version 3.14
+    mypy -p chameleon --python-version 3.15
 
 [testenv:z3c.macro]
 basepython = python3

Reply via email to