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
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-10 14:45:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-10 14:45:56 +0400
commit28594bc742e6a1cab95659283394cfee487822c9 (patch)
tree8d9c7f0b7d7302586bcaf517c3d296be79b9a2ee /doc
parent1c6956a4d6b15ddca3588f1838d3b9903e7239af (diff)
minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/sphinx_changelog_gen.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/python_api/sphinx_changelog_gen.py b/doc/python_api/sphinx_changelog_gen.py
index 4305157bd78..eb4fc4716e6 100644
--- a/doc/python_api/sphinx_changelog_gen.py
+++ b/doc/python_api/sphinx_changelog_gen.py
@@ -34,7 +34,7 @@ blender --background --python intern/tools/rna_api_dump.py -- \
# Api comparison can also run without blender
-python intern/tools/rna_api_dump.py
+python intern/tools/rna_api_dump.py
--api_from blender_api_2_56_6.py \
--api_to blender_api_2_57.py \
--api_out changes.rst
@@ -252,7 +252,6 @@ def api_changelog(api_from, api_to, api_out):
if args_new != args_old:
func_args.append((prop_id, args_old, args_new))
-
if props_moved or set_props_new or set_props_old or func_args:
props_moved.sort()
props_new[:] = sorted(set_props_new)
@@ -262,10 +261,6 @@ def api_changelog(api_from, api_to, api_out):
api_changes.append((mod_id, class_id, props_moved, props_new, props_old, func_args))
# also document function argument changes
-
-
-
-
fout = open(api_out, 'w')
fw = fout.write
@@ -298,7 +293,7 @@ def api_changelog(api_from, api_to, api_out):
for prop_id_old, prop_id in props_moved:
fw("* **%s** -> :class:`%s.%s.%s`\n" % (prop_id_old, mod_id, class_name, prop_id))
fw("\n")
-
+
if func_args:
write_title("Function Arguments", "^")
for func_id, args_old, args_new in func_args:
@@ -313,14 +308,13 @@ def api_changelog(api_from, api_to, api_out):
def main():
import sys
import os
-
+
try:
import argparse
except:
print("Old Blender, just dumping")
api_dump()
return
-
argv = sys.argv