From 8a4eb298e25580241feb190cb3c3cc492fa65369 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 27 Aug 2007 07:24:17 +0000 Subject: Fix refleaks in test_unicode and test_string related to the new format code. Stop polluting namespace. --- Python/sysmodule.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 0c84db02f5..3d9acd7195 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); } -- cgit v1.2.1