]> git.decadent.org.uk Git - dak.git/commitdiff
pychecker
authorJoerg Jaspert <joerg@debian.org>
Sat, 24 Jan 2009 13:39:21 +0000 (14:39 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 24 Jan 2009 13:39:21 +0000 (14:39 +0100)
shut up more of pychecker.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/examine_package.py
daklib/dak_exceptions.py
daklib/queue.py

index 49d18dc685dfabb0668e9b70c76833c39d6dd336..2a1a711e04ed4dd50f98855bf18770376d095553 100755 (executable)
@@ -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):
index 4e795461532e6b6284057b5a961ac88d329c83be..9404ee9e71138ceb8c18bf51547cdf98ce25c6f6 100644 (file)
@@ -29,6 +29,7 @@ class DakError(Exception):
     """
 
     def __init__(self, message=""):
+        Exception.__init__(self)
         self.args = str(message)
         self.message = str(message)
 
index 09831f4d75a1f1280f6e58b99c232a37af0ff6d5..f4e4b9087b8923357b3a03aa459ec29027bb7231 100755 (executable)
@@ -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 = {})