[Python-checkins] python/dist/src/Lib csv.py,1.13,1.14
andrewmcnamara at users.sourceforge.net
andrewmcnamara at users.sourceforge.net
Tue Jan 11 08:32:05 CET 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18525/Lib
Modified Files:
csv.py
Log Message:
Set an upper limit on the size of the field buffer, raise an exception
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.
Index: csv.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/csv.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- csv.py 11 Jan 2005 02:22:46 -0000 1.13
+++ csv.py 11 Jan 2005 07:32:02 -0000 1.14
@@ -6,6 +6,7 @@
import re
from _csv import Error, __version__, writer, reader, register_dialect, \
unregister_dialect, get_dialect, list_dialects, \
+ set_field_limit, \
QUOTE_MINIMAL, QUOTE_ALL, QUOTE_NONNUMERIC, QUOTE_NONE, \
__doc__
from _csv import Dialect as _Dialect
More information about the Python-checkins
mailing list