contrib/patchbomb: Fix buglet with empty cc list.
authorBryan O'Sullivan <bos@serpentine.com>
Sun, 21 Aug 2005 23:33:02 -0800
changeset 998 c37dd58a444a
parent 997 458b84a96e1c
child 999 bb391518bc28
contrib/patchbomb: Fix buglet with empty cc list.
contrib/patchbomb
--- a/contrib/patchbomb	Sun Aug 21 23:03:14 2005 -0800
+++ b/contrib/patchbomb	Sun Aug 21 23:33:02 2005 -0800
@@ -172,7 +172,7 @@
     to = [t.strip() for t in to.split(',')]
     cc = (opts['cc'] or ui.config('patchbomb', 'cc') or
           prompt('Cc', default = ''))
-    cc = [c.strip() for c in cc.split(',')]
+    cc = (cc and [c.strip() for c in cc.split(',')]) or []
 
     ui.write('Finish with ^D or a dot on a line by itself.\n\n')