E5XML/SessionWriter.py

changeset 2992
dbdf27746da5
parent 2302
f29e9405c851
child 3022
57179e4cdadd
child 3057
10516539f238
--- a/E5XML/SessionWriter.py	Sun Oct 06 19:52:33 2013 +0200
+++ b/E5XML/SessionWriter.py	Mon Oct 07 19:10:11 2013 +0200
@@ -51,10 +51,13 @@
         
         # add some generation comments
         if not isGlobal:
-            self.writeComment(" eric5 session file for project {0} ".format(self.name))
-        self.writeComment(" This file was generated automatically, do not edit. ")
+            self.writeComment(
+                " eric5 session file for project {0} ".format(self.name))
+        self.writeComment(
+            " This file was generated automatically, do not edit. ")
         if Preferences.getProject("XMLTimestamp") or isGlobal:
-            self.writeComment(" Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
+            self.writeComment(
+                " Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
         
         # add the main tag
         self.writeStartElement("Session")
@@ -134,7 +137,8 @@
         wpModel = self.dbs.getWatchPointModel()
         for row in range(wpModel.rowCount()):
             index = wpModel.index(row, 0)
-            cond, temp, enabled, count, special = wpModel.getWatchPointByIndex(index)[:5]
+            cond, temp, enabled, count, special = \
+                wpModel.getWatchPointByIndex(index)[:5]
             self.writeStartElement("Watchexpression")
             self.writeTextElement("Condition", str(cond))
             self.writeEmptyElement("Temporary")
@@ -181,7 +185,7 @@
             self.writeAttribute("value", str(self.dbg.tracePython))
             self.writeEmptyElement("AutoContinue")
             self.writeAttribute("value", str(self.dbg.autoContinue))
-            self.writeEmptyElement("CovexcPattern")     # kept for compatibility
+            self.writeEmptyElement("CovexcPattern")    # kept for compatibility
         else:
             self.writeTextElement("CommandLine", self.project.dbgCmdline)
             self.writeTextElement("WorkingDirectory", self.project.dbgWd)
@@ -202,7 +206,7 @@
             self.writeAttribute("value", str(self.project.dbgTracePython))
             self.writeEmptyElement("AutoContinue")
             self.writeAttribute("value", str(self.project.dbgAutoContinue))
-            self.writeEmptyElement("CovexcPattern")     # kept for compatibility
+            self.writeEmptyElement("CovexcPattern")    # kept for compatibility
         self.writeEndElement()
         
         # step 4: save bookmarks of all open (project) files

eric ide

mercurial