summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-27 07:24:17 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-27 07:24:17 (GMT)
commit8a4eb298e25580241feb190cb3c3cc492fa65369 (patch)
treed1e8579cb49983322a29fbf4e345d6ba5fdc8d73 /Python
parent2bad9702930f620b61c8bc3cec3d4cd811df3693 (diff)
downloadcpython-8a4eb298e25580241feb190cb3c3cc492fa65369.zip
cpython-8a4eb298e25580241feb190cb3c3cc492fa65369.tar.gz
cpython-8a4eb298e25580241feb190cb3c3cc492fa65369.tar.bz2
Fix refleaks in test_unicode and test_string related to the new format code.
Stop polluting namespace.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 0c84db0..3d9acd7 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -663,7 +663,7 @@ sys_current_frames(PyObject *self, PyObject *noargs)
/* sys_formatter_iterator is used to implement
string.Formatter.vformat. it parses a string and returns tuples
describing the parsed elements. see unicodeobject.c's
- _unicodeformatter_iterator for details */
+ _PyUnicode_FormatterIterator for details */
static PyObject *
sys_formatter_iterator(PyObject *self, PyObject *args)
{
@@ -680,14 +680,14 @@ sys_formatter_iterator(PyObject *self, PyObject *args)
return NULL;
}
- return _unicodeformatter_iterator(str);
+ return _PyUnicode_FormatterIterator(str);
}
/* sys_formatter_field_name_split is used to implement
string.Formatter.vformat. it takes an PEP 3101 "field name", and
returns a tuple of (first, rest): "first", the part before the
first '.' or '['; and "rest", an iterator for the rest of the field
- name. see unicodeobjects' _unicode_formatter_field_name_split for
+ name. see unicodeobjects' _PyUnicode_FormatterFieldNameSplit for
details */
static PyObject *
sys_formatter_field_name_split(PyObject *self, PyObject *args)
@@ -704,7 +704,7 @@ sys_formatter_field_name_split(PyObject *self, PyObject *args)
return NULL;
}
- return _unicodeformatter_field_name_split(field_name);
+ return _PyUnicode_FormatterFieldNameSplit(field_name);
}