From 644584f12c7513cc394defdbdbf2faf84c4e0206 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 24 Jan 2009 14:39:21 +0100 Subject: [PATCH] pychecker shut up more of pychecker. Signed-off-by: Joerg Jaspert --- dak/examine_package.py | 6 +++--- daklib/dak_exceptions.py | 1 + daklib/queue.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dak/examine_package.py b/dak/examine_package.py index 49d18dc6..2a1a711e 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -455,11 +455,11 @@ def check_deb (suite, deb_filename): # Read a file, strip the signature and return the modified contents as # a string. def strip_pgp_signature (filename): - file = utils.open_file (filename) + inputfile = utils.open_file (filename) contents = "" inside_signature = 0 skip_next = 0 - for line in file.readlines(): + for line in inputfile.readlines(): if line[:-1] == "": continue if inside_signature: @@ -477,7 +477,7 @@ def strip_pgp_signature (filename): inside_signature = 0 continue contents += line - file.close() + inputfile.close() return contents def display_changes(suite, changes_filename): diff --git a/daklib/dak_exceptions.py b/daklib/dak_exceptions.py index 4e795461..9404ee9e 100644 --- a/daklib/dak_exceptions.py +++ b/daklib/dak_exceptions.py @@ -29,6 +29,7 @@ class DakError(Exception): """ def __init__(self, message=""): + Exception.__init__(self) self.args = str(message) self.message = str(message) diff --git a/daklib/queue.py b/daklib/queue.py index 09831f4d..f4e4b908 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -156,6 +156,7 @@ class Upload: self.Cnf = Cnf self.accept_count = 0 self.accept_bytes = 0L + self.reject_message = "" self.pkg = Pkg(changes = {}, dsc = {}, dsc_files = {}, files = {}, legacy_source_untouchable = {}) -- 2.39.5