From 6b532e240241520c098d4a3718e74ad5bde790ca Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 30 Oct 2009 11:41:21 +0000 Subject: [PATCH] Don't shadow built-in 'file' Signed-off-by: Chris Lamb --- dak/add_user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dak/add_user.py b/dak/add_user.py index f6fb645f..28d31208 100755 --- a/dak/add_user.py +++ b/dak/add_user.py @@ -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) -- 2.39.5