Kaydet (Commit) 43fb0097 authored tarafından Victor Stinner's avatar Victor Stinner

Remove dead code

üst 33109a14
...@@ -1029,18 +1029,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, ...@@ -1029,18 +1029,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
else else
return converterr("string or None", return converterr("string or None",
arg, msgbuf, bufsize); arg, msgbuf, bufsize);
if (*format == '#') { if (*p != NULL && uarg != NULL &&
FETCH_SIZE;
assert(0); /* XXX redundant with if-case */
if (arg == Py_None) {
STORE_SIZE(0);
}
else {
STORE_SIZE(PyBytes_Size(arg));
}
format++;
}
else if (*p != NULL && uarg != NULL &&
(Py_ssize_t) strlen(*p) != PyBytes_GET_SIZE(uarg)) (Py_ssize_t) strlen(*p) != PyBytes_GET_SIZE(uarg))
return converterr( return converterr(
"string without null bytes or None", "string without null bytes or None",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment