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

Side by Side Diff: appengine/chromium_build_logs/third_party/apiclient/__init__.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: clean up code Created 5 years, 4 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
OLDNEW
(Empty)
1 """Retain apiclient as an alias for googleapiclient."""
agable 2015/08/10 22:23:58 Since the symlink above is to appengine/third_part
jshu 2015/08/11 21:57:18 appengine/third_party/googleapiclient symlinks to
agable 2015/08/12 22:18:08 Aha, I see. Then we should change this. You should
2
3 from six import iteritems
4
5 import googleapiclient
6
7 try:
8 import oauth2client
9 except ImportError:
10 raise RuntimeError(
11 'Previous version of google-api-python-client detected; due to a '
12 'packaging issue, we cannot perform an in-place upgrade. To repair, '
13 'remove and reinstall this package, along with oauth2client and '
14 'uritemplate. One can do this with pip via\n'
15 ' pip install -I google-api-python-client'
16 )
17
18 from googleapiclient import channel
19 from googleapiclient import discovery
20 from googleapiclient import errors
21 from googleapiclient import http
22 from googleapiclient import mimeparse
23 from googleapiclient import model
24 from googleapiclient import sample_tools
25 from googleapiclient import schema
26
27 __version__ = googleapiclient.__version__
28
29 _SUBMODULES = {
30 'channel': channel,
31 'discovery': discovery,
32 'errors': errors,
33 'http': http,
34 'mimeparse': mimeparse,
35 'model': model,
36 'sample_tools': sample_tools,
37 'schema': schema,
38 }
39
40 import sys
41 for module_name, module in iteritems(_SUBMODULES):
42 sys.modules['apiclient.%s' % module_name] = module
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698