Senthil Kumaran <sent...@uthcode.com> added the comment:

I agree with your interpretation of the RFC. The parsing rules do not specify 
any provision for inclusion of blank lines "within" the records.

However, I find that inclusion is no harm either. I checked that with a 
robots.txt parser (Google webmaster tools) and presented the last.fm's 
robots.txt file which had blank line within records. As expected, it did not 
crib. 

I would say that we can be lenient on this front and the question would if we 
allow, would it break any parsing rules? I think, no.

The patch does not break any tests, but a new test should be added to reflect 
this situation. 

I don't have a strong opinion on having a strict=(True|False) for the blank 
line accommodation within records(only). I think, it is better we don't add a 
new parameter and just be lenient.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13281>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to