src/eric7/EricNetwork/EricSslCertificatesDialog.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
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 ( 124 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__
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 ( 343 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__
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