Skip to content
Snippets Groups Projects
Commit bf3b8138 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-1030: fix linting

parent b5953afe
Branches
Tags
1 merge request!468Resolve L2SS-1030 "Create configuration device"
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
Configuration Configuration
-------------------- --------------------
The ``Configuration == DeviceProxy("STAT/Configuration/1")`` Configuration Device controls the loading, updating, exposing The ``Configuration == DeviceProxy("STAT/Configuration/1")`` Configuration Device controls the loading, updating, exposing and dumping of the whole Station Configuration
and dumping of the whole Station Configuration
...@@ -33,8 +33,6 @@ def get_servers_with_filters(dbproxy, server="*", clss="*", device="*", ...@@ -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 # Queries can sometimes take more than de default 3 s, so it's
# good to increase the timeout a bit. # good to increase the timeout a bit.
# TODO: maybe instead use automatic retry and increase timeout
# each time?
dbproxy.set_timeout_millis(timeout * 1000) dbproxy.set_timeout_millis(timeout * 1000)
if properties: if properties:
...@@ -239,8 +237,9 @@ class SetterDict(CaselessDictionary, defaultdict): ...@@ -239,8 +237,9 @@ class SetterDict(CaselessDictionary, defaultdict):
(using to_dict()) when you're done creating it. (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 factory = factory or SetterDict
value = {}
self.__dict__["_factory"] = factory self.__dict__["_factory"] = factory
CaselessDictionary.__init__(self) CaselessDictionary.__init__(self)
defaultdict.__init__(self, factory) defaultdict.__init__(self, factory)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment