From 164512b6a74c94a731fcee7435dce1ccfa2f71e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 17 Jun 2015 18:29:50 +0200 Subject: Spare code cosmetics --- module/plugins/internal/OCR.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'module/plugins/internal/OCR.py') diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py index 2d41ab39e..5fe6f2532 100644 --- a/module/plugins/internal/OCR.py +++ b/module/plugins/internal/OCR.py @@ -38,7 +38,9 @@ class OCR(Plugin): def deactivate(self): - """Delete all tmp images""" + """ + Delete all tmp images + """ pass @@ -47,8 +49,9 @@ class OCR(Plugin): def run(self, command): - """Run a command""" - + """ + Run a command + """ popen = subprocess.Popen(command, bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE) popen.wait() output = popen.stdout.read() + " | " + popen.stderr.read() @@ -189,8 +192,9 @@ class OCR(Plugin): def derotate_by_average(self): - """Rotate by checking each angle and guess most suitable""" - + """ + Rotate by checking each angle and guess most suitable + """ w, h = self.image.size pixels = self.pixels -- cgit v1.2.3