diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-25 04:51:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-25 04:51:28 +0300 |
commit | 27cb6218a34a440a83c3b275e3cf69ea79245a1e (patch) | |
tree | 95652627317f61e5109777e030bbb7f81203ba3f /source/tests/pep8.py | |
parent | 8e83dd0933cc02683ebbd9d8a9471b07f62dad55 (diff) |
fix [#25778] Memoryblock Data from SCR: end corrupt
+ other minor changes.
Diffstat (limited to 'source/tests/pep8.py')
-rw-r--r-- | source/tests/pep8.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |