From 5c083fa815d7357d107e76ffb9a5161956c3aec5 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 21 Feb 2013 15:08:01 +0100 Subject: systemd-python: hide ChainMap import --- src/python-systemd/journal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/python-systemd') 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) -- cgit v1.2.3-54-g00ecf