← 返回首页
[3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438) by miss-islington · Pull Request #108446 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438)#108446

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-995f4c4-3.12
Aug 25, 2023
Merged

[3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438)#108446
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-995f4c4-3.12

Conversation

miss-islington commented Aug 24, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

The decorator now requires to be called with parenthesis:

@support.requires_legacy_unicode_capi()

instead of:

@support.requires_legacy_unicode_capi

The implementation now only imports _testcapi when the decorator is
called, so "import test.support" no longer imports the _testcapi
extension.
(cherry picked from commit 995f4c4)

Co-authored-by: Victor Stinner vstinner@python.org

…GH-108438) The decorator now requires to be called with parenthesis: @support.requires_legacy_unicode_capi() instead of: @support.requires_legacy_unicode_capi The implementation now only imports _testcapi when the decorator is called, so "import test.support" no longer imports the _testcapi extension. (cherry picked from commit 995f4c4) Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

LGTM, good bot

rhettinger removed their request for review August 25, 2023 04:48
Yhg1s merged commit 0eb6d87 into python:3.12 Aug 25, 2023
miss-islington deleted the backport-995f4c4-3.12 branch August 25, 2023 16:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.