[elbe-devel] [PATCH 2/7] pep8: fix E211 whitespace before '('

Manuel Traut manut at linutronix.de
Wed Dec 20 22:11:42 CET 2017


this updates pycodestyle statistics to:

6       E265 block comment should start with '# '
3       E266 too many leading '#' for block comment
2       E402 module level import not at top of file
98      E501 line too long (82 > 79 characters)
7       E741 ambiguous variable name 'l'

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/commands/validate.py |  2 +-
 elbepack/initvmaction.py      | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/elbepack/commands/validate.py b/elbepack/commands/validate.py
index dea91378..589ed2d7 100644
--- a/elbepack/commands/validate.py
+++ b/elbepack/commands/validate.py
@@ -25,7 +25,7 @@ def run_command(argv):
         sys.exit(20)
 
     if not os.path.exists(args[0]):
-        print ("%s - file not found" % args[0])
+        print("%s - file not found" % args[0])
         oparser.print_help()
         sys.exit(20)
 
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 0015db92..92899930 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -240,7 +240,7 @@ class CreateAction(InitVMAction):
                 tmp = TmpdirFilesystem()
                 os.system('7z x -o%s "%s" source.xml' % (tmp.path, args[0]))
 
-                print ('', file=sys.stderr)
+                print('', file=sys.stderr)
 
                 if not tmp.isfile('source.xml'):
                     print(
@@ -425,7 +425,7 @@ class CreateAction(InitVMAction):
                 print("Giving up", file=sys.stderr)
                 sys.exit(20)
 
-            print ("Build started, waiting till it finishes")
+            print("Build started, waiting till it finishes")
 
             try:
                 system('%s control wait_busy "%s"' % (elbe_exe, prjdir))
@@ -472,9 +472,9 @@ class CreateAction(InitVMAction):
                     'Get Files with: elbe control get_file "%s" <filename>' %
                     prjdir)
             else:
-                print ("")
-                print ("Getting generated Files")
-                print ("")
+                print("")
+                print("Getting generated Files")
+                print("")
 
                 ensure_outdir(wdfs, opt)
 
@@ -491,8 +491,8 @@ class CreateAction(InitVMAction):
                         system('%s control del_project "%s"' % (
                             elbe_exe, prjdir))
                     except CommandError:
-                        print ("remove project from initvm failed",
-                               file=sys.stderr)
+                        print("remove project from initvm failed",
+                              file=sys.stderr)
                         sys.exit(20)
 
 
-- 
2.15.1




More information about the elbe-devel mailing list