forked from 0x2620/oxjs
use current python-ox api
This commit is contained in:
parent
d2859f10ef
commit
17bb6fb036
2 changed files with 4 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ units = [
|
|||
'wb'
|
||||
]
|
||||
|
||||
txt = ox.cache.readUrlUnicode('http://unicode.org/Public/UNIDATA/NamesList.txt')
|
||||
txt = ox.cache.read_url('http://unicode.org/Public/UNIDATA/NamesList.txt', unicode=True)
|
||||
lines = txt.split('\n')
|
||||
length = len(lines)
|
||||
chars = {}
|
||||
|
|
@ -167,4 +167,4 @@ f.close()
|
|||
|
||||
f = open('json/no_ascii.json', 'w')
|
||||
f.write(json.dumps(sorted(no_ascii), indent=4))
|
||||
f.close()
|
||||
f.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue