src/eric7/EricNetwork/EricSslErrorHandler.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/EricNetwork/EricSslErrorHandler.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/EricNetwork/EricSslErrorHandler.py	Tue Dec 19 19:57:08 2023 +0100
@@ -41,7 +41,8 @@
         """
         Constructor
 
-        @param parent reference to the parent object (QObject)
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__(parent)
 
@@ -80,8 +81,10 @@
         """
         Public slot to handle SSL errors for a network reply.
 
-        @param reply reference to the reply object (QNetworkReply)
-        @param errors list of SSL errors (list of QSslError)
+        @param reply reference to the reply object
+        @type QNetworkReply
+        @param errors list of SSL errors
+        @type list of QSslError
         """
         self.sslErrorsReply(reply, errors)
 
@@ -89,11 +92,13 @@
         """
         Public slot to handle SSL errors for a network reply.
 
-        @param reply reference to the reply object (QNetworkReply)
-        @param errors list of SSL errors (list of QSslError)
-        @return tuple indicating to ignore the SSL errors (one of NotIgnored,
-            SystemIgnored or UserIgnored) and indicating a change of the
-            default SSL configuration (boolean)
+        @param reply reference to the reply object
+        @type QNetworkReply
+        @param errors list of SSL errors
+        @type list of QSslError
+        @return tuple indicating to ignore the SSL errors and indicating a change
+            of the default SSL configuration
+        @rtype tuple of (EricSslErrorState, bool)
         """
         url = reply.url()
         ignore, defaultChanged = self.sslErrors(errors, url.host(), url.port())
@@ -212,8 +217,10 @@
         """
         Private method to convert a certificate to a formatted string.
 
-        @param cert certificate to convert (QSslCertificate)
-        @return formatted string (string)
+        @param cert certificate to convert
+        @type QSslCertificate
+        @return formatted string
+        @rtype str
         """
         result = "<p>"
 
@@ -255,7 +262,8 @@
         """
         Private method to get the list of system certificates.
 
-        @return list of system certificates (list of QSslCertificate)
+        @return list of system certificates
+        @rtype list of QSslCertificate
         """
         caList = QSslCertificate.fromData(
             Globals.toByteArray(

eric ide

mercurial