Skip to content

pygettext.py: Black 26.1.0 on Python (CPython) 3.14 produced different code on the second pass of the formatter #4963

@Safihre

Description

@Safihre

Describe the bug

Black crashes with the mentioned error on a very old script that we have included for ages

To Reproduce

See: https://github.com/sabnzbd/sabnzbd/blob/develop/tools/pygettext.py

Log as mentioned in the error:
blk_ym54yfeb.log

This also happens when I use black.vercel.app.
It crashes.

Expected behavior

No failure

Environment

Black 26.1.0
Windows and black.vercel.app.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: unstable formattingFormatting changed on the second passT: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions