mirror of https://github.com/scrapy/scrapy.git
revert bogus change
This commit is contained in:
parent
f876654a0c
commit
120fb4adeb
|
|
@ -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__,
|
||||
|
|
|
|||
Loading…
Reference in New Issue