From 2b3b2e5808d987a2609ab6de776402b16c97b897 Mon Sep 17 00:00:00 2001 From: Jens Luetjen Date: Sat, 30 Jan 2016 13:38:29 +0100 Subject: [PATCH] Add a docstring to 'setup' and 'teardown' Inform that 'setup' and 'teardown' are for internally use only. --- mopidy/core/actor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mopidy/core/actor.py b/mopidy/core/actor.py index 9c03d035..8eb3bb36 100644 --- a/mopidy/core/actor.py +++ b/mopidy/core/actor.py @@ -141,6 +141,7 @@ class Core( CoreListener.send('stream_title_changed', title=title) def setup(self): + """ Do not call this function. It is for internal use at startup.""" try: coverage = [] if self._config and 'restore_state' in self._config['core']: @@ -152,6 +153,7 @@ class Core( logger.warn('Restore state: Unexpected error: %s', str(e)) def teardown(self): + """ Do not call this function. It is for internal use at shutdown.""" try: if self._config and 'restore_state' in self._config['core']: amount = self._config['core']['restore_state']