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

Closed

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

Activity

  1. Safihre commented on Jan 19, 2026

    @Safihre
    Author

    It also happens on Python 3.14.2.

    Looking at the log it seems to be an encoding problem.

  2. changed the title [-]pygettext.py: Black 26.1.0 on Python (CPython) 3.14.0 produced different code on the second pass of the formatter[/-] [+]pygettext.py: Black 26.1.0 on Python (CPython) 3.14 produced different code on the second pass of the formatter[/+] on Jan 19, 2026
  3. cobaltt7 commented on Jan 19, 2026

    @cobaltt7
    Collaborator

    Bisected to 626b32f cc @MeGaGiGaGon

  4. added a commit that references this issue on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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