diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-03-30 15:30:05 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-03-30 15:30:05 +0100 |
commit | 062b6c4c9db83c91ef475b09425a1b844d93c72a (patch) | |
tree | 23b9db7a69b773501eb5a27da7a9b547d6e01c48 /util/hgstyle.py | |
parent | 7277defc31e67ffcb8c8d2cb45c2ae235d100ee1 (diff) | |
download | gem5-062b6c4c9db83c91ef475b09425a1b844d93c72a.tar.xz |
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
Diffstat (limited to 'util/hgstyle.py')
0 files changed, 0 insertions, 0 deletions