diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-19 09:32:04 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-19 09:32:04 -0400 |
commit | 8fbe938228909e153afb88f189b269df60501510 (patch) | |
tree | 245d50cda87c6031a70bc5d9e858629cd65693a1 /cloudinit/util.py | |
parent | 6591a7d35add188536dc9db1db0b9ceeaed887d7 (diff) | |
download | vyos-cloud-init-8fbe938228909e153afb88f189b269df60501510.tar.gz vyos-cloud-init-8fbe938228909e153afb88f189b269df60501510.zip |
appease pylint and pep8
* cloudinit/distros/parsers/resolv_conf.py
added some pylint overrides with 'plXXXXX' syntax.
example: # pl51222 pylint: disable=E0102
The pl51222 there means: http://www.logilab.org/ticket/51222
This specific issue is present in 12.04 pylint, but not 13.04.
* pylint doesn't like the requests special handling we have.
which makes sense as it is only checking versus one specific version.
* general pep8 and pylint cleanups.
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 52b528ea..36e9b83b 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -51,8 +51,8 @@ from cloudinit import importer from cloudinit import log as logging from cloudinit import mergers from cloudinit import safeyaml -from cloudinit import url_helper from cloudinit import type_utils +from cloudinit import url_helper from cloudinit import version from cloudinit.settings import (CFG_BUILTIN) @@ -81,7 +81,7 @@ class StringResponse(object): self.contents = contents self.url = None - def ok(self, *args, **kwargs): + def ok(self, *args, **kwargs): # pylint: disable=W0613 if self.code != 200: return False return True |