Skip to content

Commit

Permalink
Remove usesless function from csv module (pythonGH-20762)
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 authored Jun 9, 2020
1 parent 51ae31e commit 0383be4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Modules/_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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 *
Expand Down

0 comments on commit 0383be4

Please sign in to comment.