From bf3b813885f4c27ba4329ec40a25ead23d16a512 Mon Sep 17 00:00:00 2001 From: stedif <stefano.difrischia@inaf.it> Date: Mon, 24 Oct 2022 18:06:25 +0200 Subject: [PATCH] L2SS-1030: fix linting --- tangostationcontrol/docs/source/devices/configuration.rst | 3 +-- .../tangostationcontrol/common/configuration.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tangostationcontrol/docs/source/devices/configuration.rst b/tangostationcontrol/docs/source/devices/configuration.rst index 65f8c0280..39b918fc8 100644 --- a/tangostationcontrol/docs/source/devices/configuration.rst +++ b/tangostationcontrol/docs/source/devices/configuration.rst @@ -3,5 +3,4 @@ Configuration -------------------- -The ``Configuration == DeviceProxy("STAT/Configuration/1")`` Configuration Device controls the loading, updating, exposing -and dumping of the whole Station Configuration +The ``Configuration == DeviceProxy("STAT/Configuration/1")`` Configuration Device controls the loading, updating, exposing and dumping of the whole Station Configuration diff --git a/tangostationcontrol/tangostationcontrol/common/configuration.py b/tangostationcontrol/tangostationcontrol/common/configuration.py index bc7a6e07e..9a028d06b 100644 --- a/tangostationcontrol/tangostationcontrol/common/configuration.py +++ b/tangostationcontrol/tangostationcontrol/common/configuration.py @@ -33,8 +33,6 @@ def get_servers_with_filters(dbproxy, server="*", clss="*", device="*", # Queries can sometimes take more than de default 3 s, so it's # good to increase the timeout a bit. - # TODO: maybe instead use automatic retry and increase timeout - # each time? dbproxy.set_timeout_millis(timeout * 1000) if properties: @@ -239,8 +237,9 @@ class SetterDict(CaselessDictionary, defaultdict): (using to_dict()) when you're done creating it. """ - def __init__(self, value={}, factory=None): + def __init__(self, value=None, factory=None): factory = factory or SetterDict + value = {} self.__dict__["_factory"] = factory CaselessDictionary.__init__(self) defaultdict.__init__(self, factory) -- GitLab