1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-25 21:29:36 +02:00

update JSON to latest

This commit is contained in:
Max Woolf
2015-08-10 19:07:24 -07:00
parent a564fe3113
commit d10f848922
3 changed files with 45 additions and 13 deletions

View File

@@ -15,6 +15,9 @@ with open('../blns.txt', 'r') as f:
# remove empty-lines and comments
content = [x for x in content if x and not x.startswith('#')]
# insert empty string at end since all are being removed (c.f. jimrandomh)
content.insert(0, "")
with open('../blns.json', 'wb') as f:
# write JSON to file; note the ensure_ascii parameter