Skip to content
Snippets Groups Projects
Unverified Commit b0cdd434 authored by Marco Sirabella's avatar Marco Sirabella
Browse files

Transform booleans to numbers to go with previous code

parent c556daab
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1995,7 +1995,7 @@ class StyleGuide(object):
# build options from dict
options_dict = dict(*args, **kwargs)
arglist = None if parse_argv else options_dict.get('paths', None)
verbose = options_dict.get('verbose', False)
verbose = options_dict.get('verbose', 0)
options, self.paths = process_options(
arglist, parse_argv, config_file, parser, verbose)
if options_dict:
Loading
Loading
@@ -2257,7 +2257,7 @@ def read_config(options, args, arglist, parser):
 
 
def process_options(arglist=None, parse_argv=False, config_file=None,
parser=None, verbose=False):
parser=None, verbose=0):
"""Process options passed either via arglist or via command line args.
 
Passing in the ``config_file`` parameter allows other tools, such as flake8
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment