style: Change include sorter to yield one line at a time
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:30:05 +0000 (15:30 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:30:05 +0000 (15:30 +0100)
commit062b6c4c9db83c91ef475b09425a1b844d93c72a
tree23b9db7a69b773501eb5a27da7a9b547d6e01c48
parent7277defc31e67ffcb8c8d2cb45c2ae235d100ee1
style: Change include sorter to yield one line at a time

The include sorter class normally yields one string per line and
relies on the caller to merge lines into a block of text separated by
newlines. However, there are cases when this isn't true. This makes
diffing using Python's difflib hard. This changeset updates the
include sorter to never do this and always yield one line at a time.

Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Steve Reinhardt <steve.reinhardt@amd.com>
--HG--
extra : rebase_source : 154c9c7e1ebdd77e09fe5f28d0cfddc9e6c6b1eb
util/sort_includes.py