diff -r 6af5d12cfecb -r 58405c24aa09 QScintilla/Terminal.py --- 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):