115 def shutdown(self): |
115 def shutdown(self): |
116 """ |
116 """ |
117 Public method to perform shutdown actions. |
117 Public method to perform shutdown actions. |
118 """ |
118 """ |
119 if self.__outdatedProc is not None: |
119 if self.__outdatedProc is not None: |
|
120 self.__outdatedProc.finished.disconnect() |
120 self.__outdatedProc.kill() # end the process forcefully |
121 self.__outdatedProc.kill() # end the process forcefully |
121 self.__outdatedProc = None |
122 self.__outdatedProc = None |
122 |
123 |
123 ########################################################################## |
124 ########################################################################## |
124 ## Methods below implement some utility functions |
125 ## Methods below implement some utility functions |
765 |
766 |
766 # Do not uninstall pip. |
767 # Do not uninstall pip. |
767 pipre = re.compile(r"^pip\s*(~=|==|!=|<=|>=|<|>|===)") |
768 pipre = re.compile(r"^pip\s*(~=|==|!=|<=|>=|<|>|===)") |
768 for dependency in dependencies: |
769 for dependency in dependencies: |
769 if pipre.search(dependency): |
770 if pipre.search(dependency): |
770 dependencies.remove(dependency) # noqa: M569 |
771 dependencies.remove(dependency) # noqa: M-569 |
771 break |
772 break |
772 |
773 |
773 dlg = DeleteFilesConfirmationDialog( |
774 dlg = DeleteFilesConfirmationDialog( |
774 self.parent(), |
775 self.parent(), |
775 self.tr("Uninstall Packages"), |
776 self.tr("Uninstall Packages"), |