Support methodPath entries containing colon.

Currently, if we have a top-level methodPath of the form `path:methodName`,
we'll pass this to `urlparse.urljoin`, where this is interpreted as
`scheme:netloc`. In cases other than media upload, this is **not** what we
want.

This fixes the issue by adding our own custom `urljoin`, which detects and
handles this case. We also add a test.
2 files changed
tree: 9e03ceb623771760af7f73dc4050f0c6ce5809b8
  1. apiclient/
  2. docs/
  3. googleapiclient/
  4. samples/
  5. static/
  6. tests/
  7. tools/
  8. .gitignore
  9. .gitmodules
  10. .hgignore
  11. .travis.yml
  12. CHANGELOG
  13. describe.py
  14. expandsymlinks.py
  15. LICENSE
  16. Makefile
  17. MANIFEST.in
  18. README.md
  19. samples-index.py
  20. setup.py
  21. sitecustomize.py
  22. tox.ini
README.md

About

This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library. Additionally, dynamically generated documentation is available for all of the APIs supported by this library.

Installation

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.

Python Version

Python 2.6 or 2.7 is required. Python 3.x is not yet supported.

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:

Contributing

Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.