diff options
Diffstat (limited to 'utilities/checkpatch.py')
-rwxr-xr-x | utilities/checkpatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index b45a255ce..dbbab3d11 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpatch.py @@ -320,7 +320,7 @@ def ovs_checkpatch_parse(text, filename): is_co_author = re.compile(r'(\s*(Co-authored-by: )(.*))$', re.I | re.M | re.S) - for line in text.decode(errors='ignore').split('\n'): + for line in text.split('\n'): if current_file != previous_file: previous_file = current_file @@ -418,7 +418,7 @@ def ovs_checkpatch_file(filename): for part in mail.walk(): if part.get_content_maintype() == 'multipart': continue - result = ovs_checkpatch_parse(part.get_payload(decode=True), filename) + result = ovs_checkpatch_parse(part.get_payload(decode=False), filename) if result < 0: print("Lines checked: %d, Warnings: %d, Errors: %d" % (total_line, __warnings, __errors)) |