]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_new.py
Merge commit 'ftpmaster/master' into psycopg2
[dak.git] / dak / process_new.py
index d742ac20c3a1c1a0ca9b91871acbf00cda941cb2..496e5689babf47ba026018b6437a1bb765ccb4a5 100755 (executable)
@@ -458,7 +458,7 @@ def edit_overrides (new):
 def edit_note(note):
     # Write the current data to a temporary file
     (fd, temp_filename) = utils.temp_filename()
-    temp_file = os.fdopen(temp_filename, 'w')
+    temp_file = os.fdopen(fd, 'w')
     temp_file.write(note)
     temp_file.close()
     editor = os.environ.get("EDITOR","vi")