Scrapy, a fast high-level web crawling & scraping framework for Python.
iteritems returns tuple elements duh!. #111
Daniel Graña39395eb4f7b2
diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.pyindex 91b8557c2..082d63bbb 100644--- a/scrapy/http/request/form.py+++ b/scrapy/http/request/form.py@@ -117,7 +117,7 @@ def _get_clickable(clickdata, form):# We didn't find it, so now we build an XPath expression out of the other# arguments, because they can be used as suchxpath = u'.//*' + \- u''.join(u'[@%s="%s"]' % tuple(c) for c in clickdata.iteritems())+ u''.join(u'[@%s="%s"]' % c for c in clickdata.iteritems())el = form.xpath(xpath)if len(el) == 1:return (el[0].name, el[0].value)