From 4f7caa78e49914376686728c274603b9efb57be8 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 3 Mar 2014 16:22:32 +0000 Subject: [PATCH] Misc: Update @version to match the new version format. --- plugins/Misc/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index 401e93cbd..80bf99fba 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -315,7 +315,7 @@ class Misc(callbacks.Plugin): .decode('utf8')) version = data['commit']['committer']['date'] # 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): version = version.encode('utf8') versions[branch] = version