Change version format to comply with PEP440.

This commit is contained in:
Valentin Lorentz 2014-03-03 17:11:39 +01:00
parent 6520dba7ad
commit c84a7ac094

View File

@ -52,9 +52,8 @@ try:
version = version.decode()
version = version \
.strip() \
.split(' +')[0] \
.replace(' ', 'T') \
.replace(':', '-')
.split(' ')[0] \
.replace('-', '.')
except:
pass
if not version: