[Python-checkins] r81590 - python/branches/py3k/Python/getargs.c
victor.stinner
python-checkins at python.org
Sat May 29 02:13:06 CEST 2010
Author: victor.stinner
Date: Sat May 29 02:13:06 2010
New Revision: 81590
Log:
Remove dead code
Modified:
python/branches/py3k/Python/getargs.c
Modified: python/branches/py3k/Python/getargs.c
==============================================================================
--- python/branches/py3k/Python/getargs.c (original)
+++ python/branches/py3k/Python/getargs.c Sat May 29 02:13:06 2010
@@ -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",
More information about the Python-checkins
mailing list