summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
Diffstat (limited to 'src/python-systemd')
-rw-r--r--src/python-systemd/journal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py
index 892a56ff23..4d71564c65 100644
--- a/src/python-systemd/journal.py
+++ b/src/python-systemd/journal.py
@@ -28,7 +28,7 @@ import os as _os
from os import SEEK_SET, SEEK_CUR, SEEK_END
import logging as _logging
if _sys.version_info >= (3,):
- from collections import ChainMap
+ from collections import ChainMap as _ChainMap
from syslog import (LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR,
LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG)
from ._journal import sendv, stream_fd
@@ -112,7 +112,7 @@ class Journal(_Journal):
"""
super(Journal, self).__init__(flags, path)
if _sys.version_info >= (3,3):
- self.converters = ChainMap()
+ self.converters = _ChainMap()
if converters is not None:
self.converters.maps.append(converters)
self.converters.maps.append(DEFAULT_CONVERTERS)