diff options
Diffstat (limited to 'persistent.py')
| -rw-r--r-- | persistent.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/persistent.py b/persistent.py index b42a5c0..0391144 100644 --- a/persistent.py +++ b/persistent.py @@ -32,7 +32,6 @@ class Persistent(ABC): """ Save this thing somewhere that you'll remember when someone calls load() later on in a way that makes sense to your code. - """ pass @@ -45,7 +44,7 @@ class Persistent(ABC): below) be save()d at program exit time. Oh, in case this is handy, here's how to write a factory - method that doesn't call the c'tor in python: + method that doesn't call the c'tor in python:: @classmethod def load_from_somewhere(cls, somewhere): @@ -58,7 +57,6 @@ class Persistent(ABC): # Load the piece(s) of obj that you want to from somewhere. obj._state = load_from_somewhere(somewhere) return obj - """ pass @@ -127,7 +125,6 @@ class PersistAtShutdown(enum.Enum): """ An enum to describe the conditions under which state is persisted to disk. See details below. - """ NEVER = (0,) @@ -153,7 +150,6 @@ class persistent_autoloaded_singleton(object): The implementations of save() and load() and where the class persists its state are details left to the Persistent implementation. - """ def __init__( |
