eric6/E5Gui/E5ErrorMessage.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7317
cada9fd4ad3a
--- a/eric6/E5Gui/E5ErrorMessage.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/E5Gui/E5ErrorMessage.py	Sat Sep 21 15:37:43 2019 +0200
@@ -8,8 +8,10 @@
 """
 
 
-from PyQt5.QtCore import qInstallMessageHandler, QtDebugMsg, QtWarningMsg, \
-    QtCriticalMsg, QtFatalMsg, QThread, QMetaObject, Qt, Q_ARG, QSettings
+from PyQt5.QtCore import (
+    qInstallMessageHandler, QtDebugMsg, QtWarningMsg, QtCriticalMsg,
+    QtFatalMsg, QThread, QMetaObject, Qt, Q_ARG, QSettings
+)
 from PyQt5.QtWidgets import QErrorMessage, qApp, QDialog
 
 import Globals
@@ -122,14 +124,17 @@
                 message = Utilities.decodeBytes(message)
             if filterMessage(message):
                 return
-            message = message.replace("\r\n", "<br/>")\
-                             .replace("\n", "<br/>")\
-                             .replace("\r", "<br/>")
+            message = (
+                message.replace("\r\n", "<br/>")
+                .replace("\n", "<br/>")
+                .replace("\r", "<br/>")
+            )
             if context.file is not None:
-                msg = "<p><b>{0}</b></p><p>{1}</p><p>File: {2}</p>" \
-                    "<p>Line: {3}</p><p>Function: {4}</p>".format(
-                        messageType, Utilities.html_uencode(message),
-                        context.file, context.line, context.function)
+                msg = (
+                    "<p><b>{0}</b></p><p>{1}</p><p>File: {2}</p>"
+                    "<p>Line: {3}</p><p>Function: {4}</p>"
+                ).format(messageType, Utilities.html_uencode(message),
+                         context.file, context.line, context.function)
             else:
                 msg = "<p><b>{0}</b></p><p>{1}</p>".format(
                     messageType, Utilities.html_uencode(message))

eric ide

mercurial