diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py index 839e190bbd7a00..5056fb3b897d00 100755 --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py @@ -168,7 +168,6 @@ def parse_lines(self, fd, maxlines, fname): self.curline = 0 try: for line in fd: - line = line.decode(locale.getpreferredencoding(False), errors='ignore') self.curline += 1 if self.curline > maxlines: break