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): 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')