hgext/patchbomb.py
changeset 4142 ba3e13306f70
parent 4141 49d7a035235b
child 4144 03e9c22a6489
child 4596 8e37342cb05d
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -156,8 +156,7 @@ def patchbomb(ui, repo, *revs, **opts):
             body += '\n'.join(patch)
             msg = email.MIMEText.MIMEText(body)
 
-        subj = desc[0].strip()
-        if subj.endswith('.'): subj = subj[:-1]
+        subj = desc[0].strip().rstrip('. ')
         if total == 1:
             subj = '[PATCH] ' + (opts['subject'] or subj)
         else: