[PATCH] D67812: [LNT] Python 3 support: Get next element with next builtin
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 00:46:19 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL372552: [LNT] Python 3 support: Get next element with next builtin (authored by thopre, committed by ).
Herald added a project: LLVM.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67812/new/
https://reviews.llvm.org/D67812
Files:
lnt/trunk/lnt/testing/profile/profilev2impl.py
lnt/trunk/lnt/tests/nt.py
Index: lnt/trunk/lnt/tests/nt.py
===================================================================
--- lnt/trunk/lnt/tests/nt.py
+++ lnt/trunk/lnt/tests/nt.py
@@ -773,7 +773,7 @@
reader_it = iter(csv.reader(report_file))
# Get the header.
- header = reader_it.next()
+ header = next(reader_it)
if header[0] != 'Program':
fatal('unexpected report file, missing header')
Index: lnt/trunk/lnt/testing/profile/profilev2impl.py
===================================================================
--- lnt/trunk/lnt/testing/profile/profilev2impl.py
+++ lnt/trunk/lnt/testing/profile/profilev2impl.py
@@ -541,7 +541,7 @@
address_gen = self.line_addresses.extractForFunction(fname)
text_gen = self.line_text.extractForFunction(fname)
for n in xrange(f['length']):
- yield (counter_gen.next(), address_gen.next(), text_gen.next())
+ yield (next(counter_gen), next(address_gen), next(text_gen))
def copy(self, counter_name_pool, line_counters,
line_addresses, line_text):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67812.221261.patch
Type: text/x-patch
Size: 1067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190923/1aa37d44/attachment.bin>
More information about the llvm-commits
mailing list