ThirdParty/CharDet/chardet/utf8prober.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 3537
7662053c3906
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
23 # License along with this library; if not, write to the Free Software 23 # License along with this library; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 # 02110-1301 USA 25 # 02110-1301 USA
26 ######################### END LICENSE BLOCK ######################### 26 ######################### END LICENSE BLOCK #########################
27 27
28 import constants, sys 28 from . import constants
29 from constants import eStart, eError, eItsMe 29 import sys
30 from charsetprober import CharSetProber 30 from .constants import eStart, eError, eItsMe
31 from codingstatemachine import CodingStateMachine 31 from .charsetprober import CharSetProber
32 from mbcssm import UTF8SMModel 32 from .codingstatemachine import CodingStateMachine
33 from .mbcssm import UTF8SMModel
33 34
34 ONE_CHAR_PROB = 0.5 35 ONE_CHAR_PROB = 0.5
35 36
36 class UTF8Prober(CharSetProber): 37 class UTF8Prober(CharSetProber):
37 def __init__(self): 38 def __init__(self):

eric ide

mercurial