remove debug
This commit is contained in:
parent
d63f0d686f
commit
8c7dfd8c5d
@ -355,10 +355,10 @@ class driver(screenDriver):
|
|||||||
diff = difflib.ndiff(oldScreenText, newScreenText)
|
diff = difflib.ndiff(oldScreenText, newScreenText)
|
||||||
diffList = list(diff)
|
diffList = list(diff)
|
||||||
tempNewDelta = ''.join(x[2:] for x in diffList if x[0] == '+')
|
tempNewDelta = ''.join(x[2:] for x in diffList if x[0] == '+')
|
||||||
print(tempNewDelta, newScreenText[self.env['screen']['oldCursor']['x'] :self.env['screen']['newCursor']['x'] ])
|
|
||||||
if tempNewDelta != ''.join(newScreenText[self.env['screen']['oldCursor']['x']:self.env['screen']['newCursor']['x']]):
|
if tempNewDelta != ''.join(newScreenText[self.env['screen']['oldCursor']['x']:self.env['screen']['newCursor']['x']].rstrip()):
|
||||||
diffList = [' +' + self.env['screen']['newContentText'].split('\n')[self.env['screen']['newCursor']['y']]]
|
diffList = ['+ ' + self.env['screen']['newContentText'].split('\n')[self.env['screen']['newCursor']['y']]]
|
||||||
print(diffList)
|
|
||||||
typing = True
|
typing = True
|
||||||
else:
|
else:
|
||||||
diff = difflib.ndiff( oldScreenText.split('\n'),\
|
diff = difflib.ndiff( oldScreenText.split('\n'),\
|
||||||
|
Loading…
Reference in New Issue
Block a user