File tree Expand file tree Collapse file tree 3 files changed +3485
-5
lines changed
packages/google-cloud-texttospeech Expand file tree Collapse file tree 3 files changed +3485
-5
lines changed Original file line number Diff line number Diff line change 1616
1717
1818from __future__ import absolute_import
19+ import sys
20+ import warnings
1921
2022from google .cloud .texttospeech_v1 import types
2123from google .cloud .texttospeech_v1 .gapic import enums
2224from google .cloud .texttospeech_v1 .gapic import text_to_speech_client
2325
2426
27+ if sys .version_info [:2 ] == (2 , 7 ):
28+ message = (
29+ "A future version of this library will drop support for Python 2.7."
30+ "More details about Python 2 support for Google Cloud Client Libraries"
31+ "can be found at https://cloud.google.com/python/docs/python2-sunset/"
32+ )
33+ warnings .warn (message , DeprecationWarning )
34+
35+
2536class TextToSpeechClient (text_to_speech_client .TextToSpeechClient ):
2637 __doc__ = text_to_speech_client .TextToSpeechClient .__doc__
2738 enums = enums
Original file line number Diff line number Diff line change 1616
1717
1818from __future__ import absolute_import
19+ import sys
20+ import warnings
1921
2022from google .cloud .texttospeech_v1beta1 import types
2123from google .cloud .texttospeech_v1beta1 .gapic import enums
2224from google .cloud .texttospeech_v1beta1 .gapic import text_to_speech_client
2325
2426
27+ if sys .version_info [:2 ] == (2 , 7 ):
28+ message = (
29+ "A future version of this library will drop support for Python 2.7."
30+ "More details about Python 2 support for Google Cloud Client Libraries"
31+ "can be found at https://cloud.google.com/python/docs/python2-sunset/"
32+ )
33+ warnings .warn (message , DeprecationWarning )
34+
35+
2536class TextToSpeechClient (text_to_speech_client .TextToSpeechClient ):
2637 __doc__ = text_to_speech_client .TextToSpeechClient .__doc__
2738 enums = enums
You can’t perform that action at this time.
0 commit comments