diff -r 9986ec0e559a -r 10516539f238 E5XML/SessionWriter.py --- 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