Skip to content

Commit 3ea7460

Browse files
committed
cleanup
1 parent 32c15c0 commit 3ea7460

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.idea/workspace.xml

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_man_web.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,13 @@ def download(cls, url: str, dir_path: str, want_lazy_download=None) -> str:
6363

6464
# eg for url: http://ftp.uk.debian.org/debian/dists/stable/main/
6565
# save url pointing to director as "index.html" file
66-
is_dir = os.path.isdir(file_path)
67-
print(f"is_dir = {is_dir}")
68-
if is_dir:
69-
file_path = os.path.join(file_path, "index.html")
7066

7167
# could implement more complex caching strategy
7268
if want_lazy_download or cls._want_lazy_download():
7369
if ManFile.path_exists(file_path):
7470
print(f"already downloaded {url} ... reusing cached copy at {file_path}")
7571
return file_path
7672

77-
print(f"downloading {url} ... to {dir_path}")
78-
print(f"dir_path: {dir_path}")
79-
print(f"file_path: {file_path}")
8073
# ensure local destination dir exists
8174
ManFile.path_ensure_exists(dir_path)
8275

0 commit comments

Comments
 (0)