2
0
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:
Ilya Maximets
2019-04-15 16:36:54 +03:00
committed by Ben Pfaff
parent ead94250e3
commit 4bee6d8b03

View File

@@ -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