Bug 1351031 - Fix flake8 failures in taskcluster/docker; r=me
authorGregory Szorc <gps@mozilla.com>
Wed, 29 Mar 2017 09:25:06 -0700
changeset 350384 4303b5b80d1f203fa1bfffb466f7c7d3ae616f07
parent 350383 a1d6a86da1e37b76d4a7dde5fa29c8f5a07ba36e
child 350385 84030e4cc45fe8a9da7f79e08c87843a712e7bb7
push id39779
push usergszorc@mozilla.com
push dateWed, 29 Mar 2017 16:25:19 +0000
treeherderautoland@4303b5b80d1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1351031
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1351031 - Fix flake8 failures in taskcluster/docker; r=me These are trivial, whitespace only fixups. Self reviewing.
taskcluster/docker/rust-build/repack_rust.py
--- a/taskcluster/docker/rust-build/repack_rust.py
+++ b/taskcluster/docker/rust-build/repack_rust.py
@@ -9,19 +9,21 @@ import argparse
 import os.path
 import re
 import sys
 
 import requests
 import subprocess
 import toml
 
+
 def log(msg):
     print('repack: %s' % msg)
 
+
 def fetch_file(url):
     '''Download a file from the given url if it's not already present.'''
     filename = os.path.basename(url)
     if os.path.exists(filename):
         return
     r = requests.get(url, stream=True)
     r.raise_for_status()
     with open(filename, 'wb') as fd:
@@ -110,17 +112,17 @@ def tar_for_host(host):
 def repack(host, targets, channel='stable', suffix=''):
     log("Repacking rust for %s..." % host)
     url = 'https://static.rust-lang.org/dist/channel-rust-' + channel + '.toml'
     req = requests.get(url)
     req.raise_for_status()
     manifest = toml.loads(req.content)
     if manifest['manifest-version'] != '2':
         log('ERROR: unrecognized manifest version %s.' %
-              manifest['manifest-version'])
+            manifest['manifest-version'])
         return
     log('Using manifest for rust %s as of %s.' % (channel, manifest['date']))
     log('Fetching packages...')
     rustc = fetch_package(manifest, 'rustc', host)
     cargo = fetch_package(manifest, 'cargo', host)
     stds = fetch_std(manifest, targets)
     log('Installing packages...')
     tar_basename = 'rustc-' + host