Add a docstring to 'setup' and 'teardown'

Inform that 'setup' and 'teardown' are for internally use only.
This commit is contained in:
Jens Luetjen 2016-01-30 13:38:29 +01:00
parent 2401229871
commit 2b3b2e5808

View File

@ -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']