summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-14 11:37:16 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-14 11:37:16 +0300
commitdcf461b92a4d30db09ed6c9bfc9bc757e924fc79 (patch)
treec09353e17fa31863948cb7f334a0bf1816849ca9
parent41308676e7f70db23562d999c8b2b7b1b5db95e3 (diff)
downloadpylint-dcf461b92a4d30db09ed6c9bfc9bc757e924fc79.tar.gz
Remove trailing whitespaces.
-rw-r--r--pylint/checkers/classes.py6
-rw-r--r--pylint/checkers/utils.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index 71a589e..253e04f 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -904,7 +904,7 @@ class SpecialMethodsChecker(BaseChecker):
# Method has no parameter, will be catched
# by no-method-argument.
return
-
+
if decorated_with(node, [BUILTINS + ".staticmethod"]):
# We expect to not take in consideration self.
all_args = node.args.args
@@ -919,7 +919,7 @@ class SpecialMethodsChecker(BaseChecker):
# tuple, although the user should implement the method
# to take all of them in consideration.
emit = mandatory not in expected_params
- expected_params = "between %d or %d" % expected_params
+ expected_params = "between %d or %d" % expected_params
else:
# If the number of mandatory parameters doesn't
# suffice, the expected parameters for this
@@ -931,7 +931,7 @@ class SpecialMethodsChecker(BaseChecker):
elif rest < 0:
emit = True
elif rest > 0:
- emit = not ((optional - rest) >= 0 or node.args.vararg)
+ emit = not ((optional - rest) >= 0 or node.args.vararg)
if emit:
verb = "was" if current_params <= 1 else "were"
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index b57820b..9c28aac 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -46,7 +46,7 @@ ABC_METHODS = set(('abc.abstractproperty', 'abc.abstractmethod',
# * tuple: this are the odd ones. Basically it means that the function
# can work with any number of arguments from that tuple,
# although it's best to implement it in order to accept
-# all of them.
+# all of them.
_SPECIAL_METHODS_PARAMS = {
None: ('__new__', '__init__', '__call__'),
@@ -78,7 +78,7 @@ _SPECIAL_METHODS_PARAMS = {
(0, 1): ('__round__', ),
}
-SPECIAL_METHODS_PARAMS = {
+SPECIAL_METHODS_PARAMS = {
name: params
for params, methods in _SPECIAL_METHODS_PARAMS.items()
for name in methods