cihai / unihan-etl

Export UNIHAN's database to csv, json or yaml
https://unihan-etl.git-pull.com
MIT License
52 stars 13 forks source link

Find out what to do with `zhon` #282

Closed tony closed 1 year ago

tony commented 1 year ago

Python 3.10+ are going to strain with these escape sequences

See https://github.com/tsroten/zhon/issues/34

``` ~/.cache/.../lib/python3.10/site-packages/zhon/pinyin.py:40 ~/.cache/.../lib/python3.10/site-packages/zhon/pinyin.py:40: DeprecationWarning: invalid escape sequence '\]' non_stops = """"#$%&'()*+,-/:;<=>@[\]^_`{|}~""" ~/.cache/.../lib/python3.10/site-packages/zhon/pinyin.py:153 ~/.cache/...0/lib/python3.10/site-packages/zhon/pinyin.py:153: DeprecationWarning: invalid escape sequence '\]' """[%(stops)s]['"\]\}\)]*""" ~/.cache/.../lib/python3.10/site-packages/zhon/pinyin.py:154 ~/.cache/.../lib/python3.10/site-packages/zhon/pinyin.py:154: DeprecationWarning: invalid escape sequence '\-' ) % {'word': word, 'non_stops': non_stops.replace('-', '\-'), -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ```

P.S. @tsroten - thank you for the package!