File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/google-cloud-storage/google/cloud/storage Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3030 machine).
3131"""
3232
33+
34+ from pkg_resources import get_distribution
35+ __version__ = get_distribution ('google-cloud-storage' ).version
36+
3337from google .cloud .storage .batch import Batch
3438from google .cloud .storage .blob import Blob
3539from google .cloud .storage .bucket import Bucket
Original file line number Diff line number Diff line change 1414
1515"""Create / interact with Google Cloud Storage connections."""
1616
17- from pkg_resources import get_distribution
18-
1917from google .cloud import _http
2018
19+ from google .cloud .storage import __version__
20+
2121
22- _STORAGE_DIST = get_distribution ('google-cloud-storage' )
23- _CLIENT_INFO = _http .CLIENT_INFO_TEMPLATE .format (_STORAGE_DIST .version )
22+ _CLIENT_INFO = _http .CLIENT_INFO_TEMPLATE .format (__version__ )
2423
2524
2625class Connection (_http .JSONConnection ):
You can’t perform that action at this time.
0 commit comments