summaryrefslogtreecommitdiff
path: root/src/pip/_vendor/chardet/gb2312prober.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pip/_vendor/chardet/gb2312prober.py')
-rw-r--r--src/pip/_vendor/chardet/gb2312prober.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/pip/_vendor/chardet/gb2312prober.py b/src/pip/_vendor/chardet/gb2312prober.py
index 8446d2dd9..d423e7311 100644
--- a/src/pip/_vendor/chardet/gb2312prober.py
+++ b/src/pip/_vendor/chardet/gb2312prober.py
@@ -25,22 +25,23 @@
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
-from .mbcharsetprober import MultiByteCharSetProber
-from .codingstatemachine import CodingStateMachine
from .chardistribution import GB2312DistributionAnalysis
+from .codingstatemachine import CodingStateMachine
+from .mbcharsetprober import MultiByteCharSetProber
from .mbcssm import GB2312_SM_MODEL
+
class GB2312Prober(MultiByteCharSetProber):
- def __init__(self):
- super(GB2312Prober, self).__init__()
+ def __init__(self) -> None:
+ super().__init__()
self.coding_sm = CodingStateMachine(GB2312_SM_MODEL)
self.distribution_analyzer = GB2312DistributionAnalysis()
self.reset()
@property
- def charset_name(self):
+ def charset_name(self) -> str:
return "GB2312"
@property
- def language(self):
+ def language(self) -> str:
return "Chinese"