patchbomb: consistent code style in getaddrs()
authorChristian Ebert <blacktrash@gmx.net>
Sat, 11 Sep 2010 18:08:00 +0200
changeset 12264 b8146231c3de
parent 12263 5f19416056b4
child 12265 1ed2dc9d4368
patchbomb: consistent code style in getaddrs()
hgext/patchbomb.py
--- 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')