src/eric7/EricNetwork/EricSslCertificatesDialog.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
128 def on_serversViewButton_clicked(self): 128 def on_serversViewButton_clicked(self):
129 """ 129 """
130 Private slot to show data of the selected server certificate. 130 Private slot to show data of the selected server certificate.
131 """ 131 """
132 with contextlib.suppress(ImportError): 132 with contextlib.suppress(ImportError):
133 from .EricSslCertificatesInfoDialog import ( # noqa: I101 133 from .EricSslCertificatesInfoDialog import ( # noqa: I-101
134 EricSslCertificatesInfoDialog, 134 EricSslCertificatesInfoDialog,
135 ) 135 )
136 136
137 cert = QSslCertificate.fromData( 137 cert = QSslCertificate.fromData(
138 self.serversCertificatesTree.currentItem().data(0, self.CertRole) 138 self.serversCertificatesTree.currentItem().data(0, self.CertRole)
345 def on_caViewButton_clicked(self): 345 def on_caViewButton_clicked(self):
346 """ 346 """
347 Private slot to show data of the selected CA certificate. 347 Private slot to show data of the selected CA certificate.
348 """ 348 """
349 with contextlib.suppress(ImportError): 349 with contextlib.suppress(ImportError):
350 from .EricSslCertificatesInfoDialog import ( # noqa: I101 350 from .EricSslCertificatesInfoDialog import ( # noqa: I-101
351 EricSslCertificatesInfoDialog, 351 EricSslCertificatesInfoDialog,
352 ) 352 )
353 353
354 cert = QSslCertificate.fromData( 354 cert = QSslCertificate.fromData(
355 self.caCertificatesTree.currentItem().data(0, self.CertRole) 355 self.caCertificatesTree.currentItem().data(0, self.CertRole)

eric ide

mercurial