summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-21 15:08:01 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-28 20:04:17 -0500
commit5c083fa815d7357d107e76ffb9a5161956c3aec5 (patch)
treef0be27f616482680c0adcb95069e40f8deb1a934 /src/python-systemd
parentdf2795d9f94ec1e17a5b780261b21ac8d9f22101 (diff)
systemd-python: hide ChainMap import
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)