[Bf-blender-cvs] [299180f] master: Fix T36955: API docs referred to sys.maxint which does not exist in Python 3.
Brecht Van Lommel
noreply at git.blender.org
Wed Jan 29 16:52:46 CET 2014
Commit: 299180f3c6433bb215053a8ef5ec3cbd1d1e4bbe
Author: Brecht Van Lommel
Date: Wed Jan 29 16:49:12 2014 +0100
https://developer.blender.org/rB299180f3c6433bb215053a8ef5ec3cbd1d1e4bbe
Fix T36955: API docs referred to sys.maxint which does not exist in Python 3.
===================================================================
M source/blender/python/intern/bpy_props.c
===================================================================
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index 7eee0d4..afb6ce0 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -2012,8 +2012,8 @@ PyDoc_STRVAR(BPy_IntProperty_doc,
".. function:: IntProperty(name=\"\", "
"description=\"\", "
"default=0, "
- "min=-sys.maxint, max=sys.maxint, "
- "soft_min=-sys.maxint, soft_max=sys.maxint, "
+ "min=-2**31, max=2**31-1, "
+ "soft_min=-2**31, soft_max=2**31-1, "
"step=1, "
"options={'ANIMATABLE'}, "
"subtype='NONE', "
@@ -2098,9 +2098,9 @@ static PyObject *BPy_IntProperty(PyObject *self, PyObject *args, PyObject *kw)
PyDoc_STRVAR(BPy_IntVectorProperty_doc,
".. function:: IntVectorProperty(name=\"\", "
"description=\"\", "
- "default=(0, 0, 0), min=-sys.maxint, max=sys.maxint, "
- "soft_min=-sys.maxint, "
- "soft_max=sys.maxint, "
+ "default=(0, 0, 0), min=-2**31, max=2**31-1, "
+ "soft_min=-2**31, "
+ "soft_max=2**31-1, "
"options={'ANIMATABLE'}, "
"subtype='NONE', "
"size=3, "
More information about the Bf-blender-cvs
mailing list