Skip to content

Commit

Permalink
fix: type annotation; unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-burashnikov committed Oct 22, 2023
1 parent fc300ec commit 062a954
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions depinspect/fetch/fetch.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from pathlib import Path
from urllib import request
import time

# url = "http://ports.ubuntu.com/dists/jammy/main/binary-riscv64/Packages.xz"
# target_path = Path.joinpath(Path(__file__).parent, "riscv64Packages.xz")


def fetch_packages_metadata(metadata_url: str, local_target_path: Path):
def fetch_packages_metadata(metadata_url: str, local_target_path: Path) -> None:
# https://docs.python.org/3/library/urllib.request.html#urllib.request.Request
# NOTE: Transfer-Encoding: chunked (streaming) will be auto-selected
with request.urlopen(request.Request(metadata_url), timeout=15.0) as response:
Expand Down

0 comments on commit 062a954

Please sign in to comment.