From 096252dd33cb44c2e4f741acf0864ee201712d15 Mon Sep 17 00:00:00 2001 From: John Readey Date: Mon, 1 Apr 2024 04:47:43 -0700 Subject: [PATCH] Remove extraneous print statemnts (#183) * fix retries option for hsload * remove debug print statements --- h5pyd/_apps/hsload.py | 2 +- h5pyd/_apps/hsls.py | 2 -- h5pyd/_hl/files.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/h5pyd/_apps/hsload.py b/h5pyd/_apps/hsload.py index c0dae7c..8fb72ee 100755 --- a/h5pyd/_apps/hsload.py +++ b/h5pyd/_apps/hsload.py @@ -233,7 +233,7 @@ def main(): "endpoint": cfg["hs_endpoint"], "bucket": cfg["hs_bucket"], "mode": mode, - "retries": cfg["retries"], + "retries": int(cfg["retries"]), } fout = h5pyd.File(tgt, **kwargs) diff --git a/h5pyd/_apps/hsls.py b/h5pyd/_apps/hsls.py index e566ac9..dd51d5c 100644 --- a/h5pyd/_apps/hsls.py +++ b/h5pyd/_apps/hsls.py @@ -350,9 +350,7 @@ def visitDomains(domain, depth=1): if len(parts) > depth: parts = parts[-depth:] parts = parts[1:] - print("display_name pre:", display_name) display_name = "/".join(parts) - print("display_name post:", display_name) num_bytes = ' ' if d.is_folder: dir_class = "folder" diff --git a/h5pyd/_hl/files.py b/h5pyd/_hl/files.py index 06ae737..ee8dbf2 100644 --- a/h5pyd/_hl/files.py +++ b/h5pyd/_hl/files.py @@ -215,7 +215,7 @@ def __init__( # remove the trailing slash on endpoint if it exists if endpoint.endswith('/'): endpoint = endpoint.strip('/') - + if username is None: if "H5SERV_USERNAME" in os.environ: username = os.environ["H5SERV_USERNAME"]