summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@nelson>2010-01-06 21:00:25 -0500
committerScott Moser <smoser@nelson>2010-01-06 21:00:25 -0500
commit3b0d26fb17f338630a08e5c1a8793939fa991d4f (patch)
tree89f005596608dad13e1943bb2685d38b8c93e4b5 /tools
parenta280ac3087deed1a7e9ca5f561094291d0b62ffe (diff)
downloadvyos-cloud-init-3b0d26fb17f338630a08e5c1a8793939fa991d4f.tar.gz
vyos-cloud-init-3b0d26fb17f338630a08e5c1a8793939fa991d4f.zip
mention where it came from
Diffstat (limited to 'tools')
-rwxr-xr-xtools/write-mime-multipart4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/write-mime-multipart b/tools/write-mime-multipart
index 99cfe299..d812e260 100755
--- a/tools/write-mime-multipart
+++ b/tools/write-mime-multipart
@@ -1,4 +1,6 @@
#!/usr/bin/python
+# largely taken from python examples
+# http://docs.python.org/library/email-examples.html
"""Send the contents of a directory as a MIME message."""
@@ -8,8 +10,6 @@ import smtplib
# For guessing MIME type based on file name extension
import mimetypes
-from optparse import OptionParser
-
from email import encoders
from email.message import Message
from email.mime.base import MIMEBase