[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) by miss-islington · Pull Request #6795 · python/cpython

@michael-lazar @miss-islington

…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.
(cherry picked from commit bd08a0a)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>

miss-islington added a commit to miss-islington/cpython that referenced this pull request

May 14, 2018
…ythonGH-5711) (pythonGH-6795)

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

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
(cherry picked from commit c3fa1f2)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>

serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request

May 14, 2018
…ythonGH-5711) (pythonGH-6795)

The robotparser's __str__ representation now includes wildcard
entries.
(cherry picked from commit c3fa1f2)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>.

miss-islington added a commit to miss-islington/cpython that referenced this pull request

May 14, 2018
…ythonGH-5711) (pythonGH-6795)

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

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
(cherry picked from commit c3fa1f2)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>

serhiy-storchaka pushed a commit that referenced this pull request

May 14, 2018
…H-5711) (GH-6795) (GH-6818)

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

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>

serhiy-storchaka added a commit that referenced this pull request

May 14, 2018
GH-6795) (GH-6817)

The robotparser's __str__ representation now includes wildcard
entries.
(cherry picked from commit c3fa1f2)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>.