Wed, 29 Mar 2023 15:32:06 +0200
Fixed some issue dealing with semver.VersionInfo objects.
(grafted from ba47e3f454d826b181e72cfebda2f4589bdea80a)
src/eric7/Globals/__init__.py | file | annotate | diff | comparison | revisions | |
src/eric7/UI/UserInterface.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/Globals/__init__.py Wed Mar 29 11:32:06 2023 +0200 +++ b/src/eric7/Globals/__init__.py Wed Mar 29 15:32:06 2023 +0200 @@ -117,7 +117,7 @@ # sanitize version string (get rid of leading non-decimal characters) version = version[1:] - if len(version.split(".")) < 3: + while len(version.split(".")) < 3: # ensure the version string contains at least three parts version += ".0"
--- a/src/eric7/UI/UserInterface.py Wed Mar 29 11:32:06 2023 +0200 +++ b/src/eric7/UI/UserInterface.py Wed Mar 29 15:32:06 2023 +0200 @@ -8288,7 +8288,11 @@ ).format( self.pipInterface.getIndexUrlPypi(), VersionOnly, - ".".join(str(p) for p in max(newerVersionsTuple) if p > 0), + ".".join( + str(p) + for p in max(newerVersionsTuple) + if p not in (0, None) + ), ), ) if yes and self.__shutdown():