From 5dc722e017dcccdf260b77c4e9a0b0fe0fc16868 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Wed, 10 Sep 2014 22:41:36 +0100 Subject: [PATCH] Fix pep8 --- openlp/plugins/images/lib/mediaitem.py | 3 ++- openlp/plugins/remotes/lib/httprouter.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/images/lib/mediaitem.py b/openlp/plugins/images/lib/mediaitem.py index d35394ad6..5b4122072 100644 --- a/openlp/plugins/images/lib/mediaitem.py +++ b/openlp/plugins/images/lib/mediaitem.py @@ -590,7 +590,8 @@ class ImageMediaItem(MediaManagerItem): # Continue with the existing images. for filename in images_file_names: name = os.path.split(filename)[1] - service_item.add_from_image(filename, ImageSource.ImagePlugin, background, os.path.join(self.service_path, name)) + service_item.add_from_image(filename, ImageSource.ImagePlugin, background, + os.path.join(self.service_path, name)) return True def check_group_exists(self, new_group): diff --git a/openlp/plugins/remotes/lib/httprouter.py b/openlp/plugins/remotes/lib/httprouter.py index a5d42fd18..c43590f35 100644 --- a/openlp/plugins/remotes/lib/httprouter.py +++ b/openlp/plugins/remotes/lib/httprouter.py @@ -407,7 +407,7 @@ class HttpRouter(RegistryProperties): 'thumbnails/' + full_path)) if os.path.exists(full_path): ext, content_type = self.get_content_type(full_path) - image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin , width, height) + image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin, width, height) content = image_to_byte(image, False) if len(content) == 0: return self.do_not_found()