diff options
author | Eric Smith <eric@trueblade.com> | 2007-08-31 18:39:38 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-08-31 18:39:38 (GMT) |
commit | 9cd1e09deba4433fd2a2523807a68adf2e9030a7 (patch) | |
tree | 952e5cd2c3e00f802a23b70d7fd738064ed9f88c /Objects | |
parent | 610cee3e866cef8d4a292c245ebfe37c6ae74721 (diff) | |
download | cpython-9cd1e09deba4433fd2a2523807a68adf2e9030a7.zip cpython-9cd1e09deba4433fd2a2523807a68adf2e9030a7.tar.gz cpython-9cd1e09deba4433fd2a2523807a68adf2e9030a7.tar.bz2 |
Removed unicode_format and unicode__format__, they just called through to other functions.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 680ed5f..76616b5 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7930,29 +7930,12 @@ PyDoc_STRVAR(format__doc__, \n\ "); -static PyObject * -unicode_format(PyObject *self, PyObject *args, PyObject *kwds) -{ - /* this calls into stringlib/string_format.h because it can be - included for either string or unicode. this is needed for - python 2.6. */ - return do_string_format(self, args, kwds); -} - - PyDoc_STRVAR(p_format__doc__, "S.__format__(format_spec) -> unicode\n\ \n\ "); static PyObject * -unicode__format__(PyObject *self, PyObject *args) -{ - return unicode_unicode__format__(self, args); -} - - -static PyObject * unicode_getnewargs(PyUnicodeObject *v) { return Py_BuildValue("(u#)", v->str, v->length); @@ -8003,8 +7986,8 @@ static PyMethodDef unicode_methods[] = { {"isalnum", (PyCFunction) unicode_isalnum, METH_NOARGS, isalnum__doc__}, {"isidentifier", (PyCFunction) unicode_isidentifier, METH_NOARGS, isidentifier__doc__}, {"zfill", (PyCFunction) unicode_zfill, METH_VARARGS, zfill__doc__}, - {"format", (PyCFunction) unicode_format, METH_VARARGS | METH_KEYWORDS, format__doc__}, - {"__format__", (PyCFunction) unicode__format__, METH_VARARGS, p_format__doc__}, + {"format", (PyCFunction) do_string_format, METH_VARARGS | METH_KEYWORDS, format__doc__}, + {"__format__", (PyCFunction) unicode_unicode__format__, METH_VARARGS, p_format__doc__}, {"_formatter_field_name_split", (PyCFunction) formatter_field_name_split, METH_NOARGS}, {"_formatter_parser", (PyCFunction) formatter_parser, METH_NOARGS}, #if 0 |