[elbe-devel] [PATCH 4/6] elbevalidate: path: implement ImagePath.__eq__()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon May 27 14:12:17 CEST 2024
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbevalidate/path.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/elbevalidate/path.py b/elbevalidate/path.py
index 5a342d3b2b13..0cd2ef9e2015 100644
--- a/elbevalidate/path.py
+++ b/elbevalidate/path.py
@@ -42,6 +42,9 @@ class _PurePath:
def __str__(self):
return str(self._p)
+ def __eq__(self, other):
+ return self.root is other.root and self._p == other._p
+
@property
def _path(self):
return str(self._p)
--
2.45.1
More information about the elbe-devel
mailing list