From 39e60d42544a75589b05fdb5855a03f0e073de08 Mon Sep 17 00:00:00 2001 From: Florian Rathgeber Date: Sun, 23 Mar 2014 18:47:21 +0000 Subject: [PATCH] Default hg ignore config to empty instead of None Setting it to None is interpreted as the string 'None', which does the wrong thing. Setting it to the empty string gives the right behaviour and allows overriding in config files. --- flake8/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/hooks.py b/flake8/hooks.py index 5173883..3249dcf 100644 --- a/flake8/hooks.py +++ b/flake8/hooks.py @@ -217,7 +217,7 @@ def _install_hg_hook(path): c.set('flake8', 'strict', os.getenv('FLAKE8_STRICT', False)) if not c.has_option('flake8', 'ignore'): - c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE')) + c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE', '')) if not c.has_option('flake8', 'lazy'): c.set('flake8', 'lazy', os.getenv('FLAKE8_LAZY', False))