Commit graph

268 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
bf05f619b0 Rework error handling in preparation for py3k changes
When the #ifdefs neccesary to support Python 2 and 3 are added,
there will be many more paths through the code. This style of error
handling makes the code easier to read.
2012-07-10 10:26:40 +02:00
Zbigniew Jędrzejewski-Szmek
7f9ebf50ad Ignore result of build_ext -i 2012-07-10 10:26:40 +02:00
Zbigniew Jędrzejewski-Szmek
48a2295bb7 Check the return value from sd_journal_sendv 2012-07-10 10:26:40 +02:00
Zbigniew Jędrzejewski-Szmek
d624e014bc Use PyString_AsStringAndSize to avoid strlen
This should make the operation microscopically faster.

A second difference is that strings with embedded NULLs will now be
allowed, although I'm not really sure what is the impact of that
change.
2012-07-10 10:26:33 +02:00
Zbyszek Jędrzejewski-Szmek
78a234c6d3 Wrap README to 80 lines 2012-07-10 10:20:31 +02:00
Zbigniew Jędrzejewski-Szmek
167f51b25c Add emacs config for indentation 2012-07-10 10:12:19 +02:00
David Strauss
bc56ace896 Proper TypeError exception handling. 2012-06-26 11:28:42 -07:00
David Strauss
e4f66cc4aa Whitespace fixes. Drop header-style guards. 2012-06-26 11:23:51 -07:00
David Strauss
63fd53fc00 Documentation updates. 2012-06-26 01:20:09 -07:00
David Strauss
ec63deb806 Code clean-up. 2012-06-26 01:07:33 -07:00
David Strauss
51189a1b46 Allow varags. 2012-06-26 01:00:46 -07:00
David Strauss
83a9513518 Use sd_journal_print() instead of send. 2012-06-25 23:21:43 -07:00
David Strauss
e6666cc638 Now works with import. 2012-06-25 23:16:30 -07:00
David Strauss
6edaadeb08 Add systemd-journal library. 2012-06-25 23:15:28 -07:00
David Strauss
b03b0ab4db Add test build instructions. 2012-06-25 23:07:03 -07:00
David Strauss
cb38f73ede Initial boilerplate work. Compiles without warnings. Untested. 2012-06-25 23:02:40 -07:00
David Strauss
a472ade603 Add MIT license. 2012-06-25 20:03:15 -07:00
David Strauss
7bcd859895 Initial commit 2012-06-25 16:58:29 -07:00