]> granicus.if.org Git - python/commit
[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 May 2018 18:14:30 +0000 (11:14 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 14 May 2018 18:14:30 +0000 (21:14 +0300)
commitc3fa1f2b93fa4bf96a8aadc74ee196384cefa31e
tree1a42e7572aa8b2ad3c400b9dc8ed1492bb7a744c
parent67d1968a41ccc954bdaf841bcabc4138a5ed04d7
[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795)

The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields.
(cherry picked from commit bd08a0af2d88c590ede762102bd42da3437e9980)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
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]