[elbe-devel] [PATCH 4/7] pep8: fix E266 too many leading '#' for block comment

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


this removes useless comments from db.py and updates pycodestyle
statistics to:

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/db.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/elbepack/db.py b/elbepack/db.py
index c7a6ef2d..3f684865 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -583,8 +583,6 @@ class ElbeDB(object):
 
             p.version = xml.text("/project/version")
 
-    ### Version management ###
-
     def list_project_versions(self, builddir):
         with session_scope(self.session) as s:
             try:
@@ -711,8 +709,6 @@ class ElbeDB(object):
                                              ".version.xml")
             return os.path.join(builddir, xmlname)
 
-    ### File management ###
-
     def get_project_files(self, builddir):
         # Can throw: ElbeDBError
         with session_scope(self.session) as s:
@@ -884,8 +880,6 @@ class ElbeDB(object):
 
         return filename
 
-    ### User management ###
-
     def add_user(self, name, fullname, password, email, admin):
         # encrypt is deprecated but hash is not available in jessie
         try:
-- 
2.15.1




More information about the elbe-devel mailing list