Implement RedirectNetworkReply.abort

This commit is contained in:
Florian Bruhin 2017-04-16 13:14:19 +02:00
parent 6deb079c2a
commit c82bd83715

View File

@ -149,5 +149,9 @@ class RedirectNetworkReply(QNetworkReply):
self.setAttribute(QNetworkRequest.RedirectionTargetAttribute, new_url)
QTimer.singleShot(0, lambda: self.finished.emit())
def abort(self):
"""Called when there's e.g. a redirection limit."""
pass
def readData(self, _maxlen):
return bytes()