aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/scripts
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-03-26 13:14:00 -0400
committerGennadiy Civil <misterg@google.com>2018-03-26 13:14:00 -0400
commita75a5c9706b46285620cb81774ef94bb1e3aacea (patch)
tree2fee61fd23e18c884a935ae82f4c74a806102909 /googletest/scripts
parenta0e2faf480e1212f7dff118694799ad40f3bd46d (diff)
downloadgoogletest-a75a5c9706b46285620cb81774ef94bb1e3aacea.tar.gz
googletest-a75a5c9706b46285620cb81774ef94bb1e3aacea.tar.bz2
googletest-a75a5c9706b46285620cb81774ef94bb1e3aacea.zip
merges 1
Diffstat (limited to 'googletest/scripts')
-rwxr-xr-xgoogletest/scripts/gen_gtest_pred_impl.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/googletest/scripts/gen_gtest_pred_impl.py b/googletest/scripts/gen_gtest_pred_impl.py
index 58d6dc31..b43efdf4 100755
--- a/googletest/scripts/gen_gtest_pred_impl.py
+++ b/googletest/scripts/gen_gtest_pred_impl.py
@@ -305,7 +305,6 @@ def GenerateFile(path, content):
overwrites it with the given content.
"""
print 'Updating file %s . . .' % path
-
f = file(path, 'w+')
print >>f, content,
f.close()
@@ -428,7 +427,7 @@ def TestsForArity(n):
}
tests = (
- """// Sample functions/functors for testing %(arity)s predicate assertions.
+"""// Sample functions/functors for testing %(arity)s predicate assertions.
// A %(arity)s predicate function.
template <%(types)s>
@@ -589,7 +588,7 @@ typedef Predicate%(n)sTest ASSERT_PRED%(n)sTest;
if use_assert:
assrt = 'ASSERT' # 'assert' is reserved, so we cannot use
- # that identifier here.
+ # that identifier here.
else:
assrt = 'EXPECT'