summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2017-07-28 05:09:36 +0100
committerAshley Whetter <ashley@awhetter.co.uk>2019-02-09 13:23:21 -0800
commitf77265c6ce454e725477b67fcf818a0842046114 (patch)
treecd79c2369f9c5056eee8c9697ee65a0ed9d029cf
parentae0ed1df3b45408c5e281b0d0feacbcfa5db212d (diff)
downloadpylint-git-f77265c6ce454e725477b67fcf818a0842046114.tar.gz
Fixed Python2 syntax errors
-rw-r--r--pylint/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pylint/config.py b/pylint/config.py
index 26a291629..077bbf9c9 100644
--- a/pylint/config.py
+++ b/pylint/config.py
@@ -335,10 +335,10 @@ class OptionsManagerMixIn:
class CallbackAction(argparse.Action):
"""Doesn't store the value on the config."""
- def __init__(self, *args, nargs=None, **kwargs):
+ def __init__(self, nargs=None, **kwargs):
nargs = nargs or int("metavar" in kwargs)
super(OptionsManagerMixIn.CallbackAction, self).__init__(
- *args, nargs=nargs, **kwargs
+ nargs=nargs, **kwargs
)
def __call__(self, parser, namespace, values, option_string):
@@ -1099,10 +1099,10 @@ class LongHelpAction(argparse.Action):
class LongHelpArgumentParser(argparse.ArgumentParser):
- def __init__(self, *args, formatter_class=LongHelpFormatter, **kwargs):
+ def __init__(self, formatter_class=LongHelpFormatter, **kwargs):
self._max_level = 0
super(LongHelpArgumentParser, self).__init__(
- *args, formatter_class=formatter_class, **kwargs
+ formatter_class=formatter_class, **kwargs
)
# Stop ArgumentParser __init__ adding the wrong help formatter