[Python-checkins] r55630 - python/branches/cpy_merge/Modules/_bytes_iomodule.c

alexandre.vassalotti python-checkins at python.org
Tue May 29 02:25:43 CEST 2007


Author: alexandre.vassalotti
Date: Tue May 29 02:25:42 2007
New Revision: 55630

Modified:
   python/branches/cpy_merge/Modules/_bytes_iomodule.c
Log:
Remove the fprintf() call I introduced by error.
Add an assertion.


Modified: python/branches/cpy_merge/Modules/_bytes_iomodule.c
==============================================================================
--- python/branches/cpy_merge/Modules/_bytes_iomodule.c	(original)
+++ python/branches/cpy_merge/Modules/_bytes_iomodule.c	Tue May 29 02:25:42 2007
@@ -104,9 +104,8 @@
 	l = n - (self->buf + self->pos);
 	*output = self->buf + self->pos;
 
-	/* XXX: Is this really needed? */
 	assert(self->pos + l < PY_SSIZE_T_MAX);
-	fprintf(stderr, "line length: %i\n", l);
+	assert(l >= 0);
 	self->pos += l;
 
 	return l;


More information about the Python-checkins mailing list