--- a/E4XML/SessionWriter.py Mon Dec 28 17:05:28 2009 +0000 +++ b/E4XML/SessionWriter.py Mon Dec 28 18:31:37 2009 +0000 @@ -72,7 +72,7 @@ allOpenFiles = self.vm.getOpenFilenames() self._write(" <Filenames>") for of in allOpenFiles: - if isGlobal or unicode(of).startswith(self.project.ppath): + if isGlobal or of.startswith(self.project.ppath): ed = self.vm.getOpenEditor(of) if ed is not None: line, index = ed.getCursorPosition() @@ -85,7 +85,7 @@ self._write(" </Filenames>") aw = self.vm.getActiveName() - if aw and unicode(aw).startswith(self.project.ppath): + if aw and aw.startswith(self.project.ppath): ed = self.vm.getOpenEditor(aw) if ed is not None: line, index = ed.getCursorPosition() @@ -189,7 +189,7 @@ # step 4: save bookmarks of all open (project) files self._write(" <Bookmarks>") for of in allOpenFiles: - if isGlobal or unicode(of).startswith(self.project.ppath): + if isGlobal or of.startswith(self.project.ppath): editor = self.vm.getOpenEditor(of) for bookmark in editor.getBookmarks(): self._write(" <Bookmark>") @@ -198,4 +198,4 @@ self._write(" </Bookmark>") self._write(" </Bookmarks>") - self._write("</Session>", newline = False) \ No newline at end of file + self._write("</Session>", newline = False)