src/eric7/WebBrowser/VirusTotal/VirusTotalIpReportDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/WebBrowser/VirusTotal/VirusTotalIpReportDialog.py
--- a/src/eric7/WebBrowser/VirusTotal/VirusTotalIpReportDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/WebBrowser/VirusTotal/VirusTotalIpReportDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -19,10 +19,11 @@
     """
     Class implementing a dialog to show the VirusTotal IP address report.
     """
+
     def __init__(self, ip, owner, resolutions, urls, parent=None):
         """
         Constructor
-        
+
         @param ip IP address
         @type str
         @param owner owner of the IP address
@@ -37,32 +38,32 @@
         super().__init__(parent)
         self.setupUi(self)
         self.setWindowFlags(Qt.WindowType.Window)
-        
-        self.headerLabel.setText(
-            self.tr("<b>Report for IP {0}</b>").format(ip))
-        self.headerPixmap.setPixmap(
-            UI.PixmapCache.getPixmap("virustotal"))
+
+        self.headerLabel.setText(self.tr("<b>Report for IP {0}</b>").format(ip))
+        self.headerPixmap.setPixmap(UI.PixmapCache.getPixmap("virustotal"))
         self.ownerLabel.setText(owner)
-        
+
         for resolution in resolutions:
             QTreeWidgetItem(
                 self.resolutionsList,
-                [resolution["hostname"],
-                 resolution["last_resolved"].split()[0]]
+                [resolution["hostname"], resolution["last_resolved"].split()[0]],
             )
         self.resolutionsList.resizeColumnToContents(0)
         self.resolutionsList.resizeColumnToContents(1)
         self.resolutionsList.sortByColumn(0, Qt.SortOrder.AscendingOrder)
-        
+
         if not urls:
             self.detectedUrlsGroup.setVisible(False)
         for url in urls:
             QTreeWidgetItem(
                 self.urlsList,
-                [url["url"],
-                 self.tr("{0}/{1}", "positives / total").format(
-                    url["positives"], url["total"]),
-                 url["scan_date"].split()[0]]
+                [
+                    url["url"],
+                    self.tr("{0}/{1}", "positives / total").format(
+                        url["positives"], url["total"]
+                    ),
+                    url["scan_date"].split()[0],
+                ],
             )
         self.urlsList.resizeColumnToContents(0)
         self.urlsList.resizeColumnToContents(1)

eric ide

mercurial