| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -178,13 +178,13 @@ def init_gcs(): | |||
| 178 | 178 | from kaggle_gcp import KaggleKernelCredentials | |
| 179 | 179 | gcs_client_init = storage.Client.__init__ | |
| 180 | 180 | def monkeypatch_gcs(self, *args, **kwargs): | |
| 181 | - specified_credentials = kwargs.get('credentials') | ||
| 182 | - if specified_credentials is None: | ||
| 183 | - Log.info("No credentials specified, using KaggleKernelCredentials.") | ||
| 184 | - kwargs['credentials'] = KaggleKernelCredentials(target=GcpTarget.GCS) | ||
| 185 | - return gcs_client_init(self, *args, **kwargs) | ||
| 181 | + specified_credentials = kwargs.get('credentials') | ||
| 182 | + if specified_credentials is None: | ||
| 183 | + Log.info("No credentials specified, using KaggleKernelCredentials.") | ||
| 184 | + kwargs['credentials'] = KaggleKernelCredentials(target=GcpTarget.GCS) | ||
| 185 | + return gcs_client_init(self, *args, **kwargs) | ||
| 186 | 186 | ||
| 187 | - storage.Client.__init__ = monkeypatch_gcs | ||
| 187 | + storage.Client.__init__ = monkeypatch_gcs | ||
| 188 | 188 | return storage | |
| 189 | 189 | ||
| 190 | 190 | def init(): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments