commit | 72389b7dc79dc11ffe86577eb40b90855568e28d | [log] [tgz] |
---|---|---|
author | Craig Citro <craigcitro@gmail.com> | Tue Jul 15 17:12:50 2014 -0700 |
committer | Craig Citro <craigcitro@gmail.com> | Wed Jul 16 09:20:47 2014 -0700 |
tree | 3108c856a0f882dfc5120518bb24c3d7206ef456 | |
parent | 9a2db6341e89ad924410f771231c2f45e6dec4f2 [diff] |
Replace uses of `as_string` from the email lib. The `as_string` function from `email.message.Message` assumes that it's being used to encode a message for, well, email transmission -- and as a result, it changes lines beginning with "From " into lines beginning with ">From ". Given that we're using that module for multipart uploads, this behavior is surely not what we want. We basically inline the body of `as_string`, setting `mangle_from_` to `False`.
This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library.
To install, simply use pip
or easy_install
:
$ pip install --upgrade google-api-python-client
or
$ easy_install --upgrade google-api-python-client
See the Developers Guide for more detailed instructions and additional documentation.
The following libraries will be installed when you install the client library:
Depending on your version of Python, these libraries may also be installed:
For development you will also need:
Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.