10 import json |
10 import json |
11 |
11 |
12 from PyQt6.QtCore import QByteArray |
12 from PyQt6.QtCore import QByteArray |
13 from PyQt6.QtNetwork import QLocalServer, QLocalSocket |
13 from PyQt6.QtNetwork import QLocalServer, QLocalSocket |
14 |
14 |
15 from eric7 import Utilities |
15 from eric7 import EricUtilities |
16 from eric7.EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
17 |
17 |
18 |
18 |
19 class SingleApplicationServer(QLocalServer): |
19 class SingleApplicationServer(QLocalServer): |
20 """ |
20 """ |
76 """ application client could not be decoded.""" |
76 """ application client could not be decoded.""" |
77 """ Please report this issue with the received""" |
77 """ Please report this issue with the received""" |
78 """ data to the eric bugs email address.</p>""" |
78 """ data to the eric bugs email address.</p>""" |
79 """<p>Error: {0}</p>""" |
79 """<p>Error: {0}</p>""" |
80 """<p>Data:<br/>{1}</p>""" |
80 """<p>Data:<br/>{1}</p>""" |
81 ).format(str(err), Utilities.html_encode(line.strip())), |
81 ).format(str(err), EricUtilities.html_encode(line.strip())), |
82 EricMessageBox.Ok, |
82 EricMessageBox.Ok, |
83 ) |
83 ) |
84 return |
84 return |
85 |
85 |
86 command = commandDict["command"] |
86 command = commandDict["command"] |