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>2009-10-31 22:31:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-10-31 22:31:45 +0300
commitf9b19d54b5a07c5d654ecb634aefc5690e07e6fd (patch)
tree746a80208ae1b0a3b98c678af45d37fe26c28325 /source/blender/python/simple_enum_gen.py
parentaf72bb50ae41f5ba1f9f5b2310b2aee77907fecf (diff)
tabs to spaces, remove trailing white space. (apart of pep8)
didnt do "release/scripts/io" since some exporters cant be auto converted
Diffstat (limited to 'source/blender/python/simple_enum_gen.py')
-rw-r--r--source/blender/python/simple_enum_gen.py70
1 files changed, 35 insertions, 35 deletions
diff --git a/source/blender/python/simple_enum_gen.py b/source/blender/python/simple_enum_gen.py
index 59f048c2842..615d48b77d0 100644
--- a/source/blender/python/simple_enum_gen.py
+++ b/source/blender/python/simple_enum_gen.py
@@ -19,47 +19,47 @@
# #**** END GPL LICENSE BLOCK #****
defs = """
- SPACE_EMPTY,
- SPACE_VIEW3D,
- SPACE_IPO,
- SPACE_OUTLINER,
- SPACE_BUTS,
- SPACE_FILE,
- SPACE_IMAGE,
- SPACE_INFO,
- SPACE_SEQ,
- SPACE_TEXT,
- SPACE_IMASEL,
- SPACE_SOUND,
- SPACE_ACTION,
- SPACE_NLA,
- SPACE_SCRIPT,
- SPACE_TIME,
- SPACE_NODE,
- SPACEICONMAX
+ SPACE_EMPTY,
+ SPACE_VIEW3D,
+ SPACE_IPO,
+ SPACE_OUTLINER,
+ SPACE_BUTS,
+ SPACE_FILE,
+ SPACE_IMAGE,
+ SPACE_INFO,
+ SPACE_SEQ,
+ SPACE_TEXT,
+ SPACE_IMASEL,
+ SPACE_SOUND,
+ SPACE_ACTION,
+ SPACE_NLA,
+ SPACE_SCRIPT,
+ SPACE_TIME,
+ SPACE_NODE,
+ SPACEICONMAX
"""
print '\tmod = PyModule_New("dummy");'
print '\tPyModule_AddObject( submodule, "key", mod );'
for d in defs.split('\n'):
-
- d = d.replace(',', ' ')
- w = d.split()
-
- if not w:
- continue
-
- try: w.remove("#define")
- except: pass
-
- # print w
-
- val = w[0]
- py_val = w[0]
-
- print '\tPyModule_AddObject( mod, "%s", PyLong_FromSize_t(%s) );' % (val, py_val)
-
+
+ d = d.replace(',', ' ')
+ w = d.split()
+
+ if not w:
+ continue
+
+ try: w.remove("#define")
+ except: pass
+
+ # print w
+
+ val = w[0]
+ py_val = w[0]
+
+ print '\tPyModule_AddObject( mod, "%s", PyLong_FromSize_t(%s) );' % (val, py_val)
+