summaryrefslogtreecommitdiff
path: root/build/vs_toolchain.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/vs_toolchain.py')
-rwxr-xr-xbuild/vs_toolchain.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py
index 83847f4566..dc1e0f09a1 100755
--- a/build/vs_toolchain.py
+++ b/build/vs_toolchain.py
@@ -164,7 +164,7 @@ def _CopyRuntimeImpl(target, source, verbose=True):
(not os.path.isfile(target) or
abs(os.stat(target).st_mtime - os.stat(source).st_mtime) >= 0.01)):
if verbose:
- print 'Copying %s to %s...' % (source, target)
+ print('Copying %s to %s...' % (source, target))
if os.path.exists(target):
# Make the file writable so that we can delete it now, and keep it
# readable.
@@ -362,7 +362,7 @@ def Update(force=False):
information required to pass to gyp which we use in |GetToolchainDir()|.
"""
if force != False and force != '--force':
- print >>sys.stderr, 'Unknown parameter "%s"' % force
+ print('Unknown parameter "%s"' % force, file=sys.stderr)
return 1
if force == '--force' or os.path.exists(json_data_file):
force = True
@@ -442,7 +442,7 @@ def GetToolchainDir():
runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
win_sdk_dir = SetEnvironmentAndGetSDKDir()
- print '''vs_path = %s
+ print('''vs_path = %s
sdk_path = %s
vs_version = %s
wdk_dir = %s
@@ -452,7 +452,7 @@ runtime_dirs = %s
ToGNString(win_sdk_dir),
ToGNString(GetVisualStudioVersion()),
ToGNString(NormalizePath(os.environ.get('WDK_DIR', ''))),
- ToGNString(os.path.pathsep.join(runtime_dll_dirs or ['None'])))
+ ToGNString(os.path.pathsep.join(runtime_dll_dirs or ['None']))))
def main():
@@ -462,7 +462,7 @@ def main():
'copy_dlls': CopyDlls,
}
if len(sys.argv) < 2 or sys.argv[1] not in commands:
- print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands)
+ print('Expected one of: %s' % ', '.join(commands), file=sys.stderr)
return 1
return commands[sys.argv[1]](*sys.argv[2:])