Skip to content
Myr

Fixes an issue #128: ``Response not working with lxml''. This error happend due to lxml's attempt to do .geturl() call on the response object. __getattr__ didn't raise AttributeError so ``response.geturl'' returned None and ``response.geturl()'' resulted into ``TypeError: 'NoneType' object is not callable'' seen in the issue.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Den Shabalin · committed by Den Shabalin · parent efbbb84 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
414 unmodified lines
415 self._content = zlib.decompress(self._content, 16+zlib.MAX_WBITS)416 except zlib.error:417 pass418 return self._content419 else:420 raise AttributeError421420422 def raise_for_status(self):423 """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""424 if self.error:425 raise self.error
176 unmodified lines