PyInstaller/PyInstallerConfigDialog.py

changeset 28
3c8dbc198753
parent 27
25ff8953e335
child 34
784d24a61fdf
--- a/PyInstaller/PyInstallerConfigDialog.py	Mon May 04 18:15:28 2020 +0200
+++ b/PyInstaller/PyInstallerConfigDialog.py	Tue Jun 23 19:14:07 2020 +0200
@@ -7,8 +7,6 @@
 Module implementing PyInstallerConfigDialog.
 """
 
-from __future__ import unicode_literals
-
 import copy
 
 from PyQt5.QtCore import pyqtSlot
@@ -42,8 +40,6 @@
         @param parent reference to the parent widget
         @type QWidget
         """
-        assert mode in ("installer", "spec")
-        
         super(PyInstallerConfigDialog, self).__init__(parent)
         self.setupUi(self)
         
@@ -55,15 +51,15 @@
             self.__project.getProjectPath())
         if self.__mode == "installer":
             self.inputFilePicker.setFilters(self.tr(
-                "Python Files (*.py *.py2 *.py3);;"
-                "Python GUI Files (*.pyw *.pyw2 *.pyw3);;"
+                "Python Files (*.py *.py3);;"
+                "Python GUI Files (*.pyw *.pyw3);;"
                 "Spec Files (*.spec);;"
                 "All Files (*)"
             ))
         elif self.__mode == "spec":
             self.inputFilePicker.setFilters(self.tr(
-                "Python Files (*.py *.py2 *.py3);;"
-                "Python GUI Files (*.pyw *.pyw2 *.pyw3);;"
+                "Python Files (*.py *.py3);;"
+                "Python GUI Files (*.pyw *.pyw3);;"
                 "All Files (*)"
             ))
         

eric ide

mercurial