]>
jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/chardet/mbcsgroupprober.py
1 ######################## BEGIN LICENSE BLOCK ########################
2 # The Original Code is Mozilla Universal charset detector code.
4 # The Initial Developer of the Original Code is
5 # Netscape Communications Corporation.
6 # Portions created by the Initial Developer are Copyright (C) 2001
7 # the Initial Developer. All Rights Reserved.
10 # Mark Pilgrim - port to Python
11 # Shy Shalom - original C code
14 # This library is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU Lesser General Public
16 # License as published by the Free Software Foundation; either
17 # version 2.1 of the License, or (at your option) any later version.
19 # This library is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # Lesser General Public License for more details.
24 # You should have received a copy of the GNU Lesser General Public
25 # License along with this library; if not, write to the Free Software
26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
28 ######################### END LICENSE BLOCK #########################
30 from .big5prober
import Big5Prober
31 from .charsetgroupprober
import CharSetGroupProber
32 from .cp949prober
import CP949Prober
33 from .enums
import LanguageFilter
34 from .eucjpprober
import EUCJPProber
35 from .euckrprober
import EUCKRProber
36 from .euctwprober
import EUCTWProber
37 from .gb2312prober
import GB2312Prober
38 from .johabprober
import JOHABProber
39 from .sjisprober
import SJISProber
40 from .utf8prober
import UTF8Prober
43 class MBCSGroupProber(CharSetGroupProber
):
44 def __init__(self
, lang_filter
: LanguageFilter
= LanguageFilter
.NONE
) -> None:
45 super().__init
__(lang_filter
=lang_filter
)