Commits

Geoffrey Sneddon  committed 8d90a26

Use a list instead of a generator here (the performance penalty is around nothing), start work towards Py2.3 support.

  • Participants
  • Parent commits bf926a2

Comments (0)

Files changed (1)

File anolislib/processes/toc.py

 						# We don't want the old tail (or any tail, for that matter)
 						link.tail = None
 			# Add subsections in reverse order (so the next one is executed next) with a higher depth value
-			sections.extend((child_section, depth + 1) for child_section in reversed(section))
+			sections.extend([(child_section, depth + 1) for child_section in reversed(section)])
 		# Remove all the elements in the list of nodes to remove
 		for element in to_remove:
 			element.getparent().remove(element)