--- a/RadonMetrics/MaintainabilityIndexDialog.py Wed Jan 01 11:58:55 2020 +0100 +++ b/RadonMetrics/MaintainabilityIndexDialog.py Tue Jun 23 19:05:15 2020 +0200 @@ -7,13 +7,6 @@ Module implementing a dialog to show maintainability indexes. """ -from __future__ import unicode_literals - -try: - str = unicode # __IGNORE_EXCEPTION__ __IGNORE_WARNING__ -except NameError: - pass - import os import fnmatch @@ -218,7 +211,7 @@ # now go through all the files self.progress = 0 - if len(self.files) == 1 or not self.radonService.hasBatch: + if len(self.files) == 1: self.__batch = False self.maintainabilityIndex() else: @@ -424,8 +417,10 @@ fileList = self.__fileList[:] filterString = self.excludeFilesEdit.text() - if "ExcludeFiles" not in self.__data or \ - filterString != self.__data["ExcludeFiles"]: + if ( + "ExcludeFiles" not in self.__data or + filterString != self.__data["ExcludeFiles"] + ): self.__data["ExcludeFiles"] = filterString self.__project.setData( "OTHERTOOLSPARMS", "RadonCodeMetrics", self.__data) @@ -433,8 +428,8 @@ if f.strip()] if filterList: for fileFilter in filterList: - fileList = \ - [f for f in fileList if not fnmatch.fnmatch(f, fileFilter)] + fileList = [f for f in fileList + if not fnmatch.fnmatch(f, fileFilter)] self.start(fileList)