mirror of
https://github.com/openwrt/packages.git
synced 2026-06-13 17:11:32 +08:00
python-chardet: bump to 7.0.1
Full release notes: https://github.com/chardet/chardet/releases/tag/7.0.1 Add 'python3-codecs' as dependency. No idea when (or if) this was ever needed, but it became obvious after test.sh was added. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
a268b500d9
commit
6e014ede19
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = python3-chardet ] || exit 0
|
||||
|
||||
python3 - << 'EOF'
|
||||
import chardet
|
||||
|
||||
result = chardet.detect(b'Hello, World!')
|
||||
assert result['encoding'] is not None
|
||||
|
||||
result = chardet.detect('Привет мир'.encode('utf-8'))
|
||||
assert result['encoding'] is not None
|
||||
EOF
|
||||
Reference in New Issue
Block a user