From 332c0c069ba9c04995fe29755dd454a152fc00fd Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 15 Apr 2009 23:20:00 +0200 Subject: [PATCH] Why oh why doesnt this code just read my mind and adapt how i want it to be? Signed-off-by: Joerg Jaspert --- dak/process_new.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ?" -- 2.39.5