Skip to content

Commit

Permalink
WebStatus: Fix py2.6 specifix syntax in status/web/base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed Mar 31, 2010
1 parent 9b4deb8 commit 61c23b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildbot/status/web/base.py
Expand Up @@ -586,7 +586,10 @@ def changelinkfilter(changelink):

def replace_from_tuple(t):
search, url_replace = t[:2]
title_replace = (' title="%s"' % t[2]) if len(t) == 3 else ''
if len(t) == 3:
title_replace = ' title="%s"' % t[2]
else:
title_replace = ''

search_re = re.compile(search)
link_replace_re = jinja2.Markup(r'<a href="%s"%s>\g<0></a>' % (url_replace, title_replace))
Expand Down

0 comments on commit 61c23b7

Please sign in to comment.