From b87734341dc3d7debd389ef52900d2c22a9e7e0b Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 18 May 2009 20:59:26 -0300 Subject: [PATCH] fixed docstring --- scrapy/xpath/constructors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/xpath/constructors.py b/scrapy/xpath/constructors.py index 3dcd3b809..3105155ad 100644 --- a/scrapy/xpath/constructors.py +++ b/scrapy/xpath/constructors.py @@ -30,8 +30,8 @@ def xmlDoc_from_html(response): return lxdoc def xmlDoc_from_xml(response): - utf8body = body_as_utf8(response) """Return libxml2 doc for XMLs""" + utf8body = body_as_utf8(response) try: lxdoc = libxml2.readDoc(utf8body, response.url, 'utf-8', xml_parser_options) except TypeError: # libxml2 doesn't parse text with null bytes