mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
checkpatch: Fix handling of line endings.
Unlike manual splitting, 'splitlines' correctly handles different line endings. Without this change script fails to check files with '\r\n' endings treating the whole patch as a header. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -725,7 +725,7 @@ def ovs_checkpatch_parse(text, filename, author=None, committer=None):
|
||||
|
||||
reset_counters()
|
||||
|
||||
for line in text.split('\n'):
|
||||
for line in text.splitlines():
|
||||
if current_file != previous_file:
|
||||
previous_file = current_file
|
||||
|
||||
|
Reference in New Issue
Block a user