diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-07 16:47:54 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-07 16:47:54 -0500 |
commit | aae7fe638f61aaf02c6579d5b691a8641455c875 (patch) | |
tree | ee449987b9076806975802e3843f0305736c3f1b /cloudinit/mergers | |
parent | 9a771ec66f4e79bcd30f7cad7ef4b67e9cc7512d (diff) | |
download | vyos-cloud-init-aae7fe638f61aaf02c6579d5b691a8641455c875.tar.gz vyos-cloud-init-aae7fe638f61aaf02c6579d5b691a8641455c875.zip |
fix pep8 and pylint
Diffstat (limited to 'cloudinit/mergers')
-rw-r--r-- | cloudinit/mergers/__init__.py | 5 | ||||
-rw-r--r-- | cloudinit/mergers/str.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cloudinit/mergers/__init__.py b/cloudinit/mergers/__init__.py index 3b56686f..ac16f143 100644 --- a/cloudinit/mergers/__init__.py +++ b/cloudinit/mergers/__init__.py @@ -32,7 +32,7 @@ class UnknownMerger(object): # Named differently so auto-method finding # doesn't pick this up if there is ever a type # named "unknown" - def _handle_unknown(self, meth_wanted, value, merge_with): + def _handle_unknown(self, _meth_wanted, value, _merge_with): return value # This merging will attempt to look for a '_on_X' method @@ -119,7 +119,8 @@ def string_extract_mergers(merge_how): continue match = NAME_MTCH.match(m_name) if not match: - msg = "Matcher identifer '%s' is not in the right format" % (m_name) + msg = ("Matcher identifer '%s' is not in the right format" % + (m_name)) raise ValueError(msg) (m_name, m_ops) = match.groups() m_ops = m_ops.strip().split(",") diff --git a/cloudinit/mergers/str.py b/cloudinit/mergers/str.py index f1534c5b..291c91c2 100644 --- a/cloudinit/mergers/str.py +++ b/cloudinit/mergers/str.py @@ -18,7 +18,7 @@ class Merger(object): - def __init__(self, merger, opts): + def __init__(self, _merger, opts): self._append = 'append' in opts # On encountering a unicode object to merge value with |