Skip to content

Commit

Permalink
Adding an alternative for removesuffix method of string as it is not …
Browse files Browse the repository at this point in the history
…supported in python 3.8
  • Loading branch information
AbhiM98 committed Jun 10, 2024
1 parent 4a35af1 commit e06a23a
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 1 deletion.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified S3MP/__init__.py
100644 → 100755
Empty file.
Empty file modified S3MP/_version.py
100644 → 100755
Empty file.
Empty file modified S3MP/async_utils.py
100644 → 100755
Empty file.
Empty file modified S3MP/callbacks.py
100644 → 100755
Empty file.
Empty file modified S3MP/global_config.py
100644 → 100755
Empty file.
Empty file modified S3MP/keys.py
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion S3MP/mirror_path.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def override_local_path(self, local_path: Path):
@staticmethod
def from_s3_key(s3_key: str, **kwargs: Dict) -> MirrorPath:
"""Create a MirrorPath from an s3 key."""
s3_key = s3_key.removesuffix('/')
# s3_key = s3_key.removesuffix('/')
s3_key = s3_key[:-1] if s3_key.endswith("/") else s3_key
key_segments = [KeySegment(idx, s) for idx, s in enumerate(s3_key.split('/'))]
return MirrorPath(key_segments, **kwargs)

Expand Down
Empty file modified S3MP/multipart_uploads.py
100644 → 100755
Empty file.
Empty file modified S3MP/prefix_queries.py
100644 → 100755
Empty file.
Empty file modified S3MP/transfer_configs.py
100644 → 100755
Empty file.
Empty file modified S3MP/types.py
100644 → 100755
Empty file.
Empty file modified dev-environment.yml
100644 → 100755
Empty file.
Empty file modified docker-build.ps1
100644 → 100755
Empty file.
Empty file modified docker-compose.yaml
100644 → 100755
Empty file.
Empty file modified environment.yml
100644 → 100755
Empty file.
Empty file modified pyproject.toml
100644 → 100755
Empty file.
Empty file modified pytest.ini
100644 → 100755
Empty file.

0 comments on commit e06a23a

Please sign in to comment.