From ff968c38690e43bf07bcf9cd6c013abda5ebb6eb Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 23 Feb 2014 20:27:41 +0100 Subject: [PATCH] PEP8 compliance --- common/bytes.py | 6 +++--- common/tasks/apt.py | 8 ++++---- providers/kvm/tasks/virtio.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/bytes.py b/common/bytes.py index e6f2b88..0a2aab2 100644 --- a/common/bytes.py +++ b/common/bytes.py @@ -4,9 +4,9 @@ class Bytes(object): units = {'B': 1, 'KiB': 1024, - 'MiB': 1024*1024, - 'GiB': 1024*1024*1024, - 'TiB': 1024*1024*1024*1024, + 'MiB': 1024 * 1024, + 'GiB': 1024 * 1024 * 1024, + 'TiB': 1024 * 1024 * 1024 * 1024, } def __init__(self, qty): diff --git a/common/tasks/apt.py b/common/tasks/apt.py index b0a2f75..d39d0bf 100644 --- a/common/tasks/apt.py +++ b/common/tasks/apt.py @@ -26,11 +26,11 @@ class AddDefaultSources(Task): sections = 'main' if 'sections' in info.manifest.system: sections = ' '.join(info.manifest.system['sections']) - info.source_lists.add('main', 'deb {apt_mirror} {system.release} '+sections) - info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} '+sections) + info.source_lists.add('main', 'deb {apt_mirror} {system.release} ' + sections) + info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + sections) if info.manifest.system['release'] not in {'testing', 'unstable'}: - info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates '+sections) - info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates '+sections) + info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + sections) + info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + sections) class InstallTrustedKeys(Task): diff --git a/providers/kvm/tasks/virtio.py b/providers/kvm/tasks/virtio.py index a3d2370..06bb603 100644 --- a/providers/kvm/tasks/virtio.py +++ b/providers/kvm/tasks/virtio.py @@ -13,4 +13,4 @@ class VirtIO(Task): with open(modules, "a") as modules_file: modules_file.write("\n") for module in info.manifest.bootstrapper.get('virtio', []): - modules_file.write(module+"\n") + modules_file.write(module + "\n")