Skip to content

Conversation

@Rocketknight1
Copy link
Member

@Rocketknight1 Rocketknight1 commented Jan 15, 2026

As the title says, this replaces import regex as re with import re. Most of this has already been done, but this cleans out the last of it. It also fixes one case where we were using possessive quantifiers that only work in 3.11, enabling us to remove regex there too.

Aside from general cleanup, the main reason to do this is that regex segfaults in Py3.14's free-threading mode, and it'd be nice if we were able to support that!

@Rocketknight1 Rocketknight1 marked this pull request as ready for review January 15, 2026 18:07
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: bertweet, blenderbot_small, clvp, ctrl, deepseek_vl, deepseek_vl_hybrid, depth_pro, fastspeech2_conformer, got_ocr2, gpt_oss, mllama, pixtral, recurrent_gemma, sam3, sam3_video, switch_transformers

@github-actions
Copy link
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=43310&sha=2cf127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants