diff options
| author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-17 12:50:13 -0400 |
|---|---|---|
| committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-07-05 14:19:20 -0400 |
| commit | 2bfb849c70ac2328d37755f1850fc7cfde1d6b4d (patch) | |
| tree | 6327e6a91b4891c793769f4442ce5c1efad31fa0 /systemd/_daemon.c | |
| parent | 2c0317be82aa85911fe7665719d0139ee4330211 (diff) | |
| download | python-systemd-2bfb849c70ac2328d37755f1850fc7cfde1d6b4d.tar.gz | |
systemd-python: add support for sd_j_open_files
Also export missing flags.
Diffstat (limited to 'systemd/_daemon.c')
| -rw-r--r-- | systemd/_daemon.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/systemd/_daemon.c b/systemd/_daemon.c index bd4e73e..6b84fb8 100644 --- a/systemd/_daemon.c +++ b/systemd/_daemon.c @@ -40,28 +40,6 @@ PyDoc_STRVAR(module__doc__, "running under systemd." ); - -#if PY_MAJOR_VERSION >=3 && PY_MINOR_VERSION >= 1 -static int Unicode_FSConverter(PyObject* obj, void *_result) { - PyObject **result = _result; - - assert(result); - - if (!obj) - /* cleanup: we don't return Py_CLEANUP_SUPPORTED, so - * we can assume that it was PyUnicode_FSConverter. */ - return PyUnicode_FSConverter(obj, result); - - if (obj == Py_None) { - *result = NULL; - return 1; - } - - return PyUnicode_FSConverter(obj, result); -} -#endif - - PyDoc_STRVAR(booted__doc__, "booted() -> bool\n\n" "Return True iff this system is running under systemd.\n" |
