Control: reassign 1141791 python3-pygments 2.20.0+dfsg-1
Control: reassign 1141792 python3-pygments 2.20.0+dfsg-1
Control: reassign 1141794 python3-pygments 2.20.0+dfsg-1
Control: reassign 1141795 python3-pygments 2.20.0+dfsg-1
Control: merge 1141791 1141792 1141794 1141795
Control: affects 1141791 src:cmd2 src:gunicorn src:python-inline-snapshot
src:python-openapi-core
Control: forwarded 1141791 https://github.com/pygments/pygments/issues/3076
On Fri, Jul 10, 2026 at 10:39:46AM +0000, Santiago Vila wrote:
File "/usr/lib/python3/dist-packages/pygments/formatters/html.py", line 434,
in __init__
self.filename = html.escape(self._decodeifneeded(options.get('filename',
'')))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/html/__init__.py", line 19, in escape
s = s.replace("&", "&") # Must be done first!
^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'
This and several other similar bugs are all regressions in pygments.
I'll see about cherry-picking the upstream fix.
Thanks,
--
Colin Watson (he/him) [[email protected]]