Mercurial > hg
changeset 4142:ba3e13306f70
patchbomb: Strip more than one trailing dot (and spaces between them)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 04 Mar 2007 18:42:31 +0100 |
parents | 49d7a035235b |
children | 26314500a5e1 |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sun Mar 04 18:40:08 2007 +0100 +++ b/hgext/patchbomb.py Sun Mar 04 18:42:31 2007 +0100 @@ -156,8 +156,7 @@ 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: