From cc187c2029a9c881a445c619d38448f7ab7a7deb Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 22 Apr 2019 21:24:42 -0700 Subject: [PATCH] Revert "Fix list commit for __dir__" This reverts commit b00ea0b2e2ea41c66615dfc3d7e18d947ac1b6d8. --- rbackup/struct/hierarchy.py | 8 ++++++++ rbackup/struct/repository.py | 8 ++++++++ rbackup/struct/snapshot.py | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/rbackup/struct/hierarchy.py b/rbackup/struct/hierarchy.py index c0aa7bb..3d5f67c 100644 --- a/rbackup/struct/hierarchy.py +++ b/rbackup/struct/hierarchy.py @@ -67,7 +67,11 @@ class Hierarchy(PathLike): return str(self._path) def __dir__(self): +<<<<<<< HEAD return [ +======= + return ( +>>>>>>> 2aff6704bc8f14d9a3f73178c4c1709bfc7812b5 "__dir__", "__eq__", "__fspath__", @@ -81,7 +85,11 @@ class Hierarchy(PathLike): "cleanup", "read_metadata", "write_metadata", +<<<<<<< HEAD ] +======= + ) +>>>>>>> 2aff6704bc8f14d9a3f73178c4c1709bfc7812b5 def _gen_metadata(self): """Generate metadata for this repository. diff --git a/rbackup/struct/repository.py b/rbackup/struct/repository.py index 1e59e6e..8c96dc3 100644 --- a/rbackup/struct/repository.py +++ b/rbackup/struct/repository.py @@ -144,7 +144,11 @@ class Repository(Hierarchy): return next(self._snapshot_iterator) def __dir__(self): +<<<<<<< HEAD return [ +======= + return ( +>>>>>>> 2aff6704bc8f14d9a3f73178c4c1709bfc7812b5 super().__dir__(), "__contains__", "__delitem__", @@ -160,7 +164,11 @@ class Repository(Hierarchy): "cleanup", "create_snapshot", "symlink_snapshot", +<<<<<<< HEAD ] +======= + ) +>>>>>>> 2aff6704bc8f14d9a3f73178c4c1709bfc7812b5 @staticmethod def is_valid_snapshot_name(name): diff --git a/rbackup/struct/snapshot.py b/rbackup/struct/snapshot.py index 1bbaf88..27b3864 100644 --- a/rbackup/struct/snapshot.py +++ b/rbackup/struct/snapshot.py @@ -32,7 +32,11 @@ class Snapshot(Hierarchy): self._pkg_dir = self.path / "pkg" def __dir__(self): +<<<<<<< HEAD return [super().__dir__(), "ctime", "pkg_dir"] +======= + return super().__dir__(), "ctime", "pkg_dir" +>>>>>>> 2aff6704bc8f14d9a3f73178c4c1709bfc7812b5 def __repr__(self): """Return a string representation of this Snapshot."""