Update diff_files.py

This commit is contained in:
Sebastian Raschka 2014-02-10 17:42:09 -05:00
parent 6033ae9051
commit 9d26a4f2c6

View File

@ -8,11 +8,11 @@ id_set2 = set()
with open('id_file1.txt', 'r') as id_file:
for line in id_file:
id_set1.add(line)
id_set1.add(line.strip())
with open('id_file2.txt', 'r') as id_file:
for line in id_file:
id_set2.add(line)
id_set2.add(line.strip())
diffs = id_set2.difference(id_set1)