mirror of
https://github.com/minimaxir/big-list-of-naughty-strings.git
synced 2025-09-24 21:01:32 +02:00
@@ -6,7 +6,7 @@ import json
|
||||
|
||||
with open('../blns.txt', 'r') as f:
|
||||
|
||||
# put all lines in the file into a Python list
|
||||
# put all lines in the file into a Python list
|
||||
content = f.readlines()
|
||||
|
||||
# above line leaves trailing newline characters; strip them out
|
||||
@@ -22,4 +22,4 @@ with open('../blns.json', 'wb') as f:
|
||||
|
||||
# write JSON to file; note the ensure_ascii parameter
|
||||
json.dump(content, f, indent=2, ensure_ascii=False)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user