Created
February 28, 2017 15:48
-
-
Save igaray/2579f1863b3d0fac1afacefbad72327a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("LINKS", "r") as linksfile: | |
with open("LINKS2", "r") as duplicatefile: | |
with open("LINKS3", "w") as dedpulicatedfile: | |
links = frozenset(linksfile) | |
for line in duplicatefile.readlines(): | |
if line not in links: | |
dedpulicatedfile.write(line) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment