[Kimchi-devel] [PATCH] pep8 cleanup for cachebust.py

Aline Manera alinefm at linux.vnet.ibm.com
Fri Dec 20 14:35:02 UTC 2013


From: Aline Manera <alinefm at br.ibm.com>

This patch cleans up pep8 style issue in cachebust.py

Signed-off-by: Aline Manera <alinefm at br.ibm.com>
---
 Makefile.am             |    1 +
 src/kimchi/cachebust.py |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index e57d3b6..2c390c4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,6 +39,7 @@ EXTRA_DIST = \
 # So it will be checked from now on.
 PEP8_WHITELIST = \
 	src/kimchi/asynctask.py \
+	src/kimchi/cachebust.py \
 	src/kimchi/config.py.in \
 	src/kimchi/disks.py \
 	src/kimchi/server.py \
diff --git a/src/kimchi/cachebust.py b/src/kimchi/cachebust.py
index 4dcfb56..9a71f4f 100644
--- a/src/kimchi/cachebust.py
+++ b/src/kimchi/cachebust.py
@@ -18,7 +18,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public
 # License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
 import os
 
@@ -28,6 +28,6 @@ from kimchi.config import get_prefix
 
 def href(url):
     # for error.html, url is absolute path
-    f = os.path.join(get_prefix(),'ui', url.lstrip("/"))
+    f = os.path.join(get_prefix(), 'ui', url.lstrip("/"))
     mtime = os.path.getmtime(f)
     return "%s?cacheBust=%s" % (url, mtime)
-- 
1.7.10.4




More information about the Kimchi-devel mailing list