Rev 190: Made do_read_mode clearer. in http://bzr.daniel-watkins.co.uk/pqm/xmlrpc
Daniel Watkins
daniel at daniel-watkins.co.uk
Thu Jul 31 07:16:09 BST 2008
At http://bzr.daniel-watkins.co.uk/pqm/xmlrpc
------------------------------------------------------------
revno: 190
revision-id: daniel at daniel-watkins.co.uk-20080731061434-1asx9espfcmndnud
parent: daniel at daniel-watkins.co.uk-20080731061007-75p4l4jeumuv5sca
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: xmlrpc
timestamp: Thu 2008-07-31 07:14:34 +0100
message:
Made do_read_mode clearer.
-------------- next part --------------
=== modified file 'bin/pqm'
--- a/bin/pqm 2008-07-31 05:26:22 +0000
+++ b/bin/pqm 2008-07-31 06:14:34 +0000
@@ -203,11 +203,12 @@
def do_read_mode(logger, options):
sender = None
try:
+ email = read_email(logger)
+ email_string = get_email_string(logger, options, email)
fname = 'patch.%d' % (time.time())
logger.info('new patch ' + fname)
f = open('tmp.' + fname, 'w')
- email = read_email(logger)
- f.write(get_email_string(logger, options, email))
+ f.write(email_string)
f.close()
os.rename('tmp.' + fname, fname)
except:
More information about the bazaar-commits
mailing list