--- a/RadonMetrics/RawMetricsDialog.py Wed Jan 01 11:58:55 2020 +0100 +++ b/RadonMetrics/RawMetricsDialog.py Tue Jun 23 19:05:15 2020 +0200 @@ -7,13 +7,6 @@ Module implementing a dialog to show raw code metrics. """ -from __future__ import unicode_literals - -try: - str = unicode # __IGNORE_EXCEPTION__ __IGNORE_WARNING__ -except NameError: - pass - import os import fnmatch @@ -232,7 +225,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.rawMetrics() else: @@ -486,8 +479,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) @@ -495,8 +490,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)