Author: Armin Rigo <[email protected]>
Branch:
Changeset: r83831:063c9eb15e03
Date: 2016-04-23 08:41 +0200
http://bitbucket.org/pypy/pypy/changeset/063c9eb15e03/
Log: Issue #2280: syslog(u'foo')
diff --git a/lib_pypy/syslog.py b/lib_pypy/syslog.py
--- a/lib_pypy/syslog.py
+++ b/lib_pypy/syslog.py
@@ -51,6 +51,8 @@
# if log is not opened, open it now
if not _S_log_open:
openlog()
+ if isinstance(message, unicode):
+ message = str(message)
lib.syslog(priority, "%s", message)
@builtinify
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit