From 836e40896a904edf7678bb8191368257293ea4bb Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 29 Oct 2010 02:23:10 -0200 Subject: [PATCH] minor fixes for python 2.5 compatibility --- scrapy/commands/deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/commands/deploy.py b/scrapy/commands/deploy.py index 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)