[elbe-devel] [PATCH v2 2/4] pylint esoap: fix pycodestyle issues

Torben Hohn torben.hohn at linutronix.de
Fri Nov 23 12:17:22 CET 2018


pycodestyle complains:

elbepack/daemons/soap/esoap.py:84:16: E231 missing whitespace after ','
elbepack/daemons/soap/esoap.py:84:23: E231 missing whitespace after ','
elbepack/daemons/soap/esoap.py:84:30: E231 missing whitespace after ','
elbepack/daemons/soap/esoap.py:84:37: E231 missing whitespace after ','
elbepack/daemons/soap/esoap.py:103:9: E265 block comment should start with '# '
elbepack/daemons/soap/esoap.py:146:9: E265 block comment should start with '# '
elbepack/daemons/soap/esoap.py:325:9: E265 block comment should start with '# '
elbepack/daemons/soap/esoap.py:369:9: E265 block comment should start with '# '
elbepack/daemons/soap/esoap.py:383:9: E265 block comment should start with '# '

fix em

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/daemons/soap/esoap.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 8edaf3ca..83afda7f 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -92,7 +92,7 @@ class ESoap (ServiceBase):
 
         return SoapCmdReply(ret, out)
 
-    @rpc(String,String,String,String,Boolean)
+    @rpc(String, String, String, String, Boolean)
     @soap_faults
     @authenticated_admin
     def add_user(self, name, fullname, password, email, admin):
@@ -111,7 +111,7 @@ class ESoap (ServiceBase):
     @authenticated_uid
     @soap_faults
     def get_files(self, uid, builddir, _returns=Array(SoapFile)):
-        #pylint: disable=unused-argument
+        # pylint: disable=unused-argument
         files = self.app.pm.db.get_project_files(builddir)
         return [SoapFile(f) for f in files]
 
@@ -154,7 +154,7 @@ class ESoap (ServiceBase):
     @authenticated_uid
     @soap_faults
     def get_file(self, uid, builddir, filename, part):
-        #pylint: disable=unused-argument
+        # pylint: disable=unused-argument
         size = 1024 * 1024 * 5
         pos = size * part
         file_name = builddir + "/" + filename
@@ -333,7 +333,7 @@ class ESoap (ServiceBase):
     @authenticated_uid
     @soap_faults
     def reset_project(self, uid, builddir):
-        #pylint: disable=unused-argument
+        # pylint: disable=unused-argument
         self.app.pm.db.reset_project(builddir, True)
 
     @rpc(String)
@@ -377,7 +377,7 @@ class ESoap (ServiceBase):
     @authenticated_uid
     @soap_faults
     def shutdown_initvm(self, uid):
-        #pylint: disable=unused-argument
+        # pylint: disable=unused-argument
         system("systemctl --no-block poweroff")
 
     @rpc(String)
@@ -391,7 +391,7 @@ class ESoap (ServiceBase):
     @authenticated_uid
     @soap_faults
     def list_packages(self, uid, builddir):
-        #pylint: disable=unused-argument
+        # pylint: disable=unused-argument
         s = ''
         for _, _, filenames in os.walk(
                 os.path.join(builddir, "repo/pool/main")):
-- 
2.11.0




More information about the elbe-devel mailing list