Skip to content

Commit

Permalink
remove redundant to_unicode invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
hvr committed Oct 17, 2010
1 parent 67d05ab commit b93a90d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tracext/git/git_fs.py
Expand Up @@ -126,10 +126,8 @@ def _format_sha_link(self, formatter, sha, label):
title=shorten_line(changeset.message),
href=formatter.href.changeset(sha, repos.reponame))
except Exception, e:
errmsg = to_unicode(e)

return tag.a(label, class_="missing changeset",
title=to_unicode(errmsg), rel="nofollow")
return tag.a(label, class_="missing changeset",
title=to_unicode(e), rel="nofollow")

def get_wiki_syntax(self):
yield (r'(?:\b|!)r?[0-9a-fA-F]{%d,40}\b' % self._wiki_shortrev_len,
Expand Down Expand Up @@ -261,9 +259,8 @@ def sha_link(sha, label=None):
href=context.href.changeset(sha, repos.reponame))

except Exception, e:
errmsg = to_unicode(e)
return tag.a(sha, class_="missing changeset",
title=to_unicode(errmsg), rel="nofollow")
title=to_unicode(e), rel="nofollow")

if name == 'Branches':
branches = props[name]
Expand Down

0 comments on commit b93a90d

Please sign in to comment.