diff -r 6af5d12cfecb -r 58405c24aa09 PyUnit/UnittestDialog.py --- a/PyUnit/UnittestDialog.py Thu Jul 29 08:50:45 2010 +0200 +++ b/PyUnit/UnittestDialog.py Thu Jul 29 11:02:09 2010 +0200 @@ -153,9 +153,9 @@ """ if self.dbs: pyExtensions = \ - ' '.join(["*%s" % ext for ext in self.dbs.getExtensions('Python')]) + ' '.join(["*{0}".format(ext) for ext in self.dbs.getExtensions('Python')]) py3Extensions = \ - ' '.join(["*%s" % ext for ext in self.dbs.getExtensions('Python3')]) + ' '.join(["*{0}".format(ext) for ext in self.dbs.getExtensions('Python3')]) filter = self.trUtf8("Python3 Files ({1});;Python2 Files ({0});;All Files (*)")\ .format(pyExtensions, py3Extensions) else: @@ -276,7 +276,7 @@ else: mainScript = os.path.abspath(prog) cover = coverage( - data_file = "%s.coverage" % os.path.splitext(mainScript)[0]) + data_file = "{0}.coverage".format(os.path.splitext(mainScript)[0])) cover.use_cache(True) if self.coverageEraseCheckBox.isChecked(): cover.erase() @@ -423,7 +423,7 @@ @param doc documentation of the started test (string) """ if doc: - self.testsListWidget.insertItem(0, " %s" % doc) + self.testsListWidget.insertItem(0, " {0}".format(doc)) self.testsListWidget.insertItem(0, test) if self.dbs is None or self.localCheckBox.isChecked(): QApplication.processEvents() @@ -592,4 +592,4 @@ QApplication.exit() return True - return False \ No newline at end of file + return False