diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py index 40acf53edae7302970fba95d4895b5286b9202c7..18d0245e29334f63d2fd882b7f5d50e87673da41 100644 --- a/image_creator/bundle_volume.py +++ b/image_creator/bundle_volume.py @@ -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: diff --git a/image_creator/dialog_menu.py b/image_creator/dialog_menu.py index dc0c31b8037194c85efb031cb7d59ac413f52d68..71ffec74f479f17dde1ee43aab843399d476c7b7 100644 --- a/image_creator/dialog_menu.py +++ b/image_creator/dialog_menu.py @@ -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 diff --git a/image_creator/gpt.py b/image_creator/gpt.py index 3be594e6a459eccf98094654460af914142b7d65..968a918e5c5013272b3ad5062e317abad7c9be20 100644 --- a/image_creator/gpt.py +++ b/image_creator/gpt.py @@ -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 + \