[elbe-devel] [PATCH 15/25] pylint - esoap: annotate or remove unused-parameters
Manuel Traut
manut at linutronix.de
Wed Aug 29 21:02:45 CEST 2018
annotated ones are there for consinstency between other functions.
url_validation was really unused and therefor removed.
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/daemons/soap/esoap.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index dfed16e0..ccd2139a 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -83,6 +83,7 @@ class ESoap (ServiceBase):
@authenticated_uid
@soap_faults
def get_files(self, uid, builddir, _returns=Array(SoapFile)):
+ #pylint: disable=unused-argument
files = self.app.pm.db.get_project_files(builddir)
return [SoapFile(f) for f in files]
@@ -125,6 +126,7 @@ class ESoap (ServiceBase):
@authenticated_uid
@soap_faults
def get_file(self, uid, builddir, filename, part):
+ #pylint: disable=unused-argument
size = 1024 * 1024 * 5
pos = size * part
file_name = builddir + "/" + filename
@@ -303,6 +305,7 @@ class ESoap (ServiceBase):
@authenticated_uid
@soap_faults
def reset_project(self, uid, builddir):
+ #pylint: disable=unused-argument
self.app.pm.db.reset_project(builddir, True)
@rpc(String)
@@ -326,7 +329,7 @@ class ESoap (ServiceBase):
@rpc(String, _returns=String)
@authenticated_uid
@soap_faults
- def new_project(self, uid, url_validation):
+ def new_project(self, uid):
return self.app.pm.new_project(uid)
@rpc(String, Integer, _returns=String)
@@ -346,6 +349,7 @@ class ESoap (ServiceBase):
@authenticated_uid
@soap_faults
def shutdown_initvm(self, uid):
+ #pylint: disable=unused-argument
system("systemctl --no-block poweroff")
@rpc(String)
@@ -359,6 +363,7 @@ class ESoap (ServiceBase):
@authenticated_uid
@soap_faults
def list_packages(self, uid, builddir):
+ #pylint: disable=unused-argument
s = ''
for _, _, filenames in os.walk(
os.path.join(builddir, "repo/pool/main")):
--
2.18.0
More information about the elbe-devel
mailing list