Helpviewer/Network/NetworkProtocolUnknownErrorReply.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a QNetworkReply subclass reporting an unknown protocol error. 7 Module implementing a QNetworkReply subclass reporting an unknown protocol error.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import QTimer 12 from PyQt4.QtCore import QTimer
11 from PyQt4.QtNetwork import QNetworkReply 13 from PyQt4.QtNetwork import QNetworkReply
12 14
13 15
20 Constructor 22 Constructor
21 23
22 @param protocol protocol name (string) 24 @param protocol protocol name (string)
23 @param parent reference to the parent object (QObject) 25 @param parent reference to the parent object (QObject)
24 """ 26 """
25 super().__init__(parent) 27 super(NetworkProtocolUnknownErrorReply, self).__init__(parent)
26 self.setError(QNetworkReply.ProtocolUnknownError, 28 self.setError(QNetworkReply.ProtocolUnknownError,
27 self.trUtf8("Protocol '{0}' not supported.").format(protocol)) 29 self.trUtf8("Protocol '{0}' not supported.").format(protocol))
28 QTimer.singleShot(0, self.__fireSignals) 30 QTimer.singleShot(0, self.__fireSignals)
29 31
30 def __fireSignals(self): 32 def __fireSignals(self):

eric ide

mercurial