mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Misc: Update @version to match the new version format.
This commit is contained in:
parent
c84a7ac094
commit
4f7caa78e4
@ -315,7 +315,7 @@ class Misc(callbacks.Plugin):
|
|||||||
.decode('utf8'))
|
.decode('utf8'))
|
||||||
version = data['commit']['committer']['date']
|
version = data['commit']['committer']['date']
|
||||||
# Strip the last 'Z':
|
# Strip the last 'Z':
|
||||||
version = ''.join(version.rsplit('Z', 1)).replace(':', '-')
|
version = version.rsplit('T', 1)[0].replace('-', '.')
|
||||||
if sys.version_info[0] < 3 and isinstance(version, unicode):
|
if sys.version_info[0] < 3 and isinstance(version, unicode):
|
||||||
version = version.encode('utf8')
|
version = version.encode('utf8')
|
||||||
versions[branch] = version
|
versions[branch] = version
|
||||||
|
Loading…
Reference in New Issue
Block a user