Update linux.py
This commit is contained in:
parent
cd39f2ee29
commit
2c4ed4cb2d
@ -60,7 +60,7 @@ class screen():
|
|||||||
|
|
||||||
# changes on the screen
|
# changes on the screen
|
||||||
if (environment['screenData']['oldContentText'] != environment['screenData']['newContentText']) and \
|
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'])
|
# diff = difflib.ndiff(environment['screenData']['oldContentText'], environment['screenData']['newContentText'])
|
||||||
if environment['screenData']['oldContentText'] == '' and\
|
if environment['screenData']['oldContentText'] == '' and\
|
||||||
environment['screenData']['newContentText'] != '':
|
environment['screenData']['newContentText'] != '':
|
||||||
@ -69,5 +69,4 @@ class screen():
|
|||||||
diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'].split(' ')), " ".join(environment['screenData']['newContentText'].split(' ')))
|
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('+ '))
|
environment['screenData']['newDelta'] = ''.join(x[2:] for x in diff if x.startswith('+ '))
|
||||||
|
|
||||||
|
|
||||||
return environment
|
return environment
|
||||||
|
Loading…
Reference in New Issue
Block a user