From 2ba353aa72b18fea3286b0a8ed6e76594f04a516 Mon Sep 17 00:00:00 2001 From: Shinya Kawaguchi Date: Sat, 22 Jul 2017 16:21:32 +0900 Subject: [PATCH] Fix quiet/verbose config problem --- src/flake8/options/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index 59bf60f..3586cca 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -133,7 +133,10 @@ class MergedConfigParser(object): #: Set of types that should use the #: :meth:`~configparser.RawConfigParser.getint` method. - GETINT_TYPES = {'int', 'count'} + GETINT_TYPES = {'int'} + #: Set of actions that should use the + #: :meth:`~configparser.RawConfigParser.getint` method. + GETINT_ACTIONS = {'count'} #: Set of actions that should use the #: :meth:`~configparser.RawConfigParser.getbool` method. GETBOOL_ACTIONS = {'store_true', 'store_false'} @@ -185,6 +188,8 @@ class MergedConfigParser(object): method = config_parser.get if option.type in self.GETINT_TYPES: method = config_parser.getint + elif option.action in self.GETINT_ACTIONS: + method = config_parser.getint elif option.action in self.GETBOOL_ACTIONS: method = config_parser.getboolean