hgext/notify.py
changeset 10282 08a0f04b56bd
parent 10263 25e572394f5c
child 13202 d83566f4453b
--- 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)