Skip to content

Commit

Permalink
Remove dublicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
mshivashankar committed Jul 26, 2023
1 parent 90c4257 commit 4f3a33c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion asab/library/providers/azurestorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class AzureStorageLibraryProvider(LibraryProviderABC):
def __init__(self, library, path, layer):
super().__init__(library, layer)
assert path[:6] == "azure+"
self.Layer = layer
self.URL = urllib.parse.urlparse(path[6:])
self.Model = None # Will be set by `_load_model` method
self.Path = path
Expand Down
1 change: 0 additions & 1 deletion asab/library/providers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def __init__(self, library, path, layer, *, set_ready=True):

super().__init__(library, layer)
self.BasePath = os.path.abspath(path)
self.Layer = layer
while self.BasePath.endswith("/"):
self.BasePath = self.BasePath[:-1]

Expand Down
1 change: 0 additions & 1 deletion asab/library/providers/zookeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def __init__(self, library, path, layer):
self.BasePath = url_pieces.path.lstrip("/")
while self.BasePath.endswith("/"):
self.BasePath = self.BasePath[:-1]
self.Layer = layer
self.BasePath = '/' + self.BasePath
if self.BasePath == '/':
self.BasePath = ''
Expand Down

0 comments on commit 4f3a33c

Please sign in to comment.