summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-03-23 14:41:02 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-03-23 14:41:02 +0100
commitf2dbcb70063ef54f9425c69c451597daee0b89c5 (patch)
tree46c65d24c5ba4e69498c0a3c8122dab391876196
parent045cf2b48a7e03f652b81a3f949878865731f3e0 (diff)
parent022aa8a89e023731b5b71dca8779e0d14ddeb13a (diff)
downloadpep8-f2dbcb70063ef54f9425c69c451597daee0b89c5.tar.gz
Merge pull request #259 from kynan/259-optional-argument-arglist-for-styleguide
StyleGuide accepts optional keyword argument arglist
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index e195b58..eaee994 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1574,11 +1574,12 @@ class StyleGuide(object):
def __init__(self, *args, **kwargs):
# build options from the command line
self.checker_class = kwargs.pop('checker_class', Checker)
+ arglist = kwargs.pop('arglist', None)
parse_argv = kwargs.pop('parse_argv', False)
config_file = kwargs.pop('config_file', None)
parser = kwargs.pop('parser', None)
options, self.paths = process_options(
- parse_argv=parse_argv, config_file=config_file, parser=parser)
+ arglist, parse_argv, config_file, parser)
if args or kwargs:
# build options from dict
options_dict = dict(*args, **kwargs)