[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] flak8

Mattia Rizzolo gitlab at salsa.debian.org
Thu Apr 4 10:58:31 BST 2019



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
31f0e955 by Mattia Rizzolo at 2019-04-04T09:58:19Z
flak8

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/email2irc.py


Changes:

=====================================
bin/email2irc.py
=====================================
@@ -18,7 +18,7 @@ from email.utils import getaddresses, parseaddr
 parser = argparse.ArgumentParser()
 parser.add_argument('-n', '--dry-run', action='store_true')
 parser.add_argument('origin_file', metavar='email',
-        help='file containing the email to be relayed to IRC')
+                    help='file containing the email to be relayed to IRC')
 args = parser.parse_args()
 
 
@@ -114,8 +114,7 @@ Subject:    {subject}
 First line: {fline}
 IRC msg:    {ircmsg}
 .'''.format(date=date, jenkins_job=jenkins_job, channels=channels,
-    subject=subject, fline=fline, ircmsg=ircmsg)
-)
+            subject=subject, fline=fline, ircmsg=ircmsg))
 
 if args.dry_run:
     print('Running in dry-run mode, not actually notifying kgb')
@@ -126,10 +125,10 @@ for ch in channels:
     print('Noifying kgb for {}...'.format(ch))
     try:
         p = run(['kgb-client', '--conf', '/srv/jenkins/kgb/{}.conf'.format(ch),
-            '--relay-msg', ircmsg], check=True)
+                 '--relay-msg', ircmsg], check=True)
     except CalledProcessError as p:
         print('E: kgb-client returned an error (code {})'.format(p.returncode),
-                file=sys.stderr)
+              file=sys.stderr)
     else:
         print('kgb informed successfully')
     finally:



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/31f0e955eb51c5099cddca2229a3e0a5b15033d1

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/31f0e955eb51c5099cddca2229a3e0a5b15033d1
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190404/82f24b42/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list