summaryrefslogtreecommitdiffstats
path: root/Modules/syslogmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 07:13:07 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 07:13:07 (GMT)
commit06515833fef7b8b5c7968edf72367d94ff7eb1e0 (patch)
tree58a7c06bba8141883a5e5c8621d2b0683ae9fe2e /Modules/syslogmodule.c
parente20973926a2ec19c4b87e460dc6f0edb478ce352 (diff)
downloadcpython-06515833fef7b8b5c7968edf72367d94ff7eb1e0.zip
cpython-06515833fef7b8b5c7968edf72367d94ff7eb1e0.tar.gz
cpython-06515833fef7b8b5c7968edf72367d94ff7eb1e0.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index f2d44ff..7afca58 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;