Updated chardet to version 3.0.4 and corrected the changelog file.

Thu, 22 Jun 2017 18:20:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 22 Jun 2017 18:20:04 +0200
changeset 5763
e2d839b69ff3
parent 5762
76ef5f340007
child 5764
51ceecf32585

Updated chardet to version 3.0.4 and corrected the changelog file.

ThirdParty/CharDet/README.rst file | annotate | diff | comparison | revisions
ThirdParty/CharDet/chardet/universaldetector.py file | annotate | diff | comparison | revisions
ThirdParty/CharDet/chardet/version.py file | annotate | diff | comparison | revisions
changelog file | annotate | diff | comparison | revisions
--- a/ThirdParty/CharDet/README.rst	Wed Jun 21 19:40:59 2017 +0200
+++ b/ThirdParty/CharDet/README.rst	Thu Jun 22 18:20:04 2017 +0200
@@ -6,11 +6,7 @@
    :target: https://travis-ci.org/chardet/chardet
 
 .. image:: https://img.shields.io/coveralls/chardet/chardet/stable.svg
-    :target: https://coveralls.io/r/chardet/chardet
-
-.. image:: https://img.shields.io/pypi/dm/chardet.svg
-   :target: https://warehouse.python.org/project/chardet/
-   :alt: PyPI downloads
+   :target: https://coveralls.io/r/chardet/chardet
 
 .. image:: https://img.shields.io/pypi/v/chardet.svg
    :target: https://warehouse.python.org/project/chardet/
@@ -36,7 +32,7 @@
    Our ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily
    disabled until we can retrain the models.
 
-Requires Python 2.6 or later
+Requires Python 2.6, 2.7, or 3.3+.
 
 Installation
 ------------
@@ -48,7 +44,7 @@
 Documentation
 -------------
 
-For users, docs are now available at http://chardet.readthedocs.org.
+For users, docs are now available at https://chardet.readthedocs.io/.
 
 Command-line Tool
 -----------------
--- a/ThirdParty/CharDet/chardet/universaldetector.py	Wed Jun 21 19:40:59 2017 +0200
+++ b/ThirdParty/CharDet/chardet/universaldetector.py	Thu Jun 22 18:20:04 2017 +0200
@@ -40,6 +40,7 @@
 import logging
 import re
 
+from .charsetgroupprober import CharSetGroupProber
 from .enums import InputState, LanguageFilter, ProbingState
 from .escprober import EscCharSetProber
 from .latin1prober import Latin1Prober
@@ -268,11 +269,18 @@
         if self.logger.getEffectiveLevel() == logging.DEBUG:
             if self.result['encoding'] is None:
                 self.logger.debug('no probers hit minimum threshold')
-                for prober in self._charset_probers[0].probers:
-                    if not prober:
+                for group_prober in self._charset_probers:
+                    if not group_prober:
                         continue
-                    self.logger.debug('%s %s confidence = %s',
-                                      prober.charset_name,
-                                      prober.language,
-                                      prober.get_confidence())
+                    if isinstance(group_prober, CharSetGroupProber):
+                        for prober in group_prober.probers:
+                            self.logger.debug('%s %s confidence = %s',
+                                              prober.charset_name,
+                                              prober.language,
+                                              prober.get_confidence())
+                    else:
+                        self.logger.debug('%s %s confidence = %s',
+                                          prober.charset_name,
+                                          prober.language,
+                                          prober.get_confidence())
         return self.result
--- a/ThirdParty/CharDet/chardet/version.py	Wed Jun 21 19:40:59 2017 +0200
+++ b/ThirdParty/CharDet/chardet/version.py	Thu Jun 22 18:20:04 2017 +0200
@@ -5,5 +5,5 @@
 :author: Dan Blanchard (dan.blanchard@gmail.com)
 """
 
-__version__ = "3.0.2"
+__version__ = "3.0.4"
 VERSION = __version__.split('.')
--- a/changelog	Wed Jun 21 19:40:59 2017 +0200
+++ b/changelog	Thu Jun 22 18:20:04 2017 +0200
@@ -1,10 +1,15 @@
 Change Log
 ----------
+Version 17.07:
+- bug fixes
+- Background Services
+  -- added functionality to limit the number of processes used for background
+     services
+- Third Party packages
+  -- updated chardet to 3.0.4
+
 Version 17.06:
 - bug fixes
-- Background Services
-  -- added functionality to limit the number of processes used for bachground
-     services
 - Checkers
   -- extended the source documentation checker to check for raised/documented
      exceptions and defined/documented signals

eric ide

mercurial