Permalink
Browse files

Run 2to3 on devtools/completion.py so opy/build.sh works again

  • Loading branch information...
Andy Chu
Andy Chu committed Jun 25, 2018
1 parent 14df02e commit d032351dcb20b050efbf0d83a362dad3c4d10832
Showing with 4 additions and 3 deletions.
  1. +4 −3 devtools/completion.py
View
@@ -1,4 +1,5 @@
#!/usr/bin/python -S
from __future__ import print_function
"""
completion.py
"""
@@ -29,7 +30,7 @@ def ParsePythonTest(f):
match = METHOD_RE.match(line)
if match and current_test is not None:
print '%s.%s' % (current_test, match.group(1))
print('%s.%s' % (current_test, match.group(1)))
# e.g. foo() {
FUNC_RE = re.compile(r'^\s* (\S+) \(\) \s* \{', re.VERBOSE)
@@ -50,7 +51,7 @@ def MaybeParseBashActions(f):
if dispatch:
for action in actions:
print action
print(action)
def main(argv):
@@ -82,5 +83,5 @@ def main(argv):
try:
sys.exit(main(sys.argv))
except Error, e:
print >> sys.stderr, e.args[0]
print(e.args[0], file=sys.stderr)
sys.exit(1)

0 comments on commit d032351

Please sign in to comment.