Bug 1343107 - Fix linter failures r=nthomas a=release
authorRail Aliiev <rail@mozilla.com>
Thu, 02 Mar 2017 22:40:09 -0500
changeset 374733 7217c21ffbc2479d396d4e38b795366d938835d2
parent 374732 72c4674f95b7884b745d5a0bfcf5dcdc6fb0a8c1
child 374734 60be4c3bdc769cf73e4de110817dbb98479ead7d
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnthomas, release
bugs1343107
milestone54.0a1
Bug 1343107 - Fix linter failures r=nthomas a=release MozReview-Commit-ID: B0Z81CkOtIq
taskcluster/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py
taskcluster/docker/funsize-update-generator/scripts/funsize.py
--- a/taskcluster/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py
+++ b/taskcluster/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py
@@ -1,15 +1,14 @@
 #!/usr/bin/env python
 import site
 import os
 import logging
 import argparse
 import json
-import sys
 import hashlib
 import requests
 import tempfile
 from boto.s3.connection import S3Connection
 from mardor.marfile import MarFile
 
 site.addsitedir("/home/worker/tools/lib/python")
 
--- a/taskcluster/docker/funsize-update-generator/scripts/funsize.py
+++ b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
@@ -183,18 +183,18 @@ def main():
     task = json.load(args.task_definition)
     # TODO: verify task["extra"]["funsize"]["partials"] with jsonschema
 
     if args.no_freshclam:
         log.info("Skipping freshclam")
     else:
         log.info("Refreshing clamav db...")
         try:
-            redo.retry(lambda:
-                    sh.freshclam("--stdout", "--verbose", _timeout=300, _err_to_out=True))
+            redo.retry(lambda: sh.freshclam("--stdout", "--verbose",
+                                            _timeout=300, _err_to_out=True))
             log.info("Done.")
         except sh.ErrorReturnCode:
             log.warning("Freshclam failed, skipping DB update")
     manifest = []
     for e in task["extra"]["funsize"]["partials"]:
         for mar in (e["from_mar"], e["to_mar"]):
             verify_allowed_url(mar)