[Python-checkins] r72232 - python/branches/pep-0383/Python/codecs.c

martin.v.loewis python-checkins at python.org
Sun May 3 10:11:28 CEST 2009


Author: martin.v.loewis
Date: Sun May 3 10:11:23 2009
New Revision: 72232
Log:
Fix minor errors.
Modified:
 python/branches/pep-0383/Python/codecs.c
Modified: python/branches/pep-0383/Python/codecs.c
==============================================================================
--- python/branches/pep-0383/Python/codecs.c	(original)
+++ python/branches/pep-0383/Python/codecs.c	Sun May 3 10:11:23 2009
@@ -826,7 +826,8 @@
 }
 }
 
-PyObject *PyCodec_UTF8bErrors(PyObject *exc)
+static PyObject *
+PyCodec_UTF8bErrors(PyObject *exc)
 {
 PyObject *restuple;
 PyObject *object;
@@ -883,10 +884,6 @@
 	 consumed++;
 	}
 	Py_DECREF(object);
-	if (ch == 0) {
-	 PyErr_SetObject(PyExceptionInstance_Class(exc), exc);
-	 return NULL;
-	}
 	return Py_BuildValue("(u#n)", ch, consumed, start+consumed);
 }
 else {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /