summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-14 09:30:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-14 09:30:54 (GMT)
commit2eb6b0d1bd71c27c76d578079e21c27ad3338b90 (patch)
tree9dd9ef717dbb2f6f4211447146c8b2c9f9799daf /Modules/clinic
parent0fe7978c68c5a1cccf00225c941767015c1ff11f (diff)
parentd6117a4296e129d4cd1525da1a611eca85fff081 (diff)
downloadcpython-2eb6b0d1bd71c27c76d578079e21c27ad3338b90.zip
cpython-2eb6b0d1bd71c27c76d578079e21c27ad3338b90.tar.gz
cpython-2eb6b0d1bd71c27c76d578079e21c27ad3338b90.tar.bz2
Issues #26716, #26057: Regenerate Argument Clinic code.
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/_codecsmodule.c.h32
-rw-r--r--Modules/clinic/fcntlmodule.c.h4
2 files changed, 18 insertions, 18 deletions
diff --git a/Modules/clinic/_codecsmodule.c.h b/Modules/clinic/_codecsmodule.c.h
index e94be11..29f46bb 100644
--- a/Modules/clinic/_codecsmodule.c.h
+++ b/Modules/clinic/_codecsmodule.c.h
@@ -878,7 +878,7 @@ _codecs_utf_7_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_7_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_7_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_7_encode_impl(module, str, errors);
@@ -906,7 +906,7 @@ _codecs_utf_8_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_8_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_8_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_8_encode_impl(module, str, errors);
@@ -935,7 +935,7 @@ _codecs_utf_16_encode(PyModuleDef *module, PyObject *args)
const char *errors = NULL;
int byteorder = 0;
- if (!PyArg_ParseTuple(args, "O|zi:utf_16_encode",
+ if (!PyArg_ParseTuple(args, "U|zi:utf_16_encode",
&str, &errors, &byteorder))
goto exit;
return_value = _codecs_utf_16_encode_impl(module, str, errors, byteorder);
@@ -963,7 +963,7 @@ _codecs_utf_16_le_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_16_le_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_16_le_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_16_le_encode_impl(module, str, errors);
@@ -991,7 +991,7 @@ _codecs_utf_16_be_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_16_be_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_16_be_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_16_be_encode_impl(module, str, errors);
@@ -1020,7 +1020,7 @@ _codecs_utf_32_encode(PyModuleDef *module, PyObject *args)
const char *errors = NULL;
int byteorder = 0;
- if (!PyArg_ParseTuple(args, "O|zi:utf_32_encode",
+ if (!PyArg_ParseTuple(args, "U|zi:utf_32_encode",
&str, &errors, &byteorder))
goto exit;
return_value = _codecs_utf_32_encode_impl(module, str, errors, byteorder);
@@ -1048,7 +1048,7 @@ _codecs_utf_32_le_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_32_le_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_32_le_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_32_le_encode_impl(module, str, errors);
@@ -1076,7 +1076,7 @@ _codecs_utf_32_be_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:utf_32_be_encode",
+ if (!PyArg_ParseTuple(args, "U|z:utf_32_be_encode",
&str, &errors))
goto exit;
return_value = _codecs_utf_32_be_encode_impl(module, str, errors);
@@ -1104,7 +1104,7 @@ _codecs_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:unicode_escape_encode",
+ if (!PyArg_ParseTuple(args, "U|z:unicode_escape_encode",
&str, &errors))
goto exit;
return_value = _codecs_unicode_escape_encode_impl(module, str, errors);
@@ -1132,7 +1132,7 @@ _codecs_raw_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:raw_unicode_escape_encode",
+ if (!PyArg_ParseTuple(args, "U|z:raw_unicode_escape_encode",
&str, &errors))
goto exit;
return_value = _codecs_raw_unicode_escape_encode_impl(module, str, errors);
@@ -1160,7 +1160,7 @@ _codecs_latin_1_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:latin_1_encode",
+ if (!PyArg_ParseTuple(args, "U|z:latin_1_encode",
&str, &errors))
goto exit;
return_value = _codecs_latin_1_encode_impl(module, str, errors);
@@ -1188,7 +1188,7 @@ _codecs_ascii_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:ascii_encode",
+ if (!PyArg_ParseTuple(args, "U|z:ascii_encode",
&str, &errors))
goto exit;
return_value = _codecs_ascii_encode_impl(module, str, errors);
@@ -1217,7 +1217,7 @@ _codecs_charmap_encode(PyModuleDef *module, PyObject *args)
const char *errors = NULL;
PyObject *mapping = NULL;
- if (!PyArg_ParseTuple(args, "O|zO:charmap_encode",
+ if (!PyArg_ParseTuple(args, "U|zO:charmap_encode",
&str, &errors, &mapping))
goto exit;
return_value = _codecs_charmap_encode_impl(module, str, errors, mapping);
@@ -1272,7 +1272,7 @@ _codecs_mbcs_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "O|z:mbcs_encode",
+ if (!PyArg_ParseTuple(args, "U|z:mbcs_encode",
&str, &errors))
goto exit;
return_value = _codecs_mbcs_encode_impl(module, str, errors);
@@ -1305,7 +1305,7 @@ _codecs_code_page_encode(PyModuleDef *module, PyObject *args)
PyObject *str;
const char *errors = NULL;
- if (!PyArg_ParseTuple(args, "iO|z:code_page_encode",
+ if (!PyArg_ParseTuple(args, "iU|z:code_page_encode",
&code_page, &str, &errors))
goto exit;
return_value = _codecs_code_page_encode_impl(module, code_page, str, errors);
@@ -1393,4 +1393,4 @@ exit:
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
-/*[clinic end generated code: output=9c9967048027c1c7 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=04007a13c8387689 input=a9049054013a1b77]*/
diff --git a/Modules/clinic/fcntlmodule.c.h b/Modules/clinic/fcntlmodule.c.h
index 5e3b1c0..d9a1517 100644
--- a/Modules/clinic/fcntlmodule.c.h
+++ b/Modules/clinic/fcntlmodule.c.h
@@ -145,7 +145,7 @@ PyDoc_STRVAR(fcntl_lockf__doc__,
"\n"
"When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with\n"
"LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the\n"
-"lock cannot be acquired, an IOError will be raised and the exception will\n"
+"lock cannot be acquired, an OSError will be raised and the exception will\n"
"have an errno attribute set to EACCES or EAGAIN (depending on the operating\n"
"system -- for portability, check for either value).\n"
"\n"
@@ -182,4 +182,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args)
exit:
return return_value;
}
-/*[clinic end generated code: output=92963b631d00f0fe input=a9049054013a1b77]*/
+/*[clinic end generated code: output=b7d6e8fc2ad09c48 input=a9049054013a1b77]*/