From 6152a5592cfadb062af05dd48c6e8f204ff001b6 Mon Sep 17 00:00:00 2001
From: Nikos Skalkotos <skalkoto@grnet.gr>
Date: Fri, 20 Apr 2012 17:44:33 +0300
Subject: [PATCH] Fix pep8 errors

---
 image_creator/kamaki_wrapper.py | 8 ++++----
 image_creator/util.py           | 5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py
index 5be0c33..2c0db38 100644
--- a/image_creator/kamaki_wrapper.py
+++ b/image_creator/kamaki_wrapper.py
@@ -73,10 +73,10 @@ class Kamaki:
                     raise FatalError("Pithos client: %d %s" % \
                                                         (e.status, e.message))
             try:
-		hash_progress = progress("(1/2)  Calculating block hashes:")
-		upload_progress = progress("(2/2)  Uploading missing blocks:")
+                hash_progress = progress("(1/2)  Calculating block hashes:")
+                upload_progress = progress("(2/2)  Uploading missing blocks:")
                 self.pithos_client.create_object(remote_path, f, size,
-						hash_progress, upload_progress)
+                                                hash_progress, upload_progress)
                 self.uploaded_object = "pithos://%s/%s/%s" % \
                                 (self.account, self.container, remote_path)
             except ClientError as e:
@@ -86,4 +86,4 @@ class Kamaki:
     def register(self, metadata):
         pass
 
-# vim: set sta sts=4 shiftwidth=4 sw=4 et ai
+# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
diff --git a/image_creator/util.py b/image_creator/util.py
index 2805de7..718b819 100644
--- a/image_creator/util.py
+++ b/image_creator/util.py
@@ -100,9 +100,10 @@ def progress(message=''):
         yield  # suppress the StopIteration exception
     return progress_generator
 
-def md5(filename, size, progress = None):
 
-    BLOCKSIZE = 2^22  # 4MB
+def md5(filename, size, progress=None):
+
+    BLOCKSIZE = 2 ^ 22  # 4MB
 
     md5 = hashlib.md5()
     with open(filename, "r") as src:
-- 
GitLab