diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-28 09:03:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-28 09:03:30 +0300 |
commit | 34ea1cf0b23977ab76b23b06f6ceb1fda5631f88 (patch) | |
tree | fe8ed20a86405a088270ba5e8fef53ae1cb68972 /release | |
parent | 9d3a17922cad62f1f73ba60eef669a091a2b8687 (diff) |
minor changes to the python api.
- pep8 script was giving an error on non utf8 scons source files.
- use PyList_SET_ITEM macro when list type is ensured.
- all mathutils types use subtypes to create new types when available.
- use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.
Diffstat (limited to 'release')
-rw-r--r-- | release/test/pep8.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/test/pep8.py b/release/test/pep8.py index 7909036a5f1..12cdf5c3b60 100644 --- a/release/test/pep8.py +++ b/release/test/pep8.py @@ -47,6 +47,7 @@ def file_list_py(path): def is_pep8(path): + print(path) f = open(path, 'r') for i in range(PEP8_SEEK_COMMENT): line = f.readline() @@ -63,14 +64,16 @@ def main(): files = [] files_skip = [] for f in file_list_py("."): + if [None for prefix in SKIP_PREFIX if f.startswith(prefix)]: + continue + pep8_type = is_pep8(f) if pep8_type: # so we can batch them for each tool. files.append((os.path.abspath(f), pep8_type)) else: - if not [None for prefix in SKIP_PREFIX if f.startswith(prefix)]: - files_skip.append(f) + files_skip.append(f) print("\nSkipping...") for f in files_skip: |