]> granicus.if.org Git - python/commit
bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711)
authorMichael Lazar <lazar.michael22@gmail.com>
Mon, 14 May 2018 14:10:41 +0000 (10:10 -0400)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 14 May 2018 14:10:41 +0000 (17:10 +0300)
commitbd08a0af2d88c590ede762102bd42da3437e9980
tree9f2e29d7e8c3bfe131fa78a3358afb314ae0f20d
parent5c0d462689e1a69537eaeba6ab94e3ff3524fc31
bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711)

The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields. Also removes extra
newlines that were being appended to the end of the string.
Lib/test/test_robotparser.py
Lib/urllib/robotparser.py
Misc/NEWS.d/next/Library/2018-04-02-20-44-54.bpo-32861.HeBjzN.rst [new file with mode: 0644]