Skip to content

Commit 60f8307

Browse files
flere114Commit Bot
authored and
Commit Bot
committed
tigertool: Migrate tigertool.py to python2/3 compatible
BUG=chromium:1031705 BRANCH=master TEST=None Signed-off-by: kerker <[email protected]> Change-Id: I50b9aa6724bc6d9db5c7f743909d81c0b2dfc849 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2431319 Reviewed-by: Daisuke Nojiri <[email protected]> Reviewed-by: Jack Rosenthal <[email protected]>
1 parent 9b85ad1 commit 60f8307

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extra/tigertool/tigertool.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python
22
# Copyright 2017 The Chromium OS Authors. All rights reserved.
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

66
"""Script to control tigertail USB-C Mux board."""
77

8+
# Note: This is a py2/3 compatible file.
9+
810
import argparse
911
import sys
1012
import time
@@ -125,7 +127,7 @@ def do_power(count, bus, pty):
125127
'Power : \S+ \S+ (\d+) mW\s+' \
126128
'Current : \S+ \S+ (\d+) mA'
127129

128-
for i in xrange(0, count):
130+
for i in range(0, count):
129131
results = pty._issue_cmd_get_results(cmd, [regex])[0]
130132
c.log('%.2f,\t%s,\t%s\t%s' % (time.time() - start,
131133
results[1], results[2], results[3]))

0 commit comments

Comments
 (0)