[pyqgis-console] small fix for non-ascii chars

This commit is contained in:
Salvatore Larosa 2013-08-07 14:02:47 +02:00
parent a463e392a2
commit 07c524a928

View File

@ -512,7 +512,7 @@ class ShellScintilla(QsciScintilla, code.InteractiveInterpreter):
QsciScintillaCompat.dropEvent(self, e)
def insertFromDropPaste(self, textDP):
pasteList = str(textDP).splitlines()
pasteList = unicode(textDP).splitlines()
for line in pasteList[:-1]:
cleanLine = line.replace(">>> ", "").replace("... ", "")
self.insert(unicode(cleanLine))