Skip to content

Commit

Permalink
Update genericmanager.py
Browse files Browse the repository at this point in the history
Apply suggested patch from danielfrg#142
  • Loading branch information
djuarezg authored May 1, 2023
1 parent 8239217 commit 0ddc2b6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions s3contents/genericmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0ddc2b6

Please sign in to comment.