From 6db6363959a79c5e4c500b43e9c14197fa737589 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Wed, 18 Mar 2015 17:22:50 -0700 Subject: [PATCH] Rename memory backend filesystem -> fake filesystem To ensure that no-one gets confused and believes this is a real filesystem class, rename it to be a name that clearly tells it is not a real filesystem. Change-Id: I47b4018ff50019662492e1865d9cac5e8d43d3bf --- taskflow/persistence/backends/impl_memory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskflow/persistence/backends/impl_memory.py b/taskflow/persistence/backends/impl_memory.py index c1faae84..32525eca 100644 --- a/taskflow/persistence/backends/impl_memory.py +++ b/taskflow/persistence/backends/impl_memory.py @@ -25,7 +25,7 @@ from taskflow.types import tree from taskflow.utils import lock_utils -class Filesystem(object): +class FakeFilesystem(object): """An in-memory filesystem-like structure.""" #: Root path of the in-memory filesystem. @@ -156,7 +156,7 @@ class MemoryBackend(path_based.PathBasedBackend): super(MemoryBackend, self).__init__(conf) if self._path is None: self._path = os.sep - self.memory = Filesystem() + self.memory = FakeFilesystem() self.lock = lock_utils.ReaderWriterLock() def get_connection(self):