summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-17 19:08:41 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-17 19:08:41 (GMT)
commitbce52be4916fe817cf2f08aa00ee1cc224e3513f (patch)
tree8e01b10aa0a69bbfc27ade3debe5e8fcb68a5b3d /Objects
parentd157e6977784c9483bdffc5d8ccd108c3cd4f94f (diff)
downloadcpython-bce52be4916fe817cf2f08aa00ee1cc224e3513f.zip
cpython-bce52be4916fe817cf2f08aa00ee1cc224e3513f.tar.gz
cpython-bce52be4916fe817cf2f08aa00ee1cc224e3513f.tar.bz2
Fixed some build issues and updated docs.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/funcobject.c4
-rw-r--r--Objects/methodobject.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 808f4ea..408be4c 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -227,10 +227,10 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations)
static PyMemberDef func_memberlist[] = {
{"__closure__", T_OBJECT, OFF(func_closure),
RESTRICTED|READONLY},
- {"__doc__", T_OBJECT, OFF(func_doc), WRITE_RESTRICTED},
+ {"__doc__", T_OBJECT, OFF(func_doc), PY_WRITE_RESTRICTED},
{"__globals__", T_OBJECT, OFF(func_globals),
RESTRICTED|READONLY},
- {"__module__", T_OBJECT, OFF(func_module), WRITE_RESTRICTED},
+ {"__module__", T_OBJECT, OFF(func_module), PY_WRITE_RESTRICTED},
{NULL} /* Sentinel */
};
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 8a8ca03..73e0790 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -167,7 +167,7 @@ static PyGetSetDef meth_getsets [] = {
#define OFF(x) offsetof(PyCFunctionObject, x)
static PyMemberDef meth_members[] = {
- {"__module__", T_OBJECT, OFF(m_module), WRITE_RESTRICTED},
+ {"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED},
{NULL}
};