2
0
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:
Joe Stringer
2017-03-08 09:54:07 -08:00
parent 6fc2799e9e
commit bddbdd4325

View File

@@ -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]):