From 2c4ed4cb2d4bddbda842c97d51cf2391c98d0518 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 19 Jul 2016 12:03:25 +0200 Subject: [PATCH] Update linux.py --- src/fenrir-package/screen/linux.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fenrir-package/screen/linux.py b/src/fenrir-package/screen/linux.py index 07ea2e9c..da32662c 100644 --- a/src/fenrir-package/screen/linux.py +++ b/src/fenrir-package/screen/linux.py @@ -60,7 +60,7 @@ class screen(): # changes on the screen if (environment['screenData']['oldContentText'] != environment['screenData']['newContentText']) and \ - (len(environment['screenData']['newContentText']) > 0): + (environment['screenData']['newContentText']) != '' ): # diff = difflib.ndiff(environment['screenData']['oldContentText'], environment['screenData']['newContentText']) if environment['screenData']['oldContentText'] == '' and\ environment['screenData']['newContentText'] != '': @@ -69,5 +69,4 @@ class screen(): diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'].split(' ')), " ".join(environment['screenData']['newContentText'].split(' '))) environment['screenData']['newDelta'] = ''.join(x[2:] for x in diff if x.startswith('+ ')) - return environment