[Git][reproducible-builds/reproducible-misc][master] 2 commits: Use more Pythonic """ (over ''')

Chris Lamb gitlab at salsa.debian.org
Wed May 16 19:01:55 CEST 2018


Chris Lamb pushed to branch master at Reproducible Builds / reproducible-misc


Commits:
77337b2c by Chris Lamb at 2018-05-16T17:50:01+02:00
Use more Pythonic """ (over ''')

- - - - -
6583a90f by Chris Lamb at 2018-05-16T17:50:36+02:00
Appease flake8.

- - - - -


1 changed file:

- schedule


Changes:

=====================================
schedule
=====================================
--- a/schedule
+++ b/schedule
@@ -12,9 +12,9 @@ from rblib.certs import Certs
 
 
 def whoami():
-    '''
+    """
     debugging function: check whether auth succeed
-    '''
+    """
     certs = Certs.from_browser()
     with certs.requests() as req:
         res = req.get("https://nm.debian.org/api/whoami")
@@ -28,11 +28,13 @@ def send_req(args):
         ret = res.status_code
         if ret == retcodes.ok:
             print('Scheduling successful!')
-            if args.debug: print(res.text)
+            if args.debug:
+                print(res.text)
         elif ret == retcodes.bad:
             print('Validation error!')
             print(res.headers['X-Error-Message'])
-            if args.debug: print(res.text)
+            if args.debug:
+                print(res.text)
         elif ret == 520:
             print('Unknown error while scheduling, check the output below')
             print(res.text)
@@ -49,7 +51,8 @@ if __name__ == '__main__':
     )
     parser.add_argument(
         '-d', '--debug',
-        help='dump the text from the scheduler also when otherwise not needed.',
+        help='dump the text from the scheduler also when otherwise '
+             'not needed.',
         action='store_true',
     )
     args, remote_args = parser.parse_known_args()



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-misc/compare/86ded37804540b905f5d2bbb13f606a8bd025693...6583a90fd4915b7892328473d3e793a0cf770e90

---
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-misc/compare/86ded37804540b905f5d2bbb13f606a8bd025693...6583a90fd4915b7892328473d3e793a0cf770e90
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180516/81a0e144/attachment.html>


More information about the rb-commits mailing list