mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
PyUnicode_AsUTF8String(): /F picks up what I missed: the local var
`str' is no longer necessary. Gotta turn on -Wall!
This commit is contained in:
parent
0888ff17bd
commit
ce4dc41b1a
1 changed files with 0 additions and 2 deletions
|
@ -901,8 +901,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
|
||||||
|
|
||||||
PyObject *PyUnicode_AsUTF8String(PyObject *unicode)
|
PyObject *PyUnicode_AsUTF8String(PyObject *unicode)
|
||||||
{
|
{
|
||||||
PyObject *str;
|
|
||||||
|
|
||||||
if (!PyUnicode_Check(unicode)) {
|
if (!PyUnicode_Check(unicode)) {
|
||||||
PyErr_BadArgument();
|
PyErr_BadArgument();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue