mirror of https://github.com/python/cpython
Remove assert that checked if a parameter was an instance of Request. Closes patch #639139.
This commit is contained in:
parent
86503b131b
commit
24b2bc3654
|
@ -319,7 +319,6 @@ class OpenerDirector:
|
||||||
req = fullurl
|
req = fullurl
|
||||||
if data is not None:
|
if data is not None:
|
||||||
req.add_data(data)
|
req.add_data(data)
|
||||||
assert isinstance(req, Request) # really only care about interface
|
|
||||||
|
|
||||||
result = self._call_chain(self.handle_open, 'default',
|
result = self._call_chain(self.handle_open, 'default',
|
||||||
'default_open', req)
|
'default_open', req)
|
||||||
|
|
Loading…
Reference in New Issue