changeset 5948 | 597d8402087d |
parent 5947 | 528c986f0162 |
parent 5915 | d0576d065993 |
child 5973 | ea77f6f77514 |
--- a/hgext/patchbomb.py Fri Jan 25 16:04:32 2008 -0800 +++ b/hgext/patchbomb.py Fri Jan 25 16:04:46 2008 -0800 @@ -417,8 +417,7 @@ fp.close() elif opts.get('mbox'): ui.status('Writing ', m['Subject'], ' ...\n') - fp = open(opts.get('mbox'), - m.has_key('In-Reply-To') and 'ab+' or 'wb+') + fp = open(opts.get('mbox'), 'In-Reply-To' in m and 'ab+' or 'wb+') date = util.datestr(date=start_time, format='%a %b %d %H:%M:%S %Y', timezone=False) fp.write('From %s %s\n' % (sender_addr, date))