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>2018-07-03 07:47:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-03 07:55:02 +0300
commit8c15d612a5cdfe39233c7f2b7556742091c82558 (patch)
tree248e7611f9245c1796515baef2ace410bf896c9d /source/blender/python
parentb66aa0b0a6b123e833d4038a77a5d3f04c37a9a0 (diff)
Cleanup: pep8
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/rna_dump.py5
-rw-r--r--source/blender/python/simple_enum_gen.py6
2 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/python/rna_dump.py b/source/blender/python/rna_dump.py
index 7259ceb67a0..3c09175910e 100644
--- a/source/blender/python/rna_dump.py
+++ b/source/blender/python/rna_dump.py
@@ -129,6 +129,7 @@ def seek(r, txt, recurs):
newtxt = txt + '[' + str(i) + ']'
seek(r[i], newtxt, recurs + 1)
+
seek(bpy.data, 'bpy.data', 0)
# seek(bpy.types, 'bpy.types', 0)
'''
@@ -140,8 +141,8 @@ for d in dir(bpy.types):
seek(r, 'bpy.types.' + d + '.bl_rna', 0)
'''
-#print dir(bpy)
+# print dir(bpy)
#import sys
-#sys.exit()
+# sys.exit()
print("iter over ", seek_count, "rna items")
diff --git a/source/blender/python/simple_enum_gen.py b/source/blender/python/simple_enum_gen.py
index 1c68a7c0e7a..8ac5c782821 100644
--- a/source/blender/python/simple_enum_gen.py
+++ b/source/blender/python/simple_enum_gen.py
@@ -50,8 +50,10 @@ for d in defs.split('\n'):
if not w:
continue
- try: w.remove("#define")
- except: pass
+ try:
+ w.remove("#define")
+ except:
+ pass
# print w