We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac01ea3 commit 6dfbbaaCopy full SHA for 6dfbbaa
diff.py
@@ -80,7 +80,10 @@ def difference(self):
80
d = tmp_file2.readlines()
81
with open(diff, "w") as diff_file:
82
for x in range(len(o)):
83
- diff_file.write(self.difflib_parser(o[x],d[x]))
+ try:
84
+ diff_file.write(self.difflib_parser(o[x],d[x]))
85
+ except IndexError:
86
+ pass
87
88
tmp_file1.close()
89
tmp_file2.close()
@@ -124,6 +127,9 @@ def setupUi(self, MainWindow):
124
127
125
128
def display_diff(self):
126
129
global file1, diff
130
+
131
+ self.textEdit.clear()
132
+ self.textEdit_2.clear()
133
134
with open(file1, "r") as tmp_file1:
135
for line in tmp_file1:
0 commit comments