eric6/Helpviewer/Network/EmptyNetworkReply.py

changeset 7220
5cf645f6daab
parent 7218
eaf2cf171f3a
parent 7211
1c97f3142fa8
child 7221
0485ccdf7877
--- a/eric6/Helpviewer/Network/EmptyNetworkReply.py	Sat Sep 07 14:45:27 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2012 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing a network reply class for an empty reply
-(i.e. request was handle other way).
-"""
-
-from __future__ import unicode_literals
-
-from PyQt5.QtCore import QTimer
-from PyQt5.QtNetwork import QNetworkReply, QNetworkAccessManager
-
-
-class EmptyNetworkReply(QNetworkReply):
-    """
-    Class implementing an empty network reply.
-    """
-    def __init__(self, parent=None):
-        """
-        Constructor
-        
-        @param parent reference to the parent object (QObject)
-        """
-        super(EmptyNetworkReply, self).__init__(parent)
-        
-        self.setOperation(QNetworkAccessManager.GetOperation)
-        self.setError(QNetworkReply.OperationCanceledError, "eric6:No Error")
-        
-        QTimer.singleShot(0, lambda: self.finished.emit())
-    
-    def abort(self):
-        """
-        Public slot to abort the operation.
-        """
-        # do nothing
-        pass
-    
-    def readData(self, maxlen):
-        """
-        Public method to retrieve data from the reply object.
-        
-        @param maxlen maximum number of bytes to read (integer)
-        @return string containing the data (bytes)
-        """
-        return bytes()

eric ide

mercurial