src/eric7/EricNetwork/EricSslCertificatesDialog.py

branch
eric7
changeset 10331
c1a2ff7e3575
parent 10266
2cedd859a879
child 10423
299802979277
equal deleted inserted replaced
10330:5ea038882dd6 10331:c1a2ff7e3575
119 def on_serversViewButton_clicked(self): 119 def on_serversViewButton_clicked(self):
120 """ 120 """
121 Private slot to show data of the selected server certificate. 121 Private slot to show data of the selected server certificate.
122 """ 122 """
123 with contextlib.suppress(ImportError): 123 with contextlib.suppress(ImportError):
124 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__ 124 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # noqa: I101
125 EricSslCertificatesInfoDialog, 125 EricSslCertificatesInfoDialog,
126 ) 126 )
127 127
128 cert = QSslCertificate.fromData( 128 cert = QSslCertificate.fromData(
129 self.serversCertificatesTree.currentItem().data(0, self.CertRole) 129 self.serversCertificatesTree.currentItem().data(0, self.CertRole)
338 def on_caViewButton_clicked(self): 338 def on_caViewButton_clicked(self):
339 """ 339 """
340 Private slot to show data of the selected CA certificate. 340 Private slot to show data of the selected CA certificate.
341 """ 341 """
342 with contextlib.suppress(ImportError): 342 with contextlib.suppress(ImportError):
343 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__ 343 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # noqa: I101
344 EricSslCertificatesInfoDialog, 344 EricSslCertificatesInfoDialog,
345 ) 345 )
346 346
347 cert = QSslCertificate.fromData( 347 cert = QSslCertificate.fromData(
348 self.caCertificatesTree.currentItem().data(0, self.CertRole) 348 self.caCertificatesTree.currentItem().data(0, self.CertRole)

eric ide

mercurial