[elbe-devel] [PATCH 07/40] pylint: disable too many arguments error

Manuel Traut manut at linutronix.de
Fri Sep 14 13:56:19 CEST 2018


we don't want to disable the check globally because than we get no
warnings for new code.

the existing code could be fixed later.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/daemons/soap/authentication.py | 2 ++
 elbepack/daemons/soap/faults.py         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/elbepack/daemons/soap/authentication.py b/elbepack/daemons/soap/authentication.py
index 5e42fb3d..76946cbc 100644
--- a/elbepack/daemons/soap/authentication.py
+++ b/elbepack/daemons/soap/authentication.py
@@ -78,6 +78,7 @@ def authenticated_uid(func):
     elif func.__code__.co_argcount == 7:
         @wraps(func)
         def wrapped(self, arg1, arg2, arg3, arg4, arg5):
+            # pylint: disable=too-many-arguments
             s = self.transport.req_env['beaker.session']
             try:
                 uid = s['userid']
@@ -145,6 +146,7 @@ def authenticated_admin(func):
     elif func.__code__.co_argcount == 6:
         @wraps(func)
         def wrapped(self, arg1, arg2, arg3, arg4, arg5):
+            # pylint: disable=too-many-arguments
             s = self.transport.req_env['beaker.session']
             try:
                 uid = s['userid']
diff --git a/elbepack/daemons/soap/faults.py b/elbepack/daemons/soap/faults.py
index c56d1bd0..1ed46e19 100644
--- a/elbepack/daemons/soap/faults.py
+++ b/elbepack/daemons/soap/faults.py
@@ -175,6 +175,7 @@ def soap_faults(func):
     if func.__code__.co_argcount == 6:
         @wraps(func)
         def wrapped(self, arg1, arg2, arg3, arg4, arg5):
+            # pylint: disable=too-many-arguments
             try:
                 return func(self, arg1, arg2, arg3, arg4, arg5)
             except InvalidState as e:
@@ -195,6 +196,7 @@ def soap_faults(func):
     if func.__code__.co_argcount == 7:
         @wraps(func)
         def wrapped(self, arg1, arg2, arg3, arg4, arg5, arg6):
+            # pylint: disable=too-many-arguments
             try:
                 return func(self, arg1, arg2, arg3, arg4, arg5, arg6)
             except InvalidState as e:
-- 
2.19.0.rc2




More information about the elbe-devel mailing list