E5XML/XMLStreamReaderBase.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
--- a/E5XML/XMLStreamReaderBase.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/E5XML/XMLStreamReaderBase.py	Fri Nov 01 15:48:48 2013 +0100
@@ -50,13 +50,15 @@
         Public method to show an error message.
         """
         if self.hasError():
-            msg = QCoreApplication.translate("XMLStreamReaderBase",
+            msg = QCoreApplication.translate(
+                "XMLStreamReaderBase",
                 "<p>XML parse error in file <b>{0}</b>, line {1},"
                 " column {2}</p><p>Error: {3}</p>").format(
                     self.device().fileName(),
                     self.lineNumber(), self.columnNumber(),
                     self.errorString())
-            E5MessageBox.warning(None,
+            E5MessageBox.warning(
+                None,
                 QCoreApplication.translate(
                 "XMLStreamReaderBase", "XML parse error"),
                 msg)
@@ -67,8 +69,8 @@
         
         @param tag name of the unexpected tag (string)
         """
-        self.raiseError(QCoreApplication.translate("XMLStreamReaderBase",
-            "Unexpected start tag '{0}'.".format(tag)))
+        self.raiseError(QCoreApplication.translate(
+            "XMLStreamReaderBase", "Unexpected start tag '{0}'.".format(tag)))
     
     def raiseUnsupportedFormatVersion(self, version):
         """
@@ -76,7 +78,8 @@
         
         @param version unsupported version (string)
         """
-        self.raiseError(QCoreApplication.translate("XMLStreamReaderBase",
+        self.raiseError(QCoreApplication.translate(
+            "XMLStreamReaderBase",
             "File format version '{0}' is not supported.").format(version))
     
     def raiseBadValue(self, value):
@@ -85,8 +88,8 @@
         
         @param value bad value (string)
         """
-        self.raiseError(QCoreApplication.translate("XMLStreamReaderBase",
-            "Bad value: {0}").format(value))
+        self.raiseError(QCoreApplication.translate(
+            "XMLStreamReaderBase", "Bad value: {0}").format(value))
     
     def readXML(self):
         """

eric ide

mercurial