If no version_added is found, we should assume the string 0.0 instead of the int 0

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent 8c6c2caf61
commit 99158a6a89

@ -303,7 +303,7 @@ class ModuleValidator(Validator):
def _check_version_added(self, doc): def _check_version_added(self, doc):
try: try:
version_added = StrictVersion(doc.get('version_added', 0)) version_added = StrictVersion(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