boto/boto — pull request #1130 by mleonhard (2012-11-24 20:37:11+00:00)
Title: Update MIME module imports to allow py2exe to find modules

The following error message appears when using py2exe to build a program that imports boto:

The following modules appear to be missing
['Carbon', 'Carbon.Files', 'M2Crypto', '_scproxy',
'email.Encoders', 'email.MIMEBase', 'email.MIMEMultipart',
'email.MIMEText', 'email.Utils', 'lxml', 'requests', 'simplejson']

The build completes, but the resulting program crashes with an ImportError. The email.MIME* modules were renamed in Python 2.5. The documentation states that the old names will continue to work:
http://docs.python.org/2.6/library/email.html?highlight=mimebase#package-history
They do work when importing a module normally, but not when running under py2exe. This fix renames the imports to use the new email module v4.0 names.

This is my first github pull request. Please let me know if I did it wrong.