]> err.no Git - dak/commitdiff
Why oh why doesnt this code just read my mind and adapt how i want it to be?
authorJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 21:20:00 +0000 (23:20 +0200)
committerJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 21:20:00 +0000 (23:20 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index c33b3d36bc6533561d465d3486a1bf112b18fcbd..08f784f772a288be53f34ba12f5197fe90e9da8c 100755 (executable)
@@ -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 ?"