[PATCH] D45765: [LibFuzzer] Unbreak the `trace-malloc-unbalanced.test` when using Python 3.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 23:49:38 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330389: [LibFuzzer] Unbreak the `trace-malloc-unbalanced.test` when using Python 3. (authored by delcypher, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45765?vs=142919&id=143233#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45765
Files:
compiler-rt/trunk/lib/fuzzer/scripts/unbalanced_allocs.py
Index: compiler-rt/trunk/lib/fuzzer/scripts/unbalanced_allocs.py
===================================================================
--- compiler-rt/trunk/lib/fuzzer/scripts/unbalanced_allocs.py
+++ compiler-rt/trunk/lib/fuzzer/scripts/unbalanced_allocs.py
@@ -24,9 +24,9 @@
global _skip
if _skip > 0:
return
- print 'Unbalanced ' + line.rstrip();
+ print('Unbalanced ' + line.rstrip());
for l in stack:
- print l.rstrip()
+ print(l.rstrip())
def ProcessStack(line, f):
stack = []
@@ -63,15 +63,15 @@
return ProcessMalloc(line, f, {})
allocs = {}
- print line.rstrip()
+ print(line.rstrip())
line = f.readline()
while line:
if line.startswith('MallocFreeTracer: STOP'):
global _skip
_skip = _skip - 1
- for _, (l, s) in allocs.iteritems():
+ for _, (l, s) in allocs.items():
PrintStack(l, s)
- print line.rstrip()
+ print(line.rstrip())
return f.readline()
line = ProcessMalloc(line, f, allocs)
return line
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45765.143233.patch
Type: text/x-patch
Size: 1016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/3dc45f56/attachment.bin>
More information about the llvm-commits
mailing list