Scrapy, a fast high-level web crawling & scraping framework for Python.
shortened some line widths
Pablo Hoffman3f89fc10b70e
diff --git a/scrapy/trunk/scrapy/http/request.py b/scrapy/trunk/scrapy/http/request.pyindex 0e3f8675a..e808911c7 100644--- a/scrapy/trunk/scrapy/http/request.py+++ b/scrapy/trunk/scrapy/http/request.py@@ -61,12 +61,14 @@ class Request(object):def prepend_callback(self, func, *args, **kwargs):if callable(func):func = defer.Deferred().addCallback(func, *args, **kwargs)- assert isinstance(func, defer.Deferred), 'prepend_callback expects a callable or defer.Deferred instance, got %s' % type(func)+ assert isinstance(func, defer.Deferred), \+ 'prepend_callback expects a callable or defer.Deferred instance, got %s' % type(func)self.deferred = chain_deferred(func, self.deferred)return self.deferreddef set_url(self, url):- assert isinstance(url, basestring), 'Request url argument must be str or unicode, got %s:' % type(url).__name__+ assert isinstance(url, basestring), \+ 'Request url argument must be str or unicode, got %s:' % type(url).__name__decoded_url = url if isinstance(url, unicode) else url.decode(self.encoding)self._url = Url(safe_url_string(decoded_url, self.encoding))url = property(lambda x: x._url, set_url)