From: Joerg Jaspert Date: Wed, 15 Apr 2009 21:20:00 +0000 (+0200) Subject: Why oh why doesnt this code just read my mind and adapt how i want it to be? X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=332c0c069ba9c04995fe29755dd454a152fc00fd;p=dak.git Why oh why doesnt this code just read my mind and adapt how i want it to be? Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_new.py b/dak/process_new.py index c33b3d36..08f784f7 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -581,9 +581,9 @@ def prod_maintainer (note): answer = 'E' while answer == 'E': os.system("%s %s" % (editor, temp_filename)) - f = os.fdopen(fd) - prod_message = "".join(f.readlines()) - f.close() + temp_fh = util.open_file(temp_filename) + prod_message = "".join(temp_fh.readlines()) + temp_fh.close() print "Prod message:" print utils.prefix_multi_line_string(prod_message," ",include_blank_lines=1) prompt = "[P]rod, Edit, Abandon, Quit ?"