E5XML/SessionWriter.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3058
0a02c433f52d
--- a/E5XML/SessionWriter.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/E5XML/SessionWriter.py	Fri Oct 18 23:00:41 2013 +0200
@@ -53,10 +53,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")
@@ -136,7 +139,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")
@@ -183,7 +187,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)
@@ -204,7 +208,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