Commit 35b13de5 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix minor pep8 errors

parent 39b0429a
......@@ -413,7 +413,7 @@ class BundleVolume(object):
mopts = filter(
lambda p: p.startswith('Default mount options:'),
tune2fs('-l', orig_dev[i]).splitlines()
)[0].split(':')[1].strip().split()
)[0].split(':')[1].strip().split()
if not (len(mopts) == 1 and mopts[0] == '(none)'):
for opt in mopts:
......
......@@ -557,11 +557,13 @@ def sysprep(session):
err_msg = \
"Unable to execute the system preparation tasks."
if not image.mounted:
d.msgbox("%s Couldn't mount the media." % err_msg,
d.msgbox(
"%s Couldn't mount the media." % err_msg,
title="System Preperation", width=SMALL_WIDTH)
return
elif image.mounted_ro:
d.msgbox("%s Couldn't mount the media read-write."
d.msgbox(
"%s Couldn't mount the media read-write."
% err_msg, title="System Preperation",
width=SMALL_WIDTH)
return
......
......@@ -216,7 +216,7 @@ class GPTPartitionTable(object):
return struct.calcsize(GPTPartitionTable.GPTHeader.format)
def __str__(self):
"""Print a GPTHeader"""
"""Print a GPTHeader"""
return "Signature: %s\n" % self.signature + \
"Revision: %r\n" % self.revision + \
"Header Size: %d\n" % self.hdr_size + \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment