QScintilla/Terminal.py

changeset 428
58405c24aa09
parent 404
44a541bea034
child 453
a81097a85889
--- a/QScintilla/Terminal.py	Thu Jul 29 08:50:45 2010 +0200
+++ b/QScintilla/Terminal.py	Thu Jul 29 11:02:09 2010 +0200
@@ -251,7 +251,7 @@
             return
         
         # get the font for style 0 and set it as the default font
-        key = 'Scintilla/%s/style0/font' % self.lexer_.language()
+        key = 'Scintilla/{0}/style0/font'.format(self.lexer_.language())
         fdesc = Preferences.Prefs.settings.value(key)
         if fdesc is not None:
             font = QFont(fdesc[0], int(fdesc[1]))
@@ -745,7 +745,7 @@
             return
         else:
             if not cmd.endswith("\n"):
-                cmd = "%s\n" % cmd
+                cmd = "{0}\n".format(cmd)
             self.__send(cmd)
         
     def __useHistory(self):

eric ide

mercurial