PEP8 compliance

This commit is contained in:
Anders Ingemann 2014-02-23 20:27:41 +01:00
parent 46dbe9e8c6
commit ff968c3869
3 changed files with 8 additions and 8 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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")