Provingground: fix syntax error in transporter.py
As is, running the transporter.py code produces
"SyntaxError: invalid syntax". Add in missing ':'.
Also fix things pylint is complaining about.
BUG=None
TEST=ran it
Change-Id: Id19e4d4990027da86f4880d257302c0779c116ca
Reviewed-on: https://chromium-review.googlesource.com/305211
Commit-Ready: Katherine Threlkeld <kathrelkeld@chromium.org>
Tested-by: Katherine Threlkeld <kathrelkeld@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
diff --git a/provingground/transporter.py b/provingground/transporter.py
index 5d86f5a..10bb622 100755
--- a/provingground/transporter.py
+++ b/provingground/transporter.py
@@ -1,13 +1,16 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# Transporter copies logs file to GS storage.
+"""Transporter copies log files to GS storage.
-# Must be a member of "chromiumos-test-logs-ninja" group or will get
-# "Access Denied" error from gsutil.
+Must be a member of "chromiumos-test-logs-ninja" group or will get
+"Access Denied" error from gsutil.
+"""
+
+from __future__ import print_function
import argparse
import os
@@ -40,7 +43,7 @@
arguments = parser.parse_args()
if [arguments.broadcom, arguments.imgtech,
- arguments.intel, arguments.marvell].count(True) > 1
+ arguments.intel, arguments.marvell].count(True) > 1:
print('Error: logs can be uploaded only for one partner.')
return 1