eric7/WebBrowser/VirusTotal/VirusTotalApi.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/WebBrowser/VirusTotal/VirusTotalApi.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/WebBrowser/VirusTotal/VirusTotalApi.py	Sat May 22 18:51:46 2021 +0200
@@ -13,7 +13,7 @@
 from PyQt6.QtCore import pyqtSignal, QObject, QUrl, QUrlQuery, QByteArray
 from PyQt6.QtNetwork import QNetworkRequest, QNetworkReply
 
-from E5Gui import E5MessageBox
+from E5Gui import EricMessageBox
 
 import Preferences
 
@@ -306,13 +306,13 @@
         if reply.error() == QNetworkReply.NetworkError.NoError:
             result = json.loads(str(reply.readAll(), "utf-8"))
             if result["response_code"] == 0:
-                E5MessageBox.information(
+                EricMessageBox.information(
                     None,
                     self.tr("VirusTotal IP Address Report"),
                     self.tr("""VirusTotal does not have any information for"""
                             """ the given IP address."""))
             elif result["response_code"] == -1:
-                E5MessageBox.information(
+                EricMessageBox.information(
                     None,
                     self.tr("VirusTotal IP Address Report"),
                     self.tr("""The submitted IP address is invalid."""))
@@ -368,13 +368,13 @@
         if reply.error() == QNetworkReply.NetworkError.NoError:
             result = json.loads(str(reply.readAll(), "utf-8"))
             if result["response_code"] == 0:
-                E5MessageBox.information(
+                EricMessageBox.information(
                     None,
                     self.tr("VirusTotal Domain Report"),
                     self.tr("""VirusTotal does not have any information for"""
                             """ the given domain."""))
             elif result["response_code"] == -1:
-                E5MessageBox.information(
+                EricMessageBox.information(
                     None,
                     self.tr("VirusTotal Domain Report"),
                     self.tr("""The submitted domain address is invalid."""))

eric ide

mercurial