E5Network/E5SslErrorHandler.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2360
b6bf3925e3e1
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a SSL error handler. 7 Module implementing a SSL error handler.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import qVersion, QObject, QByteArray 12 from PyQt4.QtCore import qVersion, QObject, QByteArray
11 from PyQt4.QtNetwork import QSslCertificate, QSslConfiguration, QSslSocket, \ 13 from PyQt4.QtNetwork import QSslCertificate, QSslConfiguration, QSslSocket, \
12 QSslError, QSsl 14 QSslError, QSsl
13 15
32 """ 34 """
33 Constructor 35 Constructor
34 36
35 @param parent reference to the parent object (QObject) 37 @param parent reference to the parent object (QObject)
36 """ 38 """
37 super().__init__(parent) 39 super(E5SslErrorHandler, self).__init__(parent)
38 40
39 caList = self.__getSystemCaCertificates() 41 caList = self.__getSystemCaCertificates()
40 if Preferences.Prefs.settings.contains("Help/CaCertificatesDict"): 42 if Preferences.Prefs.settings.contains("Help/CaCertificatesDict"):
41 # port old entries stored under 'Help' 43 # port old entries stored under 'Help'
42 certificateDict = Preferences.toDict( 44 certificateDict = Preferences.toDict(

eric ide

mercurial