[issue32861] urllib.robotparser: incomplete __str__ methods

Serhiy Storchaka report at bugs.python.org
Tue Mar 27 10:18:48 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The default entry was moved out of entries added in issue523041, but RobotFileParser.__str__ was not updated. Support for "Crawl-delay" and "Request-Rate" was added in issue16099, but Entry.__str__ was not updated. This looks like bugs to me, and I think the fix should be backported.

But two unnecessary trailing newlines should be kept for compatibility in maintained versions. I think we can get rid of them in 3.8 (unless Senthil has other opinion).

----------
nosy: +serhiy.storchaka
versions: +Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32861>
_______________________________________


More information about the Python-bugs-list mailing list