Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

revert bogus change

Konstantin Lopuhin120fb4adeb95
diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.py
index 59ef15682..09c4e725a 100644
--- a/scrapy/http/response/__init__.py
+++ b/scrapy/http/response/__init__.py
@@ -35,7 +35,7 @@ class Response(object_ref):
return self._url
def _set_url(self, url):
- if isinstance(url, six.string_types):
+ if isinstance(url, str):
self._url = url
else:
raise TypeError('%s url must be str, got %s:' % (type(self).__name__,