QScintilla/Terminal.py

changeset 12
1d8dd9706f46
parent 7
c679fb30c8f3
child 13
1af94a91f439
--- a/QScintilla/Terminal.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/QScintilla/Terminal.py	Sat Jan 02 15:11:35 2010 +0000
@@ -17,8 +17,8 @@
 
 from E4Gui.E4Application import e4App
 
-import Lexers
-from QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
+from . import Lexers
+from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
 
 import Preferences
 import Utilities
@@ -26,7 +26,7 @@
 import UI.PixmapCache
 from Utilities import toUnicode
 
-from ShellHistoryDialog import ShellHistoryDialog
+from .ShellHistoryDialog import ShellHistoryDialog
 
 class Terminal(QsciScintillaCompat):
     """
@@ -179,7 +179,7 @@
         """
         Private method to process the output of the shell.
         """
-        output = unicode(self.__process.readAllStandardOutput(), 
+        output = str(self.__process.readAllStandardOutput(), 
                          self.__ioEncoding, 'replace')
         self.__write(self.ansi_re.sub("", output))
         self.__lastPos = self.__getEndPos()

eric ide

mercurial