File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/google-cloud-speech/google/cloud/speech Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 2222from google .cloud .client import Client as BaseClient
2323from google .cloud .environment_vars import DISABLE_GRPC
2424
25+ from google .cloud .speech ._gax import GAPICSpeechAPI
2526from google .cloud .speech .connection import Connection
2627from google .cloud .speech .encoding import Encoding
2728from google .cloud .speech .operation import Operation
2829from google .cloud .speech .sample import Sample
2930from google .cloud .speech .alternative import Alternative
3031
31- try :
32- from google .cloud .speech ._gax import GAPICSpeechAPI
33- except ImportError : # pragma: NO COVER
34- _HAVE_GAX = False
35- GAPICSpeechAPI = None
36- else :
37- _HAVE_GAX = True
3832
39-
40- _DISABLE_GAX = os .getenv (DISABLE_GRPC , False )
41- _USE_GAX = _HAVE_GAX and not _DISABLE_GAX
33+ _USE_GAX = not os .getenv (DISABLE_GRPC , False )
4234
4335
4436class Client (BaseClient ):
You can’t perform that action at this time.
0 commit comments