From 35b13de541a25e7f5a9aa670a9c14f317efea84f Mon Sep 17 00:00:00 2001
From: Nikos Skalkotos <skalkoto@grnet.gr>
Date: Mon, 20 May 2013 10:39:15 +0300
Subject: [PATCH] Fix minor pep8 errors

---
 image_creator/bundle_volume.py | 2 +-
 image_creator/dialog_menu.py   | 6 ++++--
 image_creator/gpt.py           | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py
index 40acf53..18d0245 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 dc0c31b..71ffec7 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 3be594e..968a918 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 + \
-- 
GitLab