From ca1a6be58a3f98c9418b95cb789840b0d76067d3 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 3 Oct 2016 19:25:59 +0200 Subject: [PATCH] tweak performance --- src/fenrir-package/screenDriver/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/screenDriver/linux.py b/src/fenrir-package/screenDriver/linux.py index 1a9fd966..36b3a386 100644 --- a/src/fenrir-package/screenDriver/linux.py +++ b/src/fenrir-package/screenDriver/linux.py @@ -139,5 +139,5 @@ class driver(): diffList = list(diff) - self.env['screenData']['newDelta'] = ''.join(x[2:] for x in diffList if x.startswith('+ ')) - self.env['screenData']['newNegativeDelta'] = ''.join(x[2:] for x in diffList if x.startswith('- ')) + self.env['screenData']['newDelta'] = ''.join(x[2:] for x in diffList if x[0] == '+') + self.env['screenData']['newNegativeDelta'] = ''.join(x[2:] for x in diffList if x[0] == '-')