diff options
| author | Scott Gasch <[email protected]> | 2022-05-28 19:29:08 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-05-28 19:29:08 -0700 |
| commit | 1e858172519e9339e4720b8bf9b39b6d9801e305 (patch) | |
| tree | 75306d5a4eb3a9b512646f0acc5c6174644348a6 /persistent.py | |
| parent | 52ff365609d3f5a81cb79dc4464b19bd5860cfc0 (diff) | |
Tweak around docstring to make prettier sphinx autodocs.
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__( |
