summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-24 22:08:25 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-24 22:08:25 (GMT)
commit4aae1ebab2cab2a4df1ed89b9454f3c88642530e (patch)
tree329078b4b66ab0accb1a7fef7e0ca1ac586989e8 /Python
parent2f7105dde7a01b85640aefb92e8131c02c82e954 (diff)
downloadcpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.zip
cpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.tar.gz
cpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.tar.bz2
Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes
objects, as described in the documentation.
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 20f4814..bce99ae 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -1005,11 +1005,6 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
if (arg == Py_None)
*p = 0;
- else if (PyBytes_Check(arg)) {
- /* Enable null byte check below */
- uarg = arg;
- *p = PyBytes_AS_STRING(arg);
- }
else if (PyUnicode_Check(arg)) {
uarg = UNICODE_DEFAULT_ENCODING(arg);
if (uarg == NULL)