From d03298c85a782dc64e7204b110f9b5600dd4a3bd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 24 Jun 2010 22:08:25 +0000 Subject: Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes objects, as described in the documentation. --- Python/getargs.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Python/getargs.c') diff --git a/Python/getargs.c b/Python/getargs.c index 20f4814e8b..bce99ae798 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) -- cgit v1.2.1