view bin/uniqs @ 9937:de2ba1200c56

<shachaf> ` echo \'^tmp/\' > .hgignore
author HackBot
date Sun, 11 Dec 2016 05:05:46 +0000
parents c989a1669243
children
line wrap: on
line source

#!/usr/bin/python
s=set()
try:
 while True:
  l=raw_input()
  if l not in s:
   s.add(l)
   print(l)
except EOFError:
 pass