Skip to content

Commit 034e46d

Browse files
committed
remove unused imports
1 parent 2b0112c commit 034e46d

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

google/cloud/storage/_experimental/asyncio/async_multi_range_downloader.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414

1515
from __future__ import annotations
1616
import asyncio
17-
import google_crc32c
1817
from google.api_core import exceptions
1918
from google.api_core.retry_async import AsyncRetry
2019
from google.cloud._storage_v2.types import BidiReadObjectRedirectedError
2120
from google.rpc import status_pb2
2221

2322
from typing import List, Optional, Tuple, Any, Dict
2423

25-
from google_crc32c import Checksum
26-
2724
from ._utils import raise_if_no_fast_crc32c
2825
from google.cloud.storage._experimental.asyncio.async_read_object_stream import (
2926
_AsyncReadObjectStream,
@@ -278,8 +275,6 @@ def combined_on_error(exc):
278275
).with_on_error(combined_on_error)
279276

280277
async def _do_open():
281-
nonlocal metadata
282-
283278
current_metadata = list(metadata) if metadata else []
284279

285280
# Cleanup stream from previous failed attempt, if any.

google/cloud/storage/_experimental/asyncio/retry/reads_resumption_strategy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
from typing import Any, Dict, List, IO
1616

17-
import grpc
1817
from google.api_core import exceptions
1918
from google.rpc import status_pb2
2019
from google_crc32c import Checksum

tests/conformance/bidi_reads_test.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
from google.auth import credentials as auth_credentials
1212
from google.cloud import _storage_v2 as storage_v2
1313

14-
# Import the components you are building
15-
from google.cloud.storage._experimental.asyncio.async_grpc_client import AsyncGrpcClient
1614
from google.cloud.storage._experimental.asyncio.async_multi_range_downloader import AsyncMultiRangeDownloader
1715

1816
# --- Configuration ---
@@ -51,7 +49,6 @@ async def run_test_scenario(gapic_client, http_client, bucket_name, object_name,
5149
fault_injection_metadata = (("x-retry-test-id", retry_test_id),)
5250

5351
buffer = io.BytesIO()
54-
fast_retry = AsyncRetry(predicate=_is_retriable, deadline=15, initial=0.1)
5552

5653
# 3. Execute the download and assert the outcome.
5754
try:
@@ -158,7 +155,7 @@ async def write_req_gen():
158155
for scenario in open_test_scenarios:
159156
await run_open_test_scenario(gapic_client, http_client, bucket_name, object_name, scenario)
160157

161-
except Exception as e:
158+
except Exception:
162159
import traceback
163160
traceback.print_exc()
164161
finally:

0 commit comments

Comments
 (0)