From 04e32be958bb90be2824c083eba8f983d9133f76 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 Mar 2011 03:42:59 +0000 Subject: optparse module is deprecated, use new argparse module in background job template. correction to example in doc too. --- doc/python_api/examples/bpy.data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/python_api/examples/bpy.data.py b/doc/python_api/examples/bpy.data.py index 555b421ddac..7d6bf94532b 100644 --- a/doc/python_api/examples/bpy.data.py +++ b/doc/python_api/examples/bpy.data.py @@ -14,7 +14,7 @@ print(bpy.data.scenes.keys()) if "Cube" in bpy.data.meshes: mesh = bpy.data.meshes["Cube"] print("removing mesh", mesh) - bpy.data.meshes.unlink(mesh) + bpy.data.meshes.remove(mesh) # write images into a file next to the blend @@ -22,6 +22,6 @@ import os file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w') for image in bpy.data.images: - file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1])) + file.write("%s %d x %d\n" % (image.filepath, image.size[0], image.size[1])) file.close() -- cgit v1.2.3