[Kimchi-devel] [PATCH 2/2] Fix PEP8 issues

Lucio Correia luciojhc at linux.vnet.ibm.com
Thu Oct 1 20:42:03 UTC 2015


Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
 src/wok/config.py.in                           |   19 +++++++++++--------
 src/wok/plugins/kimchi/tests/test_config.py.in |    1 -
 src/wok/plugins/kimchi/tests/test_host.py      |    5 ++---
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/wok/config.py.in b/src/wok/config.py.in
index 3540aea..c4e1c65 100644
--- a/src/wok/config.py.in
+++ b/src/wok/config.py.in
@@ -41,14 +41,17 @@ FONT_FILES = {'fontawesome': ['fontawesome-webfont.ttf'],
                            'OpenSans-Regular.ttf']}
 
 FONTS_PATH = {
-    'fontawesome':
-        ['/usr/share/fonts/fontawesome',
-         '/usr/share/fonts/truetype/font-awesome',
-         '/usr/share/fonts/truetype'],
-    'opensans':
-        ['/usr/share/fonts/open-sans',
-         '/usr/share/fonts/truetype/',
-         '/usr/share/texlive/texmf-dist/fonts/truetype/public/opensans']}
+    'fontawesome': [
+        '/usr/share/fonts/fontawesome',
+        '/usr/share/fonts/truetype/font-awesome',
+        '/usr/share/fonts/truetype'
+    ],
+    'opensans': [
+        '/usr/share/fonts/open-sans',
+        '/usr/share/fonts/truetype/',
+        '/usr/share/texlive/texmf-dist/fonts/truetype/public/opensans'
+    ]
+}
 
 
 def get_object_store():
diff --git a/src/wok/plugins/kimchi/tests/test_config.py.in b/src/wok/plugins/kimchi/tests/test_config.py.in
index 93ee287..e4db15a 100644
--- a/src/wok/plugins/kimchi/tests/test_config.py.in
+++ b/src/wok/plugins/kimchi/tests/test_config.py.in
@@ -163,7 +163,6 @@ class ConfigTests(unittest.TestCase):
         wok_config = WokConfig()
         self.assertEquals(wok_config, configObj)
 
-
     def test_kimchi_config(self):
         KimchiPaths.get_prefix = PluginPaths.get_prefix = get_prefix
         paths = KimchiPaths()
diff --git a/src/wok/plugins/kimchi/tests/test_host.py b/src/wok/plugins/kimchi/tests/test_host.py
index a673d8e..f3da49b 100644
--- a/src/wok/plugins/kimchi/tests/test_host.py
+++ b/src/wok/plugins/kimchi/tests/test_host.py
@@ -209,9 +209,8 @@ class HostTests(unittest.TestCase):
         resp = self.request('/plugins/kimchi/host/devices?_passthrough=true')
         all_devs = [dev['name'] for dev in json.loads(resp.read())]
 
-        resp = self.request(
-        '/plugins/kimchi/host/devices?_passthrough=true&_available_only=true'
-        )
+        resp = self.request('/plugins/kimchi/host/devices?'
+                            '_passthrough=true&_available_only=true')
         available_devs = [dev['name'] for dev in json.loads(resp.read())]
 
         self.assertLessEqual(len(available_devs), len(all_devs))
-- 
1.7.1




More information about the Kimchi-devel mailing list