OLD | NEW |
1 ######################## BEGIN LICENSE BLOCK ######################## | 1 ######################## BEGIN LICENSE BLOCK ######################## |
2 # The Original Code is mozilla.org code. | 2 # The Original Code is mozilla.org code. |
3 # | 3 # |
4 # The Initial Developer of the Original Code is | 4 # The Initial Developer of the Original Code is |
5 # Netscape Communications Corporation. | 5 # Netscape Communications Corporation. |
6 # Portions created by the Initial Developer are Copyright (C) 1998 | 6 # Portions created by the Initial Developer are Copyright (C) 1998 |
7 # the Initial Developer. All Rights Reserved. | 7 # the Initial Developer. All Rights Reserved. |
8 # | 8 # |
9 # Contributor(s): | 9 # Contributor(s): |
10 # Mark Pilgrim - port to Python | 10 # Mark Pilgrim - port to Python |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class GB2312Prober(MultiByteCharSetProber): | 33 class GB2312Prober(MultiByteCharSetProber): |
34 def __init__(self): | 34 def __init__(self): |
35 MultiByteCharSetProber.__init__(self) | 35 MultiByteCharSetProber.__init__(self) |
36 self._mCodingSM = CodingStateMachine(GB2312SMModel) | 36 self._mCodingSM = CodingStateMachine(GB2312SMModel) |
37 self._mDistributionAnalyzer = GB2312DistributionAnalysis() | 37 self._mDistributionAnalyzer = GB2312DistributionAnalysis() |
38 self.reset() | 38 self.reset() |
39 | 39 |
40 def get_charset_name(self): | 40 def get_charset_name(self): |
41 return "GB2312" | 41 return "GB2312" |
OLD | NEW |