Changes between Initial Version and Version 1 of Ticket #37102
- Timestamp:
- May 17, 2026, 2:47:25 PM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37102 – Description
initial v1 1 1 The CountsDict class in django/utils/html.py has a bug in its __init__ method: 2 2 {{{#!python 3 3 class CountsDict(dict): 4 4 def __init__(self, *args, word, **kwargs): 5 5 super().__init__(*args, *kwargs) # BUG: should be **kwargs 6 6 self.word = word 7 7 }}} 8 8 The call uses *kwargs (positional unpacking) instead of **kwargs (keyword unpacking). Currently this never triggers because CountsDict is only called with 9 9 word=middle, but it would fail if any keyword arguments were passed.