mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
patman: Don't report unicode character
Unicode characters may appear in input patches so we should not warn about them. Drop this warning. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
@@ -308,15 +308,6 @@ class PatchStream:
|
|||||||
|
|
||||||
# Well that means this is an ordinary line
|
# Well that means this is an ordinary line
|
||||||
else:
|
else:
|
||||||
pos = 1
|
|
||||||
# Look for ugly ASCII characters
|
|
||||||
for ch in line:
|
|
||||||
# TODO: Would be nicer to report source filename and line
|
|
||||||
if ord(ch) > 0x80:
|
|
||||||
self.warn.append("Line %d/%d ('%s') has funny ascii char" %
|
|
||||||
(self.linenum, pos, line))
|
|
||||||
pos += 1
|
|
||||||
|
|
||||||
# Look for space before tab
|
# Look for space before tab
|
||||||
m = re_space_before_tab.match(line)
|
m = re_space_before_tab.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
Reference in New Issue
Block a user