chiark / gitweb /
systemd-python: convert keyword value to string
authorRichard Marko <rmarko@fedoraproject.org>
Tue, 5 Nov 2013 14:41:20 +0000 (15:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2013 06:23:54 +0000 (01:23 -0500)
commit8ff8ee837357c54bb8845df2c7a30ec05da02367
tree485419d306f2f2f3c28ee2aabe5f7d5f4d9852cc
parent889a90422dd47284dffa32b9234a6e58991b000c
systemd-python: convert keyword value to string

Allows using journal.send('msg', PRIORITY=journal.LOG_CRIT)

Before this commit this results in
TypeError: cannot concatenate 'str' and 'int' objects
and requires passing PRIORITY value as string to work.
src/python-systemd/journal.py