diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-04-05 13:23:25 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-07-05 14:19:21 -0400 |
commit | 583f1a94417bcfba3f32ad4969eddb5fb025bb26 (patch) | |
tree | 48f214d55bb702c54f6514eb2c0cf554f2a6cbb9 /systemd/journal.py | |
parent | f7cf47eb64f10c58323e814f25e1f89a38e1d25e (diff) | |
download | python-systemd-583f1a94417bcfba3f32ad4969eddb5fb025bb26.tar.gz |
systemd-python: use .hex instead of .get_hex()
It turns out the latter got removed in Python 3.
https://bugs.freedesktop.org/show_bug.cgi?id=77086
Diffstat (limited to 'systemd/journal.py')
-rw-r--r-- | systemd/journal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index 9c7e004..dd1f229 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -293,7 +293,7 @@ class Reader(_Reader): monotonic = monotonic.totalseconds() monotonic = int(monotonic * 1000000) if isinstance(bootid, _uuid.UUID): - bootid = bootid.get_hex() + bootid = bootid.hex return super(Reader, self).seek_monotonic(monotonic, bootid) def log_level(self, level): @@ -314,7 +314,7 @@ class Reader(_Reader): Equivalent to add_match(MESSAGE_ID=`messageid`). """ if isinstance(messageid, _uuid.UUID): - messageid = messageid.get_hex() + messageid = messageid.hex self.add_match(MESSAGE_ID=messageid) def this_boot(self, bootid=None): @@ -346,7 +346,7 @@ class Reader(_Reader): def get_catalog(mid): if isinstance(mid, _uuid.UUID): - mid = mid.get_hex() + mid = mid.hex return _get_catalog(mid) def _make_line(field, value): |