From 27cb6218a34a440a83c3b275e3cf69ea79245a1e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 25 Jan 2011 01:51:28 +0000 Subject: fix [#25778] Memoryblock Data from SCR: end corrupt + other minor changes. --- source/tests/pep8.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/tests') diff --git a/source/tests/pep8.py b/source/tests/pep8.py index 3ccd7dd79b6..2932d55d815 100644 --- a/source/tests/pep8.py +++ b/source/tests/pep8.py @@ -48,6 +48,8 @@ def file_list_py(path): def is_pep8(path): print(path) + if open(path, 'rb').read(3) == b'\xef\xbb\xbf': + print("\nfile contains BOM, remove first 3 bytes: %r\n" % path) f = open(path, 'r', encoding="utf8") for i in range(PEP8_SEEK_COMMENT): line = f.readline() -- cgit v1.2.3