Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecate locale.format() function #94226

Closed
vstinner opened this issue Jun 24, 2022 · 2 comments
Closed

Remove deprecate locale.format() function #94226

vstinner opened this issue Jun 24, 2022 · 2 comments
Assignees
Labels
3.12 stdlib type-bug

Comments

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 24, 2022

The locale.format() function is deprecated since Python 3.7: see issue #54588 for the rationale. IMO it's now time to remove this deprecated function: locale.format_string() can be used since Python 3.7.

@vstinner vstinner added the type-bug label Jun 24, 2022
@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 24, 2022

I proposed PR #94229.

@CAM-Gerlach CAM-Gerlach added stdlib 3.12 labels Jun 25, 2022
vstinner added a commit to vstinner/cpython that referenced this issue Jun 26, 2022
Remove the locale.format() function, deprecated in Python
3.7: use locale.format_string() instead.

Remove TestFormatPatternArg test case: it is irrelevant for
locale.format_string() which accepts complex formats.
vstinner added a commit that referenced this issue Jun 26, 2022
Remove the locale.format() function, deprecated in Python
3.7: use locale.format_string() instead.

Remove TestFormatPatternArg test case: it is irrelevant for
locale.format_string() which accepts complex formats.
@vstinner
Copy link
Member Author

@vstinner vstinner commented Jun 28, 2022

Fixed by #94229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 stdlib type-bug
Projects
None yet
Development

No branches or pull requests

2 participants