[Reproducible-commits] [misc] 03/03: clean-notes: pep8 stuff

Mattia Rizzolo mattia at mapreri.org
Sat Sep 12 13:12:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

mapreri-guest pushed a commit to branch master
in repository misc.

commit 2f015688b510b841fd08dad3ad09d588c269baf8
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Sep 12 13:12:13 2015 +0000

    clean-notes: pep8 stuff
---
 clean-notes | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/clean-notes b/clean-notes
index b57fa7f..dd3e119 100755
--- a/clean-notes
+++ b/clean-notes
@@ -182,7 +182,7 @@ def start_udd_connection():
                 raise
     except:
         log.exception('Erorr connecting to the UDD database replica.' +
-                  'The full error is:')
+                      'The full error is:')
         log.error('Failing nicely anyway, all queries will return an empty ' +
                   'response.')
         return None
@@ -200,8 +200,8 @@ def query_udd(query):
     try:
         cursor.execute(query)
     except:
-        log.exception('The UDD server encountered a issue while executing the ' +
-                  'query. The full error is:')
+        log.exception('The UDD server encountered a issue while executing the'
+                      ' query. The full error is:')
         log.error('Failing nicely anyway, returning an empty response.')
         return []
     return cursor.fetchall()
@@ -241,13 +241,14 @@ def load_reproducible_status():
 
     return status
 
+
 def load_notes():
     try:
         with open(NOTES_YAML, encoding='utf-8') as f:
             return yaml.safe_load(f)
     except FileNotFoundError:
-        log.error('%s has not been found in your current directory.  Please cd'
-                  ' to the notes directory', NOTES_YAML)
+        log.error('%s has not been found in your current directory.  Please '
+                  'cd to the notes directory', NOTES_YAML)
         sys.exit(1)
 
 
@@ -287,7 +288,7 @@ def check_bugs(notes):
         # have to look up 1-tuples with the bug number in the list
         if (bug,) not in rows:
             log.info("https://bugs.debian.org/%s in package %s"
-                "is not usertagged", bug, bugs_package[bug])
+                     "is not usertagged", bug, bugs_package[bug])
 
 
 def find_old_notes(testedpkgs, notes):
@@ -347,10 +348,10 @@ def get_bugs():
 
 
 def detect_archived_bugs(notes):
-    query = 'SELECT u.id ' + \
-            'FROM bugs_usertags AS u JOIN archived_bugs AS a ON u.id=a.id ' + \
+    query = 'SELECT u.id ' \
+            'FROM bugs_usertags AS u JOIN archived_bugs AS a ON u.id=a.id ' \
             "WHERE u.email='reproducible-builds at lists.alioth.debian.org'"
-    rows = [x[0] for x  in query_udd(query)]
+    rows = [x[0] for x in query_udd(query)]
     for pkg in sorted(notes.keys()):
         try:
             for bug in notes[pkg]['bugs']:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list