Fix minor pep8 errors
authorNikos Skalkotos <skalkoto@grnet.gr>
Mon, 20 May 2013 07:39:15 +0000 (10:39 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Mon, 20 May 2013 07:39:15 +0000 (10:39 +0300)
image_creator/bundle_volume.py
image_creator/dialog_menu.py
image_creator/gpt.py

index 40acf53..18d0245 100644 (file)
@@ -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:
index dc0c31b..71ffec7 100644 (file)
@@ -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
index 3be594e..968a918 100644 (file)
@@ -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 + \