Message293009
This should return True and not raise an exception:
>>> from distutils.version import LooseVersion
>>> LooseVersion("22.7-r1") < LooseVersion("22.7.3-r1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/distutils/version.py", line 52, in __lt__
c = self._cmp(other)
File "/usr/lib/python3.6/distutils/version.py", line 337, in _cmp
if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
>>>
Tested with Python 3.6.1. |
|
Date |
User |
Action |
Args |
2017-05-04 19:54:49 | ollieparanoid2 | set | recipients:
+ ollieparanoid2 |
2017-05-04 19:54:49 | ollieparanoid2 | set | messageid: <1493927689.09.0.0396614156141.issue30272@psf.upfronthosting.co.za> |
2017-05-04 19:54:49 | ollieparanoid2 | link | issue30272 messages |
2017-05-04 19:54:49 | ollieparanoid2 | create | |
|