Scrapy, a fast high-level web crawling & scraping framework for Python.
minor fixes for python 2.5 compatibility
Pablo Hoffman836e40896a90
diff --git a/scrapy/commands/deploy.py b/scrapy/commands/deploy.pyindex a7cd8c9a9..24084bd89 100644--- a/scrapy/commands/deploy.py+++ b/scrapy/commands/deploy.py@@ -161,10 +161,10 @@ def _add_auth_header(request, target):def _http_post(request):try:f = urllib2.urlopen(request)- _log("Server response (%s):" % f.getcode())+ _log("Server response (%s):" % f.code)print f.read()except urllib2.HTTPError, e:- _log("Deploy failed (%s):" % e.getcode())+ _log("Deploy failed (%s):" % e.code)print e.read()except urllib2.URLError, e:_log("Deploy failed: %s" % e)