]> git.decadent.org.uk Git - dak.git/commitdiff
Don't shadow built-in 'file'
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 11:41:21 +0000 (11:41 +0000)
committerChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 11:41:21 +0000 (11:41 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/add_user.py

index f6fb645ff5d464dd2a04998b2972e0004e50c965..28d312087fbcd712408027293d80e38dadb823fb 100755 (executable)
@@ -211,10 +211,10 @@ def main():
 
         # Lets add user to the email-whitelist file if its configured.
         if Cnf.has_key("Dinstall::MailWhiteList") and Cnf["Dinstall::MailWhiteList"] != "":
-            file = utils.open_file(Cnf["Dinstall::MailWhiteList"], "a")
+            f = utils.open_file(Cnf["Dinstall::MailWhiteList"], "a")
             for mail in emails:
-                file.write(mail+'\n')
-            file.close()
+                f.write(mail+'\n')
+            f.close()
 
         print "Added:\nUid:\t %s (ID: %s)\nMaint:\t %s\nFP:\t %s" % (uid, uid_id, \
                      name, primary_key)