src/eric7/MicroPython/Devices/CircuitPythonUpdater/ShowOutdatedDialog.py

branch
eric7
changeset 10643
08682797bfcd
parent 10621
f5631f40c4d9
child 10900
4139f17d07ad
equal deleted inserted replaced
10642:fbf61874518a 10643:08682797bfcd
60 "The following modules are out of date or probably need an update." 60 "The following modules are out of date or probably need an update."
61 "\nMajor Updates may include breaking changes. Review before" 61 "\nMajor Updates may include breaking changes. Review before"
62 " updating.\nMPY Format changes require an update." 62 " updating.\nMPY Format changes require an update."
63 ) 63 )
64 ) 64 )
65 try:
66 versionIsValid = VersionInfo.is_valid
67 except AttributeError:
68 versionIsValid = VersionInfo.isvalid
65 for module in self.__modules.values(): 69 for module in self.__modules.values():
66 if isinstance(module.bundle_version, str) and not VersionInfo.isvalid( 70 if isinstance(module.bundle_version, str) and not versionIsValid(
67 module.bundle_version 71 module.bundle_version
68 ): 72 ):
69 reason = self.tr("Incorrect '__version__' Metadata") 73 reason = self.tr("Incorrect '__version__' Metadata")
70 needsUpdate = True 74 needsUpdate = True
71 elif module.bad_format: 75 elif module.bad_format:

eric ide

mercurial