diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-11-09 14:40:41 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-11-09 14:40:41 -0800 |
commit | 8c006684034c13719171672836edfc65bf02ebe9 (patch) | |
tree | aa61745924b28d6fdb23d98103cdbd07abcd82e7 | |
parent | a0f5926d6a238a71f96c6d5ddd617b5a3f78af46 (diff) | |
download | vyos-cloud-init-8c006684034c13719171672836edfc65bf02ebe9.tar.gz vyos-cloud-init-8c006684034c13719171672836edfc65bf02ebe9.zip |
Fix pep8 warnings.
-rw-r--r-- | cloudinit/distros/__init__.py | 2 | ||||
-rwxr-xr-x | tools/run-pep8 | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index bd04ba79..3392a065 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -81,7 +81,7 @@ class Distro(object): def _get_arch_package_mirror_info(self, arch=None): mirror_info = self.get_option("package_mirrors", []) - if arch == None: + if not arch: arch = self.get_primary_arch() return _get_arch_package_mirror_info(mirror_info, arch) diff --git a/tools/run-pep8 b/tools/run-pep8 index 1dfa92c3..20e594bc 100755 --- a/tools/run-pep8 +++ b/tools/run-pep8 @@ -31,6 +31,7 @@ IGNORE="$IGNORE,E125" # Continuation line does not distinguish itself from next IGNORE="$IGNORE,E126" # Continuation line over-indented for hanging indent IGNORE="$IGNORE,E127" # Continuation line over-indented for visual indent IGNORE="$IGNORE,E128" # Continuation line under-indented for visual indent +IGNORE="$IGNORE,E502" # The backslash is redundant between brackets cmd=( ${base}/hacking.py |