Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Sat Jan 02 15:11:35 2010 +0000
@@ -15,7 +15,7 @@
 
 from E4Gui.E4Application import e4App
 
-from Ui_SvnStatusDialog import Ui_SvnStatusDialog
+from .Ui_SvnStatusDialog import Ui_SvnStatusDialog
 
 import Preferences
 
@@ -292,7 +292,7 @@
            '-u' in self.vcs.options['status']:
             self.activateWindow()
             self.raise_()
-        if type(fn) is types.ListType:
+        if isinstance(fn, list):
             self.dname, fnames = self.vcs.splitPathList(fn)
             self.vcs.addArguments(args, fnames)
         else:
@@ -376,7 +376,9 @@
             self.process.setReadChannel(QProcess.StandardOutput)
             
             while self.process.canReadLine():
-                s = unicode(self.process.readLine())
+                s = str(self.process.readLine(), 
+                        Preferences.getSystem("IOEncoding"), 
+                        'replace')
                 if self.rx_status.exactMatch(s):
                     flags = self.rx_status.cap(1)
                     rev = self.rx_status.cap(2)
@@ -405,7 +407,9 @@
         """
         if self.process is not None:
             self.errorGroup.show()
-            s = unicode(self.process.readAllStandardError())
+            s = str(self.process.readAllStandardError(), 
+                    Preferences.getSystem("IOEncoding"), 
+                    'replace')
             self.errors.insertPlainText(s)
             self.errors.ensureCursorVisible()
         

eric ide

mercurial