Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 61972:852d5ea625e7
Remove dead code
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Sat, 29 May 2010 00:13:06 +0000 |
| parents | 308edf11c7cf |
| children | 9d49b744078c |
line wrap: on
line diff
--- a/Python/getargs.c Fri May 28 21:55:10 2010 +0000 +++ b/Python/getargs.c Sat May 29 00:13:06 2010 +0000 @@ -1029,18 +1029,7 @@ 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",
