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.
This commit is contained in:
Florian Rathgeber 2014-03-23 18:47:21 +00:00
parent 19252c0404
commit 39e60d4254

View file

@ -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))