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-02-04 12:27:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-04 12:27:25 +0300
commit736a7b7a2280a843686b7699fc9d96915801a459 (patch)
treec3e584113a39628225d9b2cac16d414258a5921a /source/tests/pep8.py
parentf0eb3b56de1456b973098640b7eda47c7e1d58a0 (diff)
pep8 cleanup
Diffstat (limited to 'source/tests/pep8.py')
-rw-r--r--source/tests/pep8.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/tests/pep8.py b/source/tests/pep8.py
index 2932d55d815..ee71c877533 100644
--- a/source/tests/pep8.py
+++ b/source/tests/pep8.py
@@ -50,6 +50,12 @@ 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)
+
+ # templates dont have a header but should be pep8
+ for d in ("presets", "templates", "examples"):
+ if ("%s%s%s" % (os.sep, d, os.sep)) in path:
+ return 1
+
f = open(path, 'r', encoding="utf8")
for i in range(PEP8_SEEK_COMMENT):
line = f.readline()