diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:40 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:40 +0200 |
commit | a98c4a984b34f887076f4171b1e3303e164cbddf (patch) | |
tree | 78f6f0fbbc6728e24d5478aadb7bfe1d871b244f /Objects/object.c | |
parent | f6f15918087f2fae652634303a79f9cc6bc421ce (diff) | |
parent | 06515833fef7b8b5c7968edf72367d94ff7eb1e0 (diff) | |
download | cpython-git-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.gz |
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index 5c639b2c9c..d88ae3b94f 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -890,7 +890,7 @@ PyObject_GetAttr(PyObject *v, PyObject *name) if (tp->tp_getattro != NULL) return (*tp->tp_getattro)(v, name); if (tp->tp_getattr != NULL) { - char *name_str = _PyUnicode_AsString(name); + char *name_str = PyUnicode_AsUTF8(name); if (name_str == NULL) return NULL; return (*tp->tp_getattr)(v, name_str); @@ -934,7 +934,7 @@ PyObject_SetAttr(PyObject *v, PyObject *name, PyObject *value) return err; } if (tp->tp_setattr != NULL) { - char *name_str = _PyUnicode_AsString(name); + char *name_str = PyUnicode_AsUTF8(name); if (name_str == NULL) return -1; err = (*tp->tp_setattr)(v, name_str, value); |