summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-28 02:38:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-28 02:38:20 (GMT)
commitfe82e774ea203de277968216126e26d0d09b3a15 (patch)
treefa12e8ce128288a56c0566d76aeaa05b8dd3e6d2 /Objects/abstract.c
parent26855635833fcd3f15786b4a9d4241ded293404c (diff)
downloadcpython-fe82e774ea203de277968216126e26d0d09b3a15.zip
cpython-fe82e774ea203de277968216126e26d0d09b3a15.tar.gz
cpython-fe82e774ea203de277968216126e26d0d09b3a15.tar.bz2
Merged revisions 60379-60382 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r60381 | christian.heimes | 2008-01-28 03:07:53 +0100 (Mon, 28 Jan 2008) | 1 line static PyObject* variables should use PyString_InternFromString() instead of PyObject_FromString() to store a python string in a function level static var. ........
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 3410dd8..755cb0e 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2333,7 +2333,7 @@ abstract_get_bases(PyObject *cls)
PyObject *bases;
if (__bases__ == NULL) {
- __bases__ = PyUnicode_FromString("__bases__");
+ __bases__ = PyUnicode_InternFromString("__bases__");
if (__bases__ == NULL)
return NULL;
}
@@ -2413,7 +2413,7 @@ recursive_isinstance(PyObject *inst, PyObject *cls, int recursion_depth)
int retval = 0;
if (__class__ == NULL) {
- __class__ = PyUnicode_FromString("__class__");
+ __class__ = PyUnicode_InternFromString("__class__");
if (__class__ == NULL)
return -1;
}