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 /Modules/syslogmodule.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 'Modules/syslogmodule.c')
-rw-r--r-- | Modules/syslogmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index f2d44ff5e6..7afca58d0e 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -139,7 +139,7 @@ syslog_openlog(PyObject * self, PyObject * args, PyObject *kwds) * If NULL, just let openlog figure it out (probably using C argv[0]). */ if (S_ident_o) { - ident = _PyUnicode_AsString(S_ident_o); + ident = PyUnicode_AsUTF8(S_ident_o); if (ident == NULL) return NULL; } @@ -167,7 +167,7 @@ syslog_syslog(PyObject * self, PyObject * args) return NULL; } - message = _PyUnicode_AsString(message_object); + message = PyUnicode_AsUTF8(message_object); if (message == NULL) return NULL; |