diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 15:55:55 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 15:55:55 -0500 |
commit | dcb543887bcb0770bbb7b102e9d6a7c732d0228d (patch) | |
tree | f7eefe035f11a8dae80abbb09832067a51e5887a /cloudinit/UserDataHandler.py | |
parent | 8ffe7b00528f6d5abe9ffad6b6e615fb564261be (diff) | |
download | vyos-cloud-init-dcb543887bcb0770bbb7b102e9d6a7c732d0228d.tar.gz vyos-cloud-init-dcb543887bcb0770bbb7b102e9d6a7c732d0228d.zip |
remove occurences of pylint W0621 (Redefining name xyz from outer scope)
Diffstat (limited to 'cloudinit/UserDataHandler.py')
-rw-r--r-- | cloudinit/UserDataHandler.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py index 48bd9780..9331aa17 100644 --- a/cloudinit/UserDataHandler.py +++ b/cloudinit/UserDataHandler.py @@ -246,9 +246,12 @@ def walk_userdata(istr, callback, data=None): if __name__ == "__main__": - import sys - data = decomp_str(file(sys.argv[1]).read()) - newmsg = MIMEMultipart() - process_includes(message_from_string(data), newmsg) - print newmsg - print "#found %s parts" % multi_part_count(newmsg) + def main(): + import sys + data = decomp_str(file(sys.argv[1]).read()) + newmsg = MIMEMultipart() + process_includes(message_from_string(data), newmsg) + print newmsg + print "#found %s parts" % multi_part_count(newmsg) + + main() |