diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-11-11 22:36:04 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-11-12 17:14:34 +0100 |
commit | 9bacacace4c56de3260bcc196decba4af80f3942 (patch) | |
tree | c80bc1e283b09330d5cb1ac8d1c8e5416b13fd5b | |
parent | 4c9a241949067fc8d55f3ea12170ad364bd8b18d (diff) | |
download | python-systemd-9bacacace4c56de3260bcc196decba4af80f3942.tar.gz |
journal: avoid warning about deprecated constant
-rw-r--r-- | systemd/_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/_reader.c b/systemd/_reader.c index c9aa11d..8de7f6a 100644 --- a/systemd/_reader.c +++ b/systemd/_reader.c @@ -1339,7 +1339,7 @@ init_reader(void) PyModule_AddIntConstant(m, "LOCAL_ONLY", SD_JOURNAL_LOCAL_ONLY) || PyModule_AddIntConstant(m, "RUNTIME_ONLY", SD_JOURNAL_RUNTIME_ONLY) || PyModule_AddIntConstant(m, "SYSTEM", SD_JOURNAL_SYSTEM) || - PyModule_AddIntConstant(m, "SYSTEM_ONLY", SD_JOURNAL_SYSTEM_ONLY) || + PyModule_AddIntConstant(m, "SYSTEM_ONLY", SD_JOURNAL_SYSTEM) || PyModule_AddIntConstant(m, "CURRENT_USER", SD_JOURNAL_CURRENT_USER) || PyModule_AddIntConstant(m, "OS_ROOT", SD_JOURNAL_OS_ROOT) || PyModule_AddStringConstant(m, "__version__", PACKAGE_VERSION)) { |