summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
authorMarco Sirabella <marco@sirabella.org>2017-10-22 09:59:29 -0400
committerMarco Sirabella <marco@sirabella.org>2017-10-22 09:59:29 -0400
commitb0cdd4343fbcabbb1e56fd3e5082096e0345343f (patch)
treed5c3ec43720d856ddf52ff9fc8e48a31f7b99e20 /pycodestyle.py
parentc556daab719a702859b648219006f9e0dee6faae (diff)
downloadpep8-b0cdd4343fbcabbb1e56fd3e5082096e0345343f.tar.gz
Transform booleans to numbers to go with previous code
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index f402bc2..3bc7976 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -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:
@@ -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