Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: swarm_client/third_party/requests/packages/charade/cp949prober.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 ######################## BEGIN LICENSE BLOCK ########################
2 # The Original Code is mozilla.org code.
3 #
4 # The Initial Developer of the Original Code is
5 # Netscape Communications Corporation.
6 # Portions created by the Initial Developer are Copyright (C) 1998
7 # the Initial Developer. All Rights Reserved.
8 #
9 # Contributor(s):
10 # Mark Pilgrim - port to Python
11 #
12 # This library is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU Lesser General Public
14 # License as published by the Free Software Foundation; either
15 # version 2.1 of the License, or (at your option) any later version.
16 #
17 # This library is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # Lesser General Public License for more details.
21 #
22 # You should have received a copy of the GNU Lesser General Public
23 # License along with this library; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 # 02110-1301 USA
26 ######################### END LICENSE BLOCK #########################
27
28 from .mbcharsetprober import MultiByteCharSetProber
29 from .codingstatemachine import CodingStateMachine
30 from .chardistribution import EUCKRDistributionAnalysis
31 from .mbcssm import CP949SMModel
32
33
34 class CP949Prober(MultiByteCharSetProber):
35 def __init__(self):
36 MultiByteCharSetProber.__init__(self)
37 self._mCodingSM = CodingStateMachine(CP949SMModel)
38 # NOTE: CP949 is a superset of EUC-KR, so the distribution should be
39 # not different.
40 self._mDistributionAnalyzer = EUCKRDistributionAnalysis()
41 self.reset()
42
43 def get_charset_name(self):
44 return "CP949"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698