diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-09-24 16:59:23 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-24 16:59:23 -0400 |
commit | e3b29659672acd757122bc5f90a13670b96b6952 (patch) | |
tree | 9a31668a1bb78122a78612dd650c2d93d1e9389a /cloudinit/patcher.py | |
parent | cde52cc8449d82d5bdce2fbb73516bee144e293c (diff) | |
download | vyos-cloud-init-e3b29659672acd757122bc5f90a13670b96b6952.tar.gz vyos-cloud-init-e3b29659672acd757122bc5f90a13670b96b6952.zip |
fix pylint
Diffstat (limited to 'cloudinit/patcher.py')
-rw-r--r-- | cloudinit/patcher.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/patcher.py b/cloudinit/patcher.py index fa140f04..0f3c034e 100644 --- a/cloudinit/patcher.py +++ b/cloudinit/patcher.py @@ -23,7 +23,8 @@ import logging import sys # Default fallback format -FALL_FORMAT = 'FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: %(message)s' +FALL_FORMAT = ('FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: ' + + '%(message)s') class QuietStreamHandler(logging.StreamHandler): @@ -40,7 +41,7 @@ def _patch_logging(): fallback_handler = QuietStreamHandler(sys.stderr) fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT)) - def handleError(self, record): + def handleError(self, record): # pylint: disable=W0613 try: fallback_handler.handle(record) fallback_handler.flush() |