From a0b42a335ced90909ef74b0e69dcedf49d999eaf Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 12 Jan 2016 00:52:16 +0000 Subject: [PATCH] Update chardet packages 2.3.0 (26982c5) to 2.3.0 (d7fae98). --- CHANGES.md | 1 + lib/chardet/jpcntx.py | 2 +- lib/chardet/mbcssm.py | 2 +- lib/chardet/sbcharsetprober.py | 2 +- lib/chardet/universaldetector.py | 4 ++-- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 361911be..6459b176 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * Update backports/ssl_match_hostname 3.4.0.2 to 3.5.0.1 (r18) * Update cachecontrol library 0.11.2 to 0.11.5 * Update Certifi to 2015.11.20.1 (385476b) +* Update chardet packages 2.3.0 (26982c5) to 2.3.0 (d7fae98) ### 0.11.0 (2016-01-10 22:30:00 UTC) diff --git a/lib/chardet/jpcntx.py b/lib/chardet/jpcntx.py index dc654ab1..87d6672b 100644 --- a/lib/chardet/jpcntx.py +++ b/lib/chardet/jpcntx.py @@ -131,7 +131,7 @@ class JapaneseContextAnalysis(object): def reset(self): self._total_rel = 0 # total sequence received - # category counters, each interger counts sequence in its category + # category counters, each integer counts sequence in its category self._rel_sample = [0] * self.NUM_OF_CATEGORY # if last byte in current buffer is not the last byte of a character, # we need to know how many bytes to skip in next buffer diff --git a/lib/chardet/mbcssm.py b/lib/chardet/mbcssm.py index 822a4834..c28f43e5 100644 --- a/lib/chardet/mbcssm.py +++ b/lib/chardet/mbcssm.py @@ -323,7 +323,7 @@ GB2312_ST = ( # To be accurate, the length of class 6 can be either 2 or 4. # But it is not necessary to discriminate between the two since -# it is used for frequency analysis only, and we are validing +# it is used for frequency analysis only, and we are validating # each code range there as well. So it is safe to set it to be # 2 here. GB2312_CHAR_LEN_TABLE = (0, 1, 1, 1, 1, 1, 2) diff --git a/lib/chardet/sbcharsetprober.py b/lib/chardet/sbcharsetprober.py index 5fb4002b..92802605 100644 --- a/lib/chardet/sbcharsetprober.py +++ b/lib/chardet/sbcharsetprober.py @@ -103,7 +103,7 @@ class SingleByteCharSetProber(CharSetProber): self._state = ProbingState.found_it elif cf < self.NEGATIVE_SHORTCUT_THRESHOLD: self.logger.debug('%s confidence = %s, below negative ' - 'shortcut threshhold %s', + 'shortcut threshold %s', self._model['charset_name'], cf, self.NEGATIVE_SHORTCUT_THRESHOLD) self._state = ProbingState.not_me diff --git a/lib/chardet/universaldetector.py b/lib/chardet/universaldetector.py index 22cc7e7b..be73a00b 100644 --- a/lib/chardet/universaldetector.py +++ b/lib/chardet/universaldetector.py @@ -29,7 +29,7 @@ Module containing the UniversalDetector detector class, which is the primary class a user of ``chardet`` should use. -:author: Mark Pilgrim (intial port to Python) +:author: Mark Pilgrim (initial port to Python) :author: Shy Shalom (original C code) :author: Dan Blanchard (major refactoring for 3.0) :author: Ian Cordasco @@ -224,7 +224,7 @@ class UniversalDetector(object): return self.result if self.logger.getEffectiveLevel() == logging.DEBUG: - self.logger.debug('no probers hit minimum threshhold') + self.logger.debug('no probers hit minimum threshold') for prober in self._charset_probers[0].probers: if not prober: continue