mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
checkpatch: Fix running under python3.
Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
This commit is contained in:
@@ -182,7 +182,7 @@ def ovs_checkpatch_parse(text):
|
||||
re.I | re.M | re.S)
|
||||
skip_line_length_check = False
|
||||
|
||||
for line in text.split('\n'):
|
||||
for line in text.decode().split('\n'):
|
||||
if current_file != previous_file:
|
||||
previous_file = current_file
|
||||
if any([fmt in current_file for fmt in line_length_blacklist]):
|
||||
|
Reference in New Issue
Block a user