8000 bpo-20183: Convert _locale to the Argument Clinic by ZackerySpytz · Pull Request #14201 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-20183: Convert _locale to the Argument Clinic #14201

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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into bpo-20183-_locale…
…-module-Argument-Clinic
  • Loading branch information
ZackerySpytz committed Jul 15, 2020
commit 70f5e604670e369f9bfaacaddd786aa59e1b98e2
3 changes: 2 additions & 1 deletion Modules/_localemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,9 @@ _locale_bindtextdomain_impl(PyObject *module, const char *domain,
PyObject *dirname_obj)
/*[clinic end generated code: output=6d6f3c7b345d785c input=c0dff085acfe272b]*/
{
char *dirname, *current_dirname;
const char *dirname, *current_dirname;
PyObject *dirname_bytes = NULL, *result;

if (!strlen(domain)) {
PyErr_SetString(get_locale_state(self)->Error,
"domain must be a non-empty string");
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0