From 0ddc2b62e4a5e9175ed3e7d3aa7278eb03b1d46d Mon Sep 17 00:00:00 2001 From: Daniel Juarez <34030545+djuarezg@users.noreply.github.com> Date: Mon, 1 May 2023 14:46:15 +0200 Subject: [PATCH] Update genericmanager.py Apply suggested patch from https://github.com/danielfrg/s3contents/issues/142 --- s3contents/genericmanager.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/s3contents/genericmanager.py b/s3contents/genericmanager.py index 6278d8c..db5d44c 100644 --- a/s3contents/genericmanager.py +++ b/s3contents/genericmanager.py @@ -119,17 +119,6 @@ def get(self, path, content=True, type=None, format=None): format, ) - # This is a hack to remove some startup dialog error from JupyterLab - # TODO: Figure out why is this happening - if self.parent: - if path.startswith(self.parent.root_dir): - self.log.debug( - "S3contents.GenericManager.get: removing root_dir (%s) from path", - self.parent.root_dir, - ) - path = path[len(self.parent.root_dir) :] - # END hack - path = path.strip("/") if type is None: