summaryrefslogtreecommitdiffstats
path: root/protocol.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-01-07 22:57:18 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-01-09 10:21:43 +0100
commitcc6575a3e1aba2eb08bba8a7f24ca6323fe81cda (patch)
tree1b1bfaaa393392868e7f3f365b82e12074d56926 /protocol.py
parent8c1aa2a86c6eb2019c8f0b48b60878b6a1ab4976 (diff)
downloadclufter-cc6575a3e1aba2eb08bba8a7f24ca6323fe81cda.tar.gz
clufter-cc6575a3e1aba2eb08bba8a7f24ca6323fe81cda.tar.xz
clufter-cc6575a3e1aba2eb08bba8a7f24ca6323fe81cda.zip
Mass change: import logging -> from logging import getLogger
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'protocol.py')
-rw-r--r--protocol.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocol.py b/protocol.py
index 46582c4..88bdbed 100644
--- a/protocol.py
+++ b/protocol.py
@@ -5,15 +5,14 @@
"""Base protocol stuff (metaclass, etc.)"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
-import logging
-
from collections import MutableMapping
+from logging import getLogger
from .plugin_registry import PluginRegistry
from .utils import args2sgpl, tuplist
from .utils_prog import cli_undecor
-log = logging.getLogger(__name__)
+log = getLogger(__name__)
protodict = lambda x: isinstance(x, MutableMapping) and 'passin' in x
protodictval = lambda x: args2sgpl(x['passin']) if protodict(x) else x