diff --git a/scrapy/trunk/scrapy/http/request.py b/scrapy/trunk/scrapy/http/request.py index 5b9e5841a..d64f610d4 100644 --- a/scrapy/trunk/scrapy/http/request.py +++ b/scrapy/trunk/scrapy/http/request.py @@ -1,5 +1,4 @@ import urllib -import warnings import hashlib from copy import copy from base64 import urlsafe_b64encode @@ -84,10 +83,6 @@ class Request(object): http_pass = '' self.headers['Authorization'] = 'Basic ' + urlsafe_b64encode("%s:%s" % (http_user, http_pass)) - def __getitem__(self, key): - warnings.warn("Request tuples have been deprecated, Request objects are now used. Index mappings: 0 -> r.url, 1 -> r.body, 2 -> r.deferred, 3 -> r.options ", DeprecationWarning) - return (self.url, self.body, self.deferred, {})[key] - def __str__(self): if self.method != 'GET': return "<(%s) %s>" % (self.method, self.url)