X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=8741d25ec887e0e19304b174473772ab47ae5119;hb=f82ba4157032e845c6c5d96495d0cbbf9bba204b;hp=462a2e63ae3675bcfccf227378fdd389863a4f29;hpb=ba77095c326cc03fc5ab18423b874ff06e6fcdba;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index 462a2e63..8741d25e 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # vim:set et ts=4 sw=4: -# Handles NEW and BYHAND packages +""" Handles NEW and BYHAND packages """ # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 James Troup # This program is free software; you can redistribute it and/or modify @@ -231,6 +231,7 @@ def sort_changes(changes_files): class Section_Completer: def __init__ (self): self.sections = [] + self.matches = [] q = projectB.query("SELECT section FROM section") for i in q.getresult(): self.sections.append(i[0]) @@ -252,6 +253,7 @@ class Section_Completer: class Priority_Completer: def __init__ (self): self.priorities = [] + self.matches = [] q = projectB.query("SELECT priority FROM priority") for i in q.getresult(): self.priorities.append(i[0]) @@ -457,7 +459,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")