Cast version to string for comparisons

pull/4420/head
Matt Martz 2015-12-22 11:15:54 -06:00 committed by John Barker
parent 8daaa75027
commit ccd49201b1
1 changed files with 1 additions and 1 deletions

View File

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