Feed text content instead of binary to robots.txt parser.

This commit is contained in:
Bastian Kleineidam 2013-04-07 18:11:29 +02:00
parent cdbeb65ede
commit 781bac0ca2

View file

@ -251,7 +251,7 @@ def get_robotstxt_parser(url, session=None):
elif req.status_code >= 400: elif req.status_code >= 400:
rp.allow_all = True rp.allow_all = True
elif req.status_code == 200: elif req.status_code == 200:
rp.parse(req.content.splitlines()) rp.parse(req.text.splitlines())
return rp return rp