E5Network/E5SslCertificatesInfoWidget.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2432
b1a2f9054b28
child 2677
3d4277929fb3
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a widget to show SSL certificate infos. 7 Module implementing a widget to show SSL certificate infos.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 from PyQt4.QtCore import pyqtSlot, QCryptographicHash, QDateTime, qVersion 16 from PyQt4.QtCore import pyqtSlot, QCryptographicHash, QDateTime, qVersion
11 from PyQt4.QtGui import QWidget 17 from PyQt4.QtGui import QWidget
12 from PyQt4.QtNetwork import QSslCertificate 18 from PyQt4.QtNetwork import QSslCertificate
13 19
24 """ 30 """
25 Constructor 31 Constructor
26 32
27 @param parent reference to the parent widget (QWidget) 33 @param parent reference to the parent widget (QWidget)
28 """ 34 """
29 super().__init__(parent) 35 super(E5SslCertificatesInfoWidget, self).__init__(parent)
30 self.setupUi(self) 36 self.setupUi(self)
31 37
32 self.__chain = [] 38 self.__chain = []
33 39
34 def showCertificateChain(self, certificateChain): 40 def showCertificateChain(self, certificateChain):

eric ide

mercurial