summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2017-03-08 09:54:07 -0800
committerJoe Stringer <joe@ovn.org>2017-03-09 12:34:54 -0800
commitbddbdd432571d8d37f02f22a5bb6bd0f7f730cb0 (patch)
tree9cac61e8e0eb8bdc66913fe3ab3802178a4cb24f /utilities
parent6fc2799e9e08d990e073225143f6254c39c42baa (diff)
downloadopenvswitch-bddbdd432571d8d37f02f22a5bb6bd0f7f730cb0.tar.gz
checkpatch: Fix running under python3.
Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'utilities')
-rwxr-xr-xutilities/checkpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index e7c1a9ba1..dfe6f9c76 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -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]):