src/eric7/EricNetwork/EricSslCertificateSelectionDialog.py

branch
eric7
changeset 10923
9b0dee552ccc
parent 10922
36a90a94765c
child 10928
46651e194fbe
equal deleted inserted replaced
10922:36a90a94765c 10923:9b0dee552ccc
112 def on_viewButton_clicked(self): 112 def on_viewButton_clicked(self):
113 """ 113 """
114 Private slot to show data of the selected certificate. 114 Private slot to show data of the selected certificate.
115 """ 115 """
116 with contextlib.suppress(ImportError): 116 with contextlib.suppress(ImportError):
117 from .EricSslCertificatesInfoDialog import EricSslCertificatesInfoDialog 117 from .EricSslCertificatesInfoDialog import ( # noqa: I101
118 # noqa: I101 118 EricSslCertificatesInfoDialog,
119 )
119 120
120 cert = QSslCertificate.fromData( 121 cert = QSslCertificate.fromData(
121 self.certificatesTree.selectedItems()[0].data(0, self.CertRole) 122 self.certificatesTree.selectedItems()[0].data(0, self.CertRole)
122 ) 123 )
123 dlg = EricSslCertificatesInfoDialog(cert, self) 124 dlg = EricSslCertificatesInfoDialog(cert, self)

eric ide

mercurial