Index: appengine/chromium_build_logs/third_party/apiclient/__init__.py |
diff --git a/appengine/chromium_build_logs/third_party/apiclient/__init__.py b/appengine/chromium_build_logs/third_party/apiclient/__init__.py |
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d75e7a1311f8035c6b11c4f6dffb42eb127abdaf 100644 |
--- a/appengine/chromium_build_logs/third_party/apiclient/__init__.py |
+++ b/appengine/chromium_build_logs/third_party/apiclient/__init__.py |
@@ -0,0 +1,42 @@ |
+"""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
|
+ |
+from six import iteritems |
+ |
+import googleapiclient |
+ |
+try: |
+ import oauth2client |
+except ImportError: |
+ raise RuntimeError( |
+ 'Previous version of google-api-python-client detected; due to a ' |
+ 'packaging issue, we cannot perform an in-place upgrade. To repair, ' |
+ 'remove and reinstall this package, along with oauth2client and ' |
+ 'uritemplate. One can do this with pip via\n' |
+ ' pip install -I google-api-python-client' |
+ ) |
+ |
+from googleapiclient import channel |
+from googleapiclient import discovery |
+from googleapiclient import errors |
+from googleapiclient import http |
+from googleapiclient import mimeparse |
+from googleapiclient import model |
+from googleapiclient import sample_tools |
+from googleapiclient import schema |
+ |
+__version__ = googleapiclient.__version__ |
+ |
+_SUBMODULES = { |
+ 'channel': channel, |
+ 'discovery': discovery, |
+ 'errors': errors, |
+ 'http': http, |
+ 'mimeparse': mimeparse, |
+ 'model': model, |
+ 'sample_tools': sample_tools, |
+ 'schema': schema, |
+} |
+ |
+import sys |
+for module_name, module in iteritems(_SUBMODULES): |
+ sys.modules['apiclient.%s' % module_name] = module |