aboutsummaryrefslogtreecommitdiff
path: root/produce_output.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-01-13 09:48:29 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-22 19:30:55 +0000
commit88272d479f2761cc1906fea564c73033f77a6270 (patch)
tree4da9c114d64522f59494a908cf9a85b09c994d32 /produce_output.py
parent439f2b77c86987362f53bd4f6e39896aa6d77f66 (diff)
downloadtoolchain-utils-88272d479f2761cc1906fea564c73033f77a6270.tar.gz
Fix cros lint errors.
Also move deprecated scripts to the 'deprecated' directory. BUG=chromiumos:570464 TEST=tested scripts to make sure they still work. Change-Id: I3442a86d898104591233a0849ea0bafb52ecf1f7 Reviewed-on: https://chrome-internal-review.googlesource.com/244221 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'produce_output.py')
-rwxr-xr-xproduce_output.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/produce_output.py b/produce_output.py
index 99e48e96..30deea8c 100755
--- a/produce_output.py
+++ b/produce_output.py
@@ -1,33 +1,27 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""This simulates a real job by producing a lot of output.
"""
+from __future__ import print_function
+
__author__ = 'asharif@google.com (Ahmad Sharif)'
-import optparse
-import os
-import re
-import sys
import time
-from utils import command_executer
-def Main(argv):
+def Main():
"""The main function."""
- parser = optparse.OptionParser()
-
- (options, args) = parser.parse_args(argv)
for j in range(10):
for i in range(10000):
- print str(j) + 'The quick brown fox jumped over the lazy dog.' + str(i)
+ print(str(j) + 'The quick brown fox jumped over the lazy dog.' + str(i))
time.sleep(60)
return 0
if __name__ == '__main__':
- Main(sys.argv)
+ Main()