diff --git a/.doctrees/changes/unreleased.doctree b/.doctrees/changes/unreleased.doctree index 4b2ec140..f5a92d0e 100644 Binary files a/.doctrees/changes/unreleased.doctree and b/.doctrees/changes/unreleased.doctree differ diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index 6d3b5533..8716f333 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/_modules/exasol/bucketfs/_path.html b/_modules/exasol/bucketfs/_path.html index e5848fc1..9cce38ea 100644 --- a/_modules/exasol/bucketfs/_path.html +++ b/_modules/exasol/bucketfs/_path.html @@ -684,6 +684,11 @@
new_path = self._path / (other._path if isinstance(other, cls) else other)
return cls(new_path, self._bucket_api)
+ def __eq__(self, other) -> bool:
+ if not isinstance(other, BucketPath):
+ return False
+ return (self._path, self._bucket_api) == (other._path, other._bucket_api)
+
def __str__(self):
return str(self._path)
diff --git a/_sources/changes/unreleased.md.txt b/_sources/changes/unreleased.md.txt
index 79e701b8..5c463342 100644
--- a/_sources/changes/unreleased.md.txt
+++ b/_sources/changes/unreleased.md.txt
@@ -1 +1,5 @@
# Unreleased
+
+## Bugfixes
+
+* #158: Implemented operator `__eq__` for BucketPath to compare string representation
diff --git a/changes/unreleased.html b/changes/unreleased.html
index 4ecc2043..2f5e9721 100644
--- a/changes/unreleased.html
+++ b/changes/unreleased.html
@@ -192,7 +192,7 @@