Browse Source

Merge pull request #64 from dreispt/fix-serv_config

Fix pylint on server_environment
pull/69/head
Pedro M. Baeza 10 years ago
parent
commit
ca4e839d6d
  1. 4
      server_environment/serv_config.py

4
server_environment/serv_config.py

@ -54,8 +54,10 @@ if not os.path.exists(ck_path):
)
def setboolean(obj, attr, _bool=_boolean_states):
def setboolean(obj, attr, _bool=None):
"""Replace the attribute with a boolean."""
if _bool is None:
_bool = dict(_boolean_states)
res = _bool[getattr(obj, attr).lower()]
setattr(obj, attr, res)
return res

Loading…
Cancel
Save