eric6/E5Network/E5SslErrorHandler.py

changeset 7253
50dbe65a1334
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/E5Network/E5SslErrorHandler.py	Sat Sep 21 15:37:43 2019 +0200
+++ b/eric6/E5Network/E5SslErrorHandler.py	Sat Sep 21 16:04:17 2019 +0200
@@ -11,8 +11,9 @@
 import platform
 
 from PyQt5.QtCore import QObject, QByteArray
-from PyQt5.QtNetwork import QSslCertificate, QSslConfiguration, QSslSocket, \
-    QSslError, QSsl
+from PyQt5.QtNetwork import (
+    QSslCertificate, QSslConfiguration, QSslSocket, QSslError, QSsl
+)
 
 from E5Gui import E5MessageBox
 
@@ -207,24 +208,45 @@
         """
         result = "<p>"
         
-        result += self.tr("Name: {0}")\
-            .format(Utilities.html_encode(Utilities.decodeString(
-                ", ".join(cert.subjectInfo(QSslCertificate.CommonName)))))
+        result += self.tr(
+            "Name: {0}"
+        ).format(
+            Utilities.html_encode(
+                Utilities.decodeString(
+                    ", ".join(cert.subjectInfo(QSslCertificate.CommonName))
+                )
+            )
+        )
         
-        result += self.tr("<br/>Organization: {0}")\
-            .format(Utilities.html_encode(Utilities.decodeString(
-                ", ".join(cert.subjectInfo(
-                    QSslCertificate.Organization)))))
+        result += self.tr(
+            "<br/>Organization: {0}"
+        ).format(
+            Utilities.html_encode(
+                Utilities.decodeString(
+                    ", ".join(cert.subjectInfo(QSslCertificate.Organization))
+                )
+            )
+        )
         
-        result += self.tr("<br/>Issuer: {0}")\
-            .format(Utilities.html_encode(Utilities.decodeString(
-                ", ".join(cert.issuerInfo(QSslCertificate.CommonName)))))
+        result += self.tr(
+            "<br/>Issuer: {0}"
+        ).format(
+            Utilities.html_encode(
+                Utilities.decodeString(
+                    ", ".join(cert.issuerInfo(QSslCertificate.CommonName))
+                )
+            )
+        )
         result += self.tr(
-            "<br/>Not valid before: {0}<br/>Valid Until: {1}")\
-            .format(Utilities.html_encode(
-                    cert.effectiveDate().toString("yyyy-MM-dd")),
-                    Utilities.html_encode(
-                        cert.expiryDate().toString("yyyy-MM-dd")))
+            "<br/>Not valid before: {0}<br/>Valid Until: {1}"
+        ).format(
+            Utilities.html_encode(
+                cert.effectiveDate().toString("yyyy-MM-dd")
+            ),
+            Utilities.html_encode(
+                cert.expiryDate().toString("yyyy-MM-dd")
+            )
+        )
         
         result += "</p>"
         

eric ide

mercurial