Last active
August 29, 2015 14:01
-
-
Save xhochy/ecbc8658318360e98d18 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
ids = set() | |
with gzip.open(ids_file, 'rt') as idsf: | |
for id in idsf: | |
# Be careful to always stip the newline character at the end | |
ids.add(id.strip()) |
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
val ids = Resource.fromInputStream(new GZIPInputStream(new FileInputStream(locationIdsFile))).lines().toSet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment