[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Why oh why doesnt this code just read my mind and adapt how i want it to be?



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 dak/process_new.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dak/process_new.py b/dak/process_new.py
index c33b3d3..08f784f 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 ?"
-- 
1.5.6.5


Reply to: