Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Sat Jan 02 15:11:35 2010 +0000
@@ -71,7 +71,7 @@
             finished = process.waitForFinished(300000)
             if finished and process.exitCode() == 0:
                 output = \
-                    unicode(process.readAllStandardOutput(), self.__ioEncoding, 'replace')
+                    str(process.readAllStandardOutput(), self.__ioEncoding, 'replace')
                 states = {}
                 for line in output.splitlines():
                     if self.rx_status1.exactMatch(line):
@@ -99,7 +99,7 @@
                                 self.statusList.append("%s %s" % (status, name))
                         except KeyError:
                             self.statusList.append("%s %s" % (status, name))
-                for name in self.reportedStates.keys():
+                for name in list(self.reportedStates.keys()):
                     if name not in states:
                         self.statusList.append("  %s" % name)
                 self.reportedStates = states
@@ -108,7 +108,10 @@
             else:
                 process.kill()
                 process.waitForFinished()
-                return False, unicode(process.readAllStandardError())
+                return False, 
+                       str(process.readAllStandardError(), 
+                            Preferences.getSystem("IOEncoding"), 
+                            'replace')
         else:
             process.kill()
             process.waitForFinished()

eric ide

mercurial