[Python-checkins] r59849 - python/trunk/Lib/collections.py
raymond.hettinger
python-checkins at python.org
Tue Jan 8 03:02:05 CET 2008
Author: raymond.hettinger
Date: Tue Jan 8 03:02:05 2008
New Revision: 59849
Modified:
python/trunk/Lib/collections.py
Log:
Expand comment.
Modified: python/trunk/Lib/collections.py
==============================================================================
--- python/trunk/Lib/collections.py (original)
+++ python/trunk/Lib/collections.py Tue Jan 8 03:02:05 2008
@@ -34,7 +34,8 @@
"""
- # Parse and validate the field names
+ # Parse and validate the field names. Validation serves two purposes,
+ # generating informative error messages and preventing template injection attacks.
if isinstance(field_names, basestring):
field_names = field_names.replace(',', ' ').split() # names separated by whitespace and/or commas
field_names = tuple(field_names)
More information about the Python-checkins
mailing list