GitHub: Fix announces.

master
Valentin Lorentz 2014-03-26 07:05:28 +00:00
parent 3ff50b1114
commit 63d86909f8
1 changed files with 4 additions and 4 deletions

View File

@ -213,10 +213,10 @@ class GitHub(callbacks.Plugin):
repl[key + '__firstline'] = value.split('\n', 1)[0]
repl.update({'__hidden': hidden or 0})
command = Template(format_).safe_substitute(repl)
if hidden is not None:
s += _(' (+ %i hidden commits)') % hidden
if sys.version_info[0] < 3:
s = s.encode('utf-8')
#if hidden is not None:
# s += _(' (+ %i hidden commits)') % hidden
#if sys.version_info[0] < 3:
# s = s.encode('utf-8')
tokens = callbacks.tokenize(command)
if not tokens:
return