Index: lnt/testing/profile/profilev2impl.py =================================================================== --- lnt/testing/profile/profilev2impl.py +++ lnt/testing/profile/profilev2impl.py @@ -540,7 +540,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): Index: lnt/tests/nt.py =================================================================== --- lnt/tests/nt.py +++ lnt/tests/nt.py @@ -772,7 +772,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')