QScintilla/Shell.py

changeset 428
58405c24aa09
parent 404
44a541bea034
child 454
d28d558f7484
--- a/QScintilla/Shell.py	Thu Jul 29 08:50:45 2010 +0200
+++ b/QScintilla/Shell.py	Thu Jul 29 11:02:09 2010 +0200
@@ -239,7 +239,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]))
@@ -1095,7 +1095,7 @@
                         return
                     cmd = ''
             elif cmd == 'languages':
-                s = '%s\n' % ', '.join(self.clientLanguages)
+                s = '{0}\n'.format(', '.join(self.clientLanguages))
                 self.__write(s)
                 self.__clientStatement(False)
                 return

eric ide

mercurial