mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Misc: Fix @version on Python 2.
This commit is contained in:
parent
9ff1483da2
commit
43e1b55506
@ -314,6 +314,8 @@ class Misc(callbacks.Plugin):
|
||||
version = data['commit']['committer']['date']
|
||||
# Strip the last 'Z':
|
||||
version = ''.join(version.rsplit('Z', 1)).replace(':', '-')
|
||||
if sys.version_info[0] < 3 and isinstance(version, unicode):
|
||||
version = version.encode('utf8')
|
||||
versions[branch] = version
|
||||
newest = _('The newest versions available online are %s.') % \
|
||||
', '.join([_('%s (in %s)') % (y,x)
|
||||
|
Loading…
Reference in New Issue
Block a user