[libcxx] r252458 - Make check-libcxx Py3-compatible.
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 02:55:04 PST 2015
Author: chapuni
Date: Mon Nov 9 04:55:04 2015
New Revision: 252458
URL: http://llvm.org/viewvc/llvm-project?rev=252458&view=rev
Log:
Make check-libcxx Py3-compatible.
Modified:
libcxx/trunk/test/libcxx/test/tracing.py
Modified: libcxx/trunk/test/libcxx/test/tracing.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/tracing.py?rev=252458&r1=252457&r2=252458&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/tracing.py (original)
+++ libcxx/trunk/test/libcxx/test/tracing.py Mon Nov 9 04:55:04 2015
@@ -11,14 +11,14 @@ def trace_function(function, log_calls,
# Perform the call itself, logging before, after, and anything thrown.
try:
if log_calls:
- print '{}: Calling {}'.format(label, call_str)
+ print('{}: Calling {}'.format(label, call_str))
res = function(*args, **kwargs)
if log_results:
- print '{}: {} -> {}'.format(label, call_str, res)
+ print('{}: {} -> {}'.format(label, call_str, res))
return res
except Exception as ex:
if log_results:
- print '{}: {} raised {}'.format(label, call_str, type(ex))
+ print('{}: {} raised {}'.format(label, call_str, type(ex)))
raise ex
return wrapper
More information about the cfe-commits
mailing list