Fri, 25 Mar 2022 19:16:09 +0100
Corrected some code style issues.
--- a/eric7/Documentation/Source/eric7.VirtualEnv.VirtualenvAddEditDialog.html Fri Mar 25 19:06:20 2022 +0100 +++ b/eric7/Documentation/Source/eric7.VirtualEnv.VirtualenvAddEditDialog.html Fri Mar 25 19:16:09 2022 +0100 @@ -60,7 +60,7 @@ </tr> <tr> <td><a href="#VirtualenvAddEditDialog.__detectPythonInterpreter">__detectPythonInterpreter</a></td> -<td>Private method</td> +<td>Private method to search for a suitable Python interpreter inside an environment.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.__updateOk">__updateOk</a></td> @@ -157,7 +157,8 @@ <b>__detectPythonInterpreter</b>(<i>venvDirectory</i>) <p> - Private method + Private method to search for a suitable Python interpreter inside an + environment. </p> <dl>
--- a/eric7/PipInterface/PipPackagesWidget.py Fri Mar 25 19:06:20 2022 +0100 +++ b/eric7/PipInterface/PipPackagesWidget.py Fri Mar 25 19:16:09 2022 +0100 @@ -1661,7 +1661,7 @@ venvName, localPackages=self.localDepCheckBox.isChecked(), usersite=self.userDepCheckBox.isChecked(), - reverse = self.requiredByButton.isChecked(), + reverse=self.requiredByButton.isChecked(), ) self.dependenciesList.setUpdatesEnabled(False)
--- a/eric7/PipInterface/PipVulnerabilityChecker.py Fri Mar 25 19:06:20 2022 +0100 +++ b/eric7/PipInterface/PipVulnerabilityChecker.py Fri Mar 25 19:16:09 2022 +0100 @@ -28,6 +28,7 @@ import Globals import Preferences + @dataclass class Package: """ @@ -125,7 +126,7 @@ @rtype dict """ if os.path.exists(self.__cacheFile): - with open(self.__cacheFile, "r") as f: + with open(self.__cacheFile, "r") as f: # __IGNORE_WARNING_Y117__ with contextlib.suppress(json.JSONDecodeError, OSError): cachedData = json.load(f) if (
--- a/eric7/UI/upgrader.py Fri Mar 25 19:06:20 2022 +0100 +++ b/eric7/UI/upgrader.py Fri Mar 25 19:16:09 2022 +0100 @@ -79,7 +79,7 @@ with contextlib.suppress(ValueError): upgradeDelay = int(arg.split("=")[1].strip()) elif arg.startswith("--type="): - upgradeType=arg.split("=")[1].strip() + upgradeType = arg.split("=")[1].strip() # wait a few seconds to give eric the chance to fully shut down time.sleep(upgradeDelay)
--- a/eric7/VirtualEnv/VirtualenvAddEditDialog.py Fri Mar 25 19:06:20 2022 +0100 +++ b/eric7/VirtualEnv/VirtualenvAddEditDialog.py Fri Mar 25 19:16:09 2022 +0100 @@ -143,7 +143,8 @@ def __detectPythonInterpreter(self, venvDirectory): """ - Private method + Private method to search for a suitable Python interpreter inside an + environment. @param venvDirectory directory for the virtual environment @type str