mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Use 'key in dict' instead of 'dict.get(key)'
This commit is contained in:
parent
f605a002bd
commit
fe71b34697
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ for section, values in INITIAL_CONFIG.items():
|
|||
|
||||
_CONFIG_PARSER.read("/etc/radicale/config")
|
||||
_CONFIG_PARSER.read(os.path.expanduser("~/.config/radicale/config"))
|
||||
if os.environ.get('RADICALE_CONFIG', None):
|
||||
if 'RADICALE_CONFIG' in os.environ:
|
||||
_CONFIG_PARSER.read(os.environ['RADICALE_CONFIG'])
|
||||
|
||||
# Wrap config module into ConfigParser instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue