Skip to content

Commit 0e9b7bc

Browse files
Add __main__ module to support python -m chardet
1 parent 0649ffe commit 0e9b7bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chardet/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Wrapper so people can run python -m chardet"""
2+
3+
from .cli.chardetect import main
4+
5+
if __name__ == "__main__":
6+
main()

0 commit comments

Comments
 (0)