comparison contrib/patchbomb @ 998:c37dd58a444a

contrib/patchbomb: Fix buglet with empty cc list.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 21 Aug 2005 23:33:02 -0800
parents 458b84a96e1c
children 706c590c9060
comparison
equal deleted inserted replaced
997:458b84a96e1c 998:c37dd58a444a
170 prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches))) 170 prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches)))
171 to = opts['to'] or ui.config('patchbomb', 'to') or prompt('To') 171 to = opts['to'] or ui.config('patchbomb', 'to') or prompt('To')
172 to = [t.strip() for t in to.split(',')] 172 to = [t.strip() for t in to.split(',')]
173 cc = (opts['cc'] or ui.config('patchbomb', 'cc') or 173 cc = (opts['cc'] or ui.config('patchbomb', 'cc') or
174 prompt('Cc', default = '')) 174 prompt('Cc', default = ''))
175 cc = [c.strip() for c in cc.split(',')] 175 cc = (cc and [c.strip() for c in cc.split(',')]) or []
176 176
177 ui.write('Finish with ^D or a dot on a line by itself.\n\n') 177 ui.write('Finish with ^D or a dot on a line by itself.\n\n')
178 178
179 body = [] 179 body = []
180 180