changeset 12264:b8146231c3de

patchbomb: consistent code style in getaddrs()
author Christian Ebert <blacktrash@gmx.net>
date Sat, 11 Sep 2010 18:08:00 +0200
parents 5f19416056b4
children 1ed2dc9d4368
files hgext/patchbomb.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Sat Sep 11 18:48:03 2010 +0200
+++ b/hgext/patchbomb.py	Sat Sep 11 18:08:00 2010 +0200
@@ -394,17 +394,14 @@
 
         if addrs:
             showaddrs.append('%s %s' % (showaddr, ', '.join(addrs)))
-            return mail.addrlistencode(ui, addrs, _charsets,
-                                       opts.get('test'))
+            return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
 
         addrs = ui.config('email', opt) or ui.config('patchbomb', opt) or ''
         if not addrs and prpt:
             addrs = prompt(ui, prpt, default)
 
         if addrs:
-            showaddr = '%s %s' % (showaddr, addrs)
-            showaddrs.append(showaddr)
-
+            showaddrs.append('%s %s' % (showaddr, addrs))
         return mail.addrlistencode(ui, [addrs], _charsets, opts.get('test'))
 
     to = getaddrs('to', 'To')