We only want to do I/O in terms of bytes, so lets explode early
instead of recursing forever.
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHG4fdc4adbc838: templatefilters: defend against evil unicode strs in json filter
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
I'm not a python 3 expert by any means, but I'm not sold on this change.
I think we need perhaps a programming error so it's clear its a bug and not something the user needs to fix in their command inputs.
mercurial/templatefilters.py | ||
---|---|---|
242–243 | I fear that this is is an non-actionable error. How might I see it as a user? If I see it, what do I do? Also, why is this a TypeError? Should this be a ProgrammingError instead? Or is there a way user input could trigger this? |
I'll queue this series except this patch so we can have more discussion on what we should do here.
mercurial/templatefilters.py | ||
---|---|---|
242–243 | It's okay to be non actionable error because it's plain wrong |
I fear that this is is an non-actionable error. How might I see it as a user? If I see it, what do I do?
Also, why is this a TypeError? Should this be a ProgrammingError instead? Or is there a way user input could trigger this?