We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1da982 commit 980c308Copy full SHA for 980c308
apiclient/__init__.py
@@ -10,7 +10,12 @@
10
from googleapiclient import http
11
from googleapiclient import mimeparse
12
from googleapiclient import model
13
-from googleapiclient import sample_tools
+try:
14
+ from googleapiclient import sample_tools
15
+except ImportError:
16
+ # Silently ignore, because the vast majority of consumers won't use it and
17
+ # it has deep dependence on oauth2client, an optional dependency.
18
+ sample_tools = None
19
from googleapiclient import schema
20
21
__version__ = googleapiclient.__version__
0 commit comments