diff -r 784d24a61fdf -r d9b3cadaf707 PyInstaller/PyInstallerConfigDialog.py --- a/PyInstaller/PyInstallerConfigDialog.py Wed Dec 30 11:02:06 2020 +0100 +++ b/PyInstaller/PyInstallerConfigDialog.py Mon Apr 26 18:03:44 2021 +0200 @@ -40,7 +40,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PyInstallerConfigDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__project = project @@ -264,10 +264,11 @@ args.append("--noconfirm") # don't ask the user # determine the script to be processed - if self.__parameters["mainscript"]: - script = self.__project.getMainScript() - else: - script = self.__parameters["inputFile"] + script = ( + self.__project.getMainScript() + if self.__parameters["mainscript"] else + self.__parameters["inputFile"] + ) return args, parms, script @@ -308,7 +309,7 @@ ) # call the accept slot of the base class - super(PyInstallerConfigDialog, self).accept() + super().accept() def __updateOkButton(self): """