124 def on_serversViewButton_clicked(self): |
124 def on_serversViewButton_clicked(self): |
125 """ |
125 """ |
126 Private slot to show data of the selected server certificate. |
126 Private slot to show data of the selected server certificate. |
127 """ |
127 """ |
128 with contextlib.suppress(ImportError): |
128 with contextlib.suppress(ImportError): |
129 from .EricSslCertificatesInfoDialog import EricSslCertificatesInfoDialog |
129 from .EricSslCertificatesInfoDialog import ( # noqa: I101 |
130 # noqa: I101 |
130 EricSslCertificatesInfoDialog, |
|
131 ) |
131 |
132 |
132 cert = QSslCertificate.fromData( |
133 cert = QSslCertificate.fromData( |
133 self.serversCertificatesTree.currentItem().data(0, self.CertRole) |
134 self.serversCertificatesTree.currentItem().data(0, self.CertRole) |
134 ) |
135 ) |
135 dlg = EricSslCertificatesInfoDialog(cert, self) |
136 dlg = EricSslCertificatesInfoDialog(cert, self) |
346 def on_caViewButton_clicked(self): |
347 def on_caViewButton_clicked(self): |
347 """ |
348 """ |
348 Private slot to show data of the selected CA certificate. |
349 Private slot to show data of the selected CA certificate. |
349 """ |
350 """ |
350 with contextlib.suppress(ImportError): |
351 with contextlib.suppress(ImportError): |
351 from .EricSslCertificatesInfoDialog import EricSslCertificatesInfoDialog |
352 from .EricSslCertificatesInfoDialog import ( # noqa: I101 |
352 # noqa: I101 |
353 EricSslCertificatesInfoDialog, |
|
354 ) |
353 |
355 |
354 cert = QSslCertificate.fromData( |
356 cert = QSslCertificate.fromData( |
355 self.caCertificatesTree.currentItem().data(0, self.CertRole) |
357 self.caCertificatesTree.currentItem().data(0, self.CertRole) |
356 ) |
358 ) |
357 dlg = EricSslCertificatesInfoDialog(cert, self) |
359 dlg = EricSslCertificatesInfoDialog(cert, self) |