QScintilla/Shell.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3080
6c0a430b19df
--- a/QScintilla/Shell.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/QScintilla/Shell.py	Sun Nov 03 15:58:22 2013 +0100
@@ -1271,7 +1271,7 @@
                             self.__write(
                                 self.trUtf8(
                                     'Shell language "{0}" not supported.\n')
-                                    .format(cmdList[1]))
+                                .format(cmdList[1]))
                             self.__clientStatement(False)
                         return
                     cmd = ''
@@ -1328,7 +1328,7 @@
         @param cmd history entry to be inserted (string)
         """
         self.setCursorPosition(self.prline, self.prcol)
-        self.setSelection(self.prline, self.prcol,\
+        self.setSelection(self.prline, self.prcol,
                           self.prline, self.lineLength(self.prline))
         self.removeSelectedText()
         self.__insertText(cmd)
@@ -1346,7 +1346,7 @@
         else:
             idx = startIdx + 1
         while idx < len(self.history) and \
-              not self.history[idx].startswith(txt):
+                not self.history[idx].startswith(txt):
             idx += 1
         return idx
         
@@ -1363,7 +1363,7 @@
         else:
             idx = startIdx - 1
         while idx >= 0 and \
-              not self.history[idx].startswith(txt):
+                not self.history[idx].startswith(txt):
             idx -= 1
         return idx
         
@@ -1545,7 +1545,7 @@
                             self,
                             self.trUtf8("Drop Error"),
                             self.trUtf8("""<p><b>{0}</b> is not a file.</p>""")
-                                .format(fname))
+                            .format(fname))
             event.acceptProposedAction()
         elif event.mimeData().hasText():
             s = event.mimeData().text()
@@ -1618,12 +1618,12 @@
         
         @param txt text to be inserted (string)
         """
-        l = len(txt)
+        length = len(txt)
         line, col = self.getCursorPosition()
         self.insertAt(txt, line, col)
         if re.search(self.linesepRegExp, txt) is not None:
             line += 1
-        self.setCursorPosition(line, col + l)
+        self.setCursorPosition(line, col + length)
         
     def __configure(self):
         """

eric ide

mercurial