Skip to content

Commit

Permalink
don't try to HTML escape None when branch=None
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Oct 1, 2009
1 parent 07b8e3d commit e177c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildbot/status/web/grid.py
Expand Up @@ -202,7 +202,7 @@ def body(self, request):
else:
data += '\n<br /><b>Category:</b> %s' % html_categories[0]
if branch != ANYBRANCH:
data += '\n<br /><b>Branch:</b> %s' % (html.escape(branch) or 'trunk')
data += '\n<br /><b>Branch:</b> %s' % (html.escape(branch or 'trunk'))
data += '</td>\n'
for stamp in stamps:
data += self.stamp_td(stamp)
Expand Down Expand Up @@ -298,7 +298,7 @@ def body(self, request):
else:
data += '\n<br /><b>Category:</b> %s' % html_categories[0]
if branch != ANYBRANCH:
data += '\n<br /><b>Branch:</b> %s' % (html.escape(branch) or 'trunk')
data += '\n<br /><b>Branch:</b> %s' % (html.escape(branch or 'trunk'))
data += '</td>\n'

sortedBuilderNames = status.getBuilderNames()[:]
Expand Down

0 comments on commit e177c92

Please sign in to comment.