mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-27 14:01:15 +00:00
Update diff_files.py
This commit is contained in:
parent
6033ae9051
commit
9d26a4f2c6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user