Mercurial > public > mercurial-scm > hg-stable
diff hgext/notify.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | d83566f4453b |
line wrap: on
line diff
--- a/hgext/notify.py Mon Jan 25 00:05:22 2010 -0600 +++ b/hgext/notify.py Mon Jan 25 00:05:27 2010 -0600 @@ -134,7 +134,7 @@ c = path.find('/') if c == -1: break - path = path[c+1:] + path = path[c + 1:] count -= 1 return path @@ -216,7 +216,7 @@ subject = '%s: %s' % (self.root, s) maxsubject = int(self.ui.config('notify', 'maxsubject', 67)) if maxsubject and len(subject) > maxsubject: - subject = subject[:maxsubject-3] + '...' + subject = subject[:maxsubject - 3] + '...' msg['Subject'] = mail.headencode(self.ui, subject, self.charsets, self.test)