diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-29 00:13:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-29 00:13:06 (GMT) |
commit | 43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5 (patch) | |
tree | 5557ba03336ed626fa39844c849f501bd508d989 /Python/getargs.c | |
parent | 33109a142b1c94753b29eff6efe14c1538234bcb (diff) | |
download | cpython-43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5.zip cpython-43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5.tar.gz cpython-43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5.tar.bz2 |
Remove dead code
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index ce9f152..4f7bf7a 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -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", |