82
82
>>> print _format_version_tuple((1, 4))
84
>>> print _format_version_tuple((2, 1, 0, 'final', 1))
87
ValueError: version_info (2, 1, 0, 'final', 1) not valid
84
>>> print _format_version_tuple((2, 1, 0, 'final', 42))
88
86
>>> print _format_version_tuple((1, 4, 0, 'wibble', 0))
91
ValueError: version_info (1, 4, 0, 'wibble', 0) not valid
93
89
if len(version_info) == 2:
94
90
main_version = '%d.%d' % version_info[:2]