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 24 matching lines...) Expand all Loading... |
35 def __init__(self): | 35 def __init__(self): |
36 MultiByteCharSetProber.__init__(self) | 36 MultiByteCharSetProber.__init__(self) |
37 self._mCodingSM = CodingStateMachine(CP949SMModel) | 37 self._mCodingSM = CodingStateMachine(CP949SMModel) |
38 # NOTE: CP949 is a superset of EUC-KR, so the distribution should be | 38 # NOTE: CP949 is a superset of EUC-KR, so the distribution should be |
39 # not different. | 39 # not different. |
40 self._mDistributionAnalyzer = EUCKRDistributionAnalysis() | 40 self._mDistributionAnalyzer = EUCKRDistributionAnalysis() |
41 self.reset() | 41 self.reset() |
42 | 42 |
43 def get_charset_name(self): | 43 def get_charset_name(self): |
44 return "CP949" | 44 return "CP949" |
OLD | NEW |