Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Stinner committed May 29, 2010
1 parent 33109a1 commit 43fb009
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Python/getargs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,18 +1029,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
else
return converterr("string or None",
arg, msgbuf, bufsize);
if (*format == '#') {
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 &&
if (*p != NULL && uarg != NULL &&
(Py_ssize_t) strlen(*p) != PyBytes_GET_SIZE(uarg))
return converterr(
"string without null bytes or None",
Expand Down

0 comments on commit 43fb009

Please sign in to comment.