Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-25 04:51:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-25 04:51:28 +0300
commit27cb6218a34a440a83c3b275e3cf69ea79245a1e (patch)
tree95652627317f61e5109777e030bbb7f81203ba3f /source/tests
parent8e83dd0933cc02683ebbd9d8a9471b07f62dad55 (diff)
fix [#25778] Memoryblock Data from SCR: end corrupt
+ other minor changes.
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/pep8.py2
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()