Commit 8135dccf by Cody Northrop Committed by Commit Bot

Scripts: Update bootstrap.py to python3

Bug: angleproject:5829 Change-Id: I564fadee92b6ff301c055cf95a163ffb3c838685 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2810338Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent b4cb63a5
#!/usr/bin/python2
#!/usr/bin/python3
# Copyright 2015 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
......@@ -18,11 +18,11 @@ def main():
try:
rc = subprocess.call(gclient_cmd, shell=True)
except OSError:
print 'could not run "%s" via shell' % gclient_cmd
print('could not run "%s" via shell' % gclient_cmd)
sys.exit(1)
if rc:
print 'failed command: "%s"' % gclient_cmd
print('failed command: "%s"' % gclient_cmd)
sys.exit(1)
with open('.gclient') as gclient_file:
......@@ -35,7 +35,7 @@ def main():
with open('.gclient', 'w') as gclient_file:
gclient_file.write(content)
print 'created .gclient'
print('created .gclient')
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment