Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/google_api_python_client/apiclient/__init__.py

Issue 963953003: OAuth2 support in depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: restore git_cl Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 """Retain apiclient as an alias for googleapiclient."""
2
3 import googleapiclient
4
5 try:
6 import oauth2client
7 except ImportError:
8 raise RuntimeError(
9 'Previous version of google-api-python-client detected; due to a '
10 'packaging issue, we cannot perform an in-place upgrade. To repair, '
11 'remove and reinstall this package, along with oauth2client and '
12 'uritemplate. One can do this with pip via\n'
13 ' pip install -I google-api-python-client'
14 )
15
16 from googleapiclient import channel
17 from googleapiclient import discovery
18 from googleapiclient import errors
19 from googleapiclient import http
20 from googleapiclient import mimeparse
21 from googleapiclient import model
22 from googleapiclient import sample_tools
23 from googleapiclient import schema
24
25 __version__ = googleapiclient.__version__
26
27 _SUBMODULES = {
28 'channel': channel,
29 'discovery': discovery,
30 'errors': errors,
31 'http': http,
32 'mimeparse': mimeparse,
33 'model': model,
34 'sample_tools': sample_tools,
35 'schema': schema,
36 }
37
38 import sys
39 for module_name, module in _SUBMODULES.iteritems():
40 sys.modules['apiclient.%s' % module_name] = module
OLDNEW
« no previous file with comments | « third_party/google_api_python_client/__init__.py ('k') | third_party/google_api_python_client/describe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698