From 1b2e115155e27f3f8696ed43c3e04207e886207a Mon Sep 17 00:00:00 2001 From: foamyguy Date: Tue, 21 Nov 2023 18:04:21 -0600 Subject: [PATCH] remove prints, fix trailing slash difference --- circup/__init__.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/circup/__init__.py b/circup/__init__.py index 6d50e46..d38b49c 100644 --- a/circup/__init__.py +++ b/circup/__init__.py @@ -442,9 +442,7 @@ class WebBackend: auth = HTTPBasicAuth("", url.password) # Create the top level directory. - print(f'target: {target + "/"}') - r = requests.put(target + "/", auth=auth) - print(f"status: {r.status_code}") + r = requests.put(target + ("/" if not target.endswith("/") else ""), auth=auth) r.raise_for_status() # Traverse the directory structure and create the directories/files. @@ -744,7 +742,6 @@ class WebBackend: """ Update the module using web workflow. """ - print(module.bundle_path) if module.file: # Copy the file (will overwrite). self.install_file_http(module.bundle_path, module.path) @@ -752,11 +749,8 @@ class WebBackend: # Delete the directory (recursive) first. url = urlparse(module.path) auth = HTTPBasicAuth("", url.password) - r = requests.delete(module.path, auth=auth) - r.raise_for_status() - print(module.path) self.install_dir_http(module.bundle_path, module.path)