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
No related branches found
No related tags found
1 merge request!468Resolve L2SS-1030 "Create configuration device"
......@@ -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
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment