Skip to content

Commit

Permalink
rename a variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Sep 30, 2010
1 parent 2e69984 commit 62a6b3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions github/github.py
Expand Up @@ -156,15 +156,15 @@ def _format_changeset_link(self, formatter, ns, match):
self.env.log.debug("revmap disabled, skipping thingy")
return match.group(0)
self.env.log.debug("revmap enabled: formatting links")
commit_info = self._get_commit_data(match.group(0))
commit_data = self._get_commit_data(match.group(0))
self.env.log.debug("long tooltips: %s", self.long_tooltips)
if len(commit_info) == 1:
self.env.log.debug(commit_info)
if len(commit_data) == 1:
self.env.log.debug(commit_data)
if int(self.long_tooltips):
title = commit_info[0]['msg']
title = commit_data[0]['msg']
else:
title = shorten_line(commit_info[0]['msg'])
return tag.a(match.group(0), href="%s/%s" % (formatter.href.changeset(), commit_info[0]['id']),
title = shorten_line(commit_data[0]['msg'])
return tag.a(match.group(0), href="%s/%s" % (formatter.href.changeset(), commit_data[0]['id']),
title=title, class_="changeset")
return match.group(0)

Expand Down

0 comments on commit 62a6b3d

Please sign in to comment.