From fe71b346972155b7b0311fd56ac57e1680481fbe Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 8 Jun 2011 08:20:37 +0200 Subject: [PATCH] Use 'key in dict' instead of 'dict.get(key)' --- radicale/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/config.py b/radicale/config.py index 94134b1..5204f4c 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -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