Skip to content

Commit b0cdd43

Browse files
committed
Transform booleans to numbers to go with previous code
1 parent c556daa commit b0cdd43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycodestyle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ def __init__(self, *args, **kwargs):
19951995
# build options from dict
19961996
options_dict = dict(*args, **kwargs)
19971997
arglist = None if parse_argv else options_dict.get('paths', None)
1998-
verbose = options_dict.get('verbose', False)
1998+
verbose = options_dict.get('verbose', 0)
19991999
options, self.paths = process_options(
20002000
arglist, parse_argv, config_file, parser, verbose)
20012001
if options_dict:
@@ -2257,7 +2257,7 @@ def read_config(options, args, arglist, parser):
22572257

22582258

22592259
def process_options(arglist=None, parse_argv=False, config_file=None,
2260-
parser=None, verbose=False):
2260+
parser=None, verbose=0):
22612261
"""Process options passed either via arglist or via command line args.
22622262
22632263
Passing in the ``config_file`` parameter allows other tools, such as flake8

0 commit comments

Comments
 (0)