Remove usesless function from csv module (GH-20762)

This commit is contained in:
Dong-hee Na 2020-06-10 00:33:43 +09:00 committed by GitHub
parent 51ae31e5b9
commit 0383be4666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -146,13 +146,6 @@ get_dialect_from_registry(PyObject * name_obj)
return dialect_obj;
}
static PyObject *
get_string(PyObject *str)
{
Py_XINCREF(str);
return str;
}
static PyObject *
get_nullchar_as_None(Py_UCS4 c)
{
@ -166,7 +159,8 @@ get_nullchar_as_None(Py_UCS4 c)
static PyObject *
Dialect_get_lineterminator(DialectObj *self, void *Py_UNUSED(ignored))
{
return get_string(self->lineterminator);
Py_XINCREF(self->lineterminator);
return self->lineterminator;
}
static PyObject *