Cast version to string for comparisons

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent 8daaa75027
commit ccd49201b1

@ -335,7 +335,7 @@ class ModuleValidator(Validator):
return return
try: try:
version_added = StrictVersion(doc.get('version_added', '0.0')) version_added = StrictVersion(str(doc.get('version_added', '0.0')))
except ValueError: except ValueError:
self.errors.append('version_added is not a valid version ' self.errors.append('version_added is not a valid version '
'number: %s' % version_added) 'number: %s' % version_added)

Loading…
Cancel
Save