com.googler.python 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/package.json +1 -1
  2. package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +1 -277
  3. package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +19 -7
  4. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/__init__.py +246 -0
  5. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/basecommand.py +373 -0
  6. package/python3.4.2/lib/python3.4/site-packages/pip/{baseparser.py → _internal/baseparser.py} +240 -224
  7. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/build_env.py +92 -0
  8. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cache.py +202 -0
  9. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cmdoptions.py +609 -0
  10. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/__init__.py +79 -0
  11. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/check.py +42 -0
  12. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/completion.py +94 -0
  13. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/configuration.py +227 -0
  14. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/download.py +233 -0
  15. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/freeze.py +96 -0
  16. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/hash.py +57 -0
  17. package/python3.4.2/lib/python3.4/site-packages/pip/{commands → _internal/commands}/help.py +36 -33
  18. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/install.py +477 -0
  19. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/list.py +343 -0
  20. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/search.py +135 -0
  21. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/show.py +164 -0
  22. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/uninstall.py +71 -0
  23. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/wheel.py +179 -0
  24. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/compat.py +235 -0
  25. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/configuration.py +378 -0
  26. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/download.py +922 -0
  27. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/exceptions.py +249 -0
  28. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/index.py +1117 -0
  29. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/locations.py +194 -0
  30. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/__init__.py +4 -0
  31. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/index.py +15 -0
  32. package/python3.4.2/lib/python3.4/site-packages/pip/{_vendor/requests/packages/urllib3/contrib → _internal/operations}/__init__.py +0 -0
  33. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/check.py +106 -0
  34. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/freeze.py +252 -0
  35. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/prepare.py +378 -0
  36. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/pep425tags.py +317 -0
  37. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/__init__.py +69 -0
  38. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_file.py +338 -0
  39. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_install.py +1115 -0
  40. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_set.py +164 -0
  41. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_uninstall.py +455 -0
  42. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/resolve.py +354 -0
  43. package/python3.4.2/lib/python3.4/site-packages/pip/{status_codes.py → _internal/status_codes.py} +8 -6
  44. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/__init__.py +0 -0
  45. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/appdirs.py +258 -0
  46. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/deprecation.py +77 -0
  47. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/encoding.py +33 -0
  48. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/filesystem.py +28 -0
  49. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/glibc.py +84 -0
  50. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/hashes.py +94 -0
  51. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/logging.py +132 -0
  52. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/misc.py +851 -0
  53. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/outdated.py +163 -0
  54. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/packaging.py +70 -0
  55. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/setuptools_build.py +8 -0
  56. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/temp_dir.py +82 -0
  57. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/typing.py +29 -0
  58. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/ui.py +421 -0
  59. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/__init__.py +471 -0
  60. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/bazaar.py +113 -0
  61. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/git.py +311 -0
  62. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/mercurial.py +105 -0
  63. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/subversion.py +271 -0
  64. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/wheel.py +817 -0
  65. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +109 -8
  66. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/appdirs.py +604 -0
  67. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
  68. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/_cmd.py +60 -0
  69. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py +134 -0
  70. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
  71. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
  72. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +133 -0
  73. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +43 -0
  74. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
  75. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py +373 -0
  76. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/filewrapper.py +78 -0
  77. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/heuristics.py +138 -0
  78. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py +194 -0
  79. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/wrapper.py +27 -0
  80. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__init__.py +3 -0
  81. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__main__.py +2 -0
  82. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests → certifi}/cacert.pem +1765 -2358
  83. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/core.py +37 -0
  84. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/__init__.py +39 -32
  85. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
  86. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/big5prober.py +47 -42
  87. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/chardistribution.py +233 -231
  88. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetgroupprober.py +106 -0
  89. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
  90. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
  91. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/chardetect.py +85 -0
  92. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
  93. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/compat.py +34 -34
  94. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/cp949prober.py +49 -44
  95. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/enums.py +76 -0
  96. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escprober.py +101 -0
  97. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escsm.py +246 -0
  98. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
  99. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
  100. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euckrprober.py +47 -42
  101. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwfreq.py +387 -428
  102. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwprober.py +46 -41
  103. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312freq.py +283 -472
  104. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312prober.py +46 -41
  105. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/hebrewprober.py +292 -283
  106. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jisfreq.py +325 -569
  107. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jpcntx.py +233 -219
  108. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langbulgarianmodel.py +228 -229
  109. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langcyrillicmodel.py +333 -329
  110. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langgreekmodel.py +225 -225
  111. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhebrewmodel.py +200 -201
  112. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhungarianmodel.py +225 -225
  113. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langthaimodel.py +199 -200
  114. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/langturkishmodel.py +193 -0
  115. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/latin1prober.py +145 -139
  116. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
  117. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/mbcsgroupprober.py +54 -54
  118. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
  119. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sbcharsetprober.py +132 -0
  120. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/sbcsgroupprober.py +73 -69
  121. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
  122. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
  123. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/utf8prober.py +82 -76
  124. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/version.py +9 -0
  125. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -7
  126. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +102 -50
  127. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +236 -190
  128. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +82 -56
  129. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +156 -137
  130. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +162 -120
  131. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -23
  132. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -6
  133. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -41
  134. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -761
  135. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -84
  136. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -788
  137. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -2607
  138. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1117 -1064
  139. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1318 -1301
  140. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +516 -488
  141. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1292 -1194
  142. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +393 -364
  143. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +131 -190
  144. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1068 -1026
  145. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +355 -317
  146. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +415 -323
  147. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  148. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  149. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1755 -1575
  150. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +736 -721
  151. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  152. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  153. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +984 -958
  154. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distro.py +1104 -0
  155. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +35 -23
  156. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{ihatexml.py → _ihatexml.py} +288 -285
  157. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{inputstream.py → _inputstream.py} +923 -881
  158. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{tokenizer.py → _tokenizer.py} +1721 -1731
  159. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/__init__.py +14 -12
  160. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/_base.py +37 -37
  161. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/datrie.py +44 -44
  162. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/py.py +67 -67
  163. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{utils.py → _utils.py} +124 -82
  164. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +2947 -3104
  165. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -20
  166. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/{_base.py → base.py} +12 -12
  167. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -65
  168. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -93
  169. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -205
  170. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +896 -12
  171. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -38
  172. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2791 -2713
  173. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
  174. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
  175. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
  176. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -44
  177. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -76
  178. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/{_base.py → base.py} +417 -377
  179. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +236 -227
  180. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +340 -337
  181. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +366 -369
  182. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -57
  183. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{_base.py → base.py} +252 -200
  184. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -46
  185. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +130 -138
  186. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{lxmletree.py → etree_lxml.py} +213 -208
  187. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{genshistream.py → genshi.py} +69 -69
  188. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/__init__.py +2 -0
  189. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/codec.py +118 -0
  190. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/compat.py +12 -0
  191. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/core.py +387 -0
  192. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/idnadata.py +1585 -0
  193. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/intranges.py +53 -0
  194. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/package_data.py +2 -0
  195. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/uts46data.py +7634 -0
  196. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/ipaddress.py +2419 -0
  197. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/__init__.py +347 -0
  198. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/linklockfile.py +73 -0
  199. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/mkdirlockfile.py +84 -0
  200. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/pidlockfile.py +190 -0
  201. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/sqlitelockfile.py +156 -0
  202. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/symlinklockfile.py +70 -0
  203. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/__init__.py +66 -0
  204. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/_version.py +1 -0
  205. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/exceptions.py +41 -0
  206. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/fallback.py +971 -0
  207. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__about__.py +21 -0
  208. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__init__.py +14 -0
  209. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_compat.py +30 -0
  210. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_structures.py +70 -0
  211. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/markers.py +301 -0
  212. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py +130 -0
  213. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/specifiers.py +774 -0
  214. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/utils.py +63 -0
  215. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/version.py +441 -0
  216. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{pkg_resources.py → pkg_resources/__init__.py} +3125 -2762
  217. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources/py31compat.py +22 -0
  218. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/__init__.py +127 -0
  219. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/bar.py +88 -0
  220. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/counter.py +48 -0
  221. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/helpers.py +91 -0
  222. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/spinner.py +44 -0
  223. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pyparsing.py +5720 -0
  224. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/__init__.py +3 -0
  225. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/core.py +13 -0
  226. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/parser.py +374 -0
  227. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/writer.py +127 -0
  228. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +123 -77
  229. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__version__.py +14 -0
  230. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
  231. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +525 -388
  232. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +152 -120
  233. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +293 -193
  234. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +18 -24
  235. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +73 -115
  236. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +542 -454
  237. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +122 -75
  238. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/help.py +120 -0
  239. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +34 -45
  240. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +948 -803
  241. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages.py +16 -0
  242. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +737 -637
  243. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +91 -88
  244. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +105 -127
  245. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +904 -673
  246. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/retrying.py +267 -0
  247. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +891 -646
  248. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/__init__.py +97 -0
  249. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/_collections.py +319 -0
  250. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/connection.py +373 -0
  251. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/connectionpool.py +905 -710
  252. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  253. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  254. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +593 -0
  255. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +343 -0
  256. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/appengine.py +296 -0
  257. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/contrib/ntlmpool.py +112 -120
  258. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +455 -0
  259. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +810 -0
  260. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/socks.py +188 -0
  261. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/exceptions.py +246 -0
  262. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/fields.py +178 -177
  263. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/filepost.py +94 -100
  264. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/__init__.py +5 -4
  265. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  266. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +53 -0
  267. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ordered_dict.py +259 -260
  268. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/six.py +868 -0
  269. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/__init__.py +19 -13
  270. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/_implementation.py +157 -105
  271. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/poolmanager.py +440 -0
  272. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/request.py +148 -141
  273. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/response.py +626 -0
  274. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/__init__.py +54 -0
  275. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/connection.py +130 -0
  276. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/request.py +118 -0
  277. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/response.py +81 -0
  278. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/retry.py +401 -0
  279. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/selectors.py +581 -0
  280. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/ssl_.py +341 -0
  281. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/timeout.py +242 -234
  282. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/url.py +230 -162
  283. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/wait.py +40 -0
  284. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
  285. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/labels.py +231 -0
  286. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
  287. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/tests.py +153 -0
  288. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
  289. package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/LICENSE.txt +20 -0
  290. package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/METADATA +78 -0
  291. package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/RECORD +294 -0
  292. package/python3.4.2/lib/python3.4/site-packages/{pip-1.5.6.dist-info → pip-10.0.0.dist-info}/WHEEL +6 -6
  293. package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/entry_points.txt +5 -0
  294. package/python3.4.2/lib/python3.4/site-packages/{pip-1.5.6.dist-info → pip-10.0.0.dist-info}/top_level.txt +0 -0
  295. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +0 -16
  296. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +0 -119
  297. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +0 -271
  298. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +0 -16
  299. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +0 -320
  300. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +0 -63
  301. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +0 -34
  302. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +0 -3
  303. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +0 -925
  304. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +0 -46
  305. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +0 -106
  306. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +0 -62
  307. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +0 -61
  308. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +0 -39
  309. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +0 -86
  310. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +0 -242
  311. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +0 -90
  312. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +0 -596
  313. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +0 -86
  314. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +0 -575
  315. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +0 -120
  316. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +0 -91
  317. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +0 -170
  318. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +0 -58
  319. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +0 -205
  320. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +0 -204
  321. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +0 -422
  322. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +0 -126
  323. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +0 -385
  324. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +0 -258
  325. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +0 -308
  326. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +0 -27
  327. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +0 -45
  328. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +0 -68
  329. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +0 -13
  330. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +0 -133
  331. package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +0 -138
  332. package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +0 -201
  333. package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +0 -371
  334. package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +0 -88
  335. package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +0 -42
  336. package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +0 -59
  337. package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +0 -114
  338. package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +0 -314
  339. package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +0 -162
  340. package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +0 -132
  341. package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +0 -80
  342. package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +0 -59
  343. package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +0 -7
  344. package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +0 -195
  345. package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +0 -351
  346. package/python3.4.2/lib/python3.4/site-packages/pip/download.py +0 -644
  347. package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +0 -46
  348. package/python3.4.2/lib/python3.4/site-packages/pip/index.py +0 -990
  349. package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +0 -171
  350. package/python3.4.2/lib/python3.4/site-packages/pip/log.py +0 -276
  351. package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +0 -102
  352. package/python3.4.2/lib/python3.4/site-packages/pip/req.py +0 -1931
  353. package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +0 -18
  354. package/python3.4.2/lib/python3.4/site-packages/pip/util.py +0 -720
  355. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +0 -251
  356. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +0 -131
  357. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +0 -194
  358. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +0 -151
  359. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +0 -273
  360. package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +0 -560
  361. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +0 -71
  362. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +0 -98
  363. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +0 -373
  364. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +0 -5
  365. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +0 -1
@@ -1,86 +0,0 @@
1
- ######################## BEGIN LICENSE BLOCK ########################
2
- # The Original Code is Mozilla Universal charset detector 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) 2001
7
- # the Initial Developer. All Rights Reserved.
8
- #
9
- # Contributor(s):
10
- # Mark Pilgrim - port to Python
11
- # Shy Shalom - original C code
12
- # Proofpoint, Inc.
13
- #
14
- # This library is free software; you can redistribute it and/or
15
- # modify it under the terms of the GNU Lesser General Public
16
- # License as published by the Free Software Foundation; either
17
- # version 2.1 of the License, or (at your option) any later version.
18
- #
19
- # This library is distributed in the hope that it will be useful,
20
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
- # Lesser General Public License for more details.
23
- #
24
- # You should have received a copy of the GNU Lesser General Public
25
- # License along with this library; if not, write to the Free Software
26
- # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27
- # 02110-1301 USA
28
- ######################### END LICENSE BLOCK #########################
29
-
30
- import sys
31
- from . import constants
32
- from .charsetprober import CharSetProber
33
-
34
-
35
- class MultiByteCharSetProber(CharSetProber):
36
- def __init__(self):
37
- CharSetProber.__init__(self)
38
- self._mDistributionAnalyzer = None
39
- self._mCodingSM = None
40
- self._mLastChar = [0, 0]
41
-
42
- def reset(self):
43
- CharSetProber.reset(self)
44
- if self._mCodingSM:
45
- self._mCodingSM.reset()
46
- if self._mDistributionAnalyzer:
47
- self._mDistributionAnalyzer.reset()
48
- self._mLastChar = [0, 0]
49
-
50
- def get_charset_name(self):
51
- pass
52
-
53
- def feed(self, aBuf):
54
- aLen = len(aBuf)
55
- for i in range(0, aLen):
56
- codingState = self._mCodingSM.next_state(aBuf[i])
57
- if codingState == constants.eError:
58
- if constants._debug:
59
- sys.stderr.write(self.get_charset_name()
60
- + ' prober hit error at byte ' + str(i)
61
- + '\n')
62
- self._mState = constants.eNotMe
63
- break
64
- elif codingState == constants.eItsMe:
65
- self._mState = constants.eFoundIt
66
- break
67
- elif codingState == constants.eStart:
68
- charLen = self._mCodingSM.get_current_charlen()
69
- if i == 0:
70
- self._mLastChar[1] = aBuf[0]
71
- self._mDistributionAnalyzer.feed(self._mLastChar, charLen)
72
- else:
73
- self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],
74
- charLen)
75
-
76
- self._mLastChar[0] = aBuf[aLen - 1]
77
-
78
- if self.get_state() == constants.eDetecting:
79
- if (self._mDistributionAnalyzer.got_enough_data() and
80
- (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):
81
- self._mState = constants.eFoundIt
82
-
83
- return self.get_state()
84
-
85
- def get_confidence(self):
86
- return self._mDistributionAnalyzer.get_confidence()
@@ -1,575 +0,0 @@
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 .constants import eStart, eError, eItsMe
29
-
30
- # BIG5
31
-
32
- BIG5_cls = (
33
- 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as legal value
34
- 1,1,1,1,1,1,0,0, # 08 - 0f
35
- 1,1,1,1,1,1,1,1, # 10 - 17
36
- 1,1,1,0,1,1,1,1, # 18 - 1f
37
- 1,1,1,1,1,1,1,1, # 20 - 27
38
- 1,1,1,1,1,1,1,1, # 28 - 2f
39
- 1,1,1,1,1,1,1,1, # 30 - 37
40
- 1,1,1,1,1,1,1,1, # 38 - 3f
41
- 2,2,2,2,2,2,2,2, # 40 - 47
42
- 2,2,2,2,2,2,2,2, # 48 - 4f
43
- 2,2,2,2,2,2,2,2, # 50 - 57
44
- 2,2,2,2,2,2,2,2, # 58 - 5f
45
- 2,2,2,2,2,2,2,2, # 60 - 67
46
- 2,2,2,2,2,2,2,2, # 68 - 6f
47
- 2,2,2,2,2,2,2,2, # 70 - 77
48
- 2,2,2,2,2,2,2,1, # 78 - 7f
49
- 4,4,4,4,4,4,4,4, # 80 - 87
50
- 4,4,4,4,4,4,4,4, # 88 - 8f
51
- 4,4,4,4,4,4,4,4, # 90 - 97
52
- 4,4,4,4,4,4,4,4, # 98 - 9f
53
- 4,3,3,3,3,3,3,3, # a0 - a7
54
- 3,3,3,3,3,3,3,3, # a8 - af
55
- 3,3,3,3,3,3,3,3, # b0 - b7
56
- 3,3,3,3,3,3,3,3, # b8 - bf
57
- 3,3,3,3,3,3,3,3, # c0 - c7
58
- 3,3,3,3,3,3,3,3, # c8 - cf
59
- 3,3,3,3,3,3,3,3, # d0 - d7
60
- 3,3,3,3,3,3,3,3, # d8 - df
61
- 3,3,3,3,3,3,3,3, # e0 - e7
62
- 3,3,3,3,3,3,3,3, # e8 - ef
63
- 3,3,3,3,3,3,3,3, # f0 - f7
64
- 3,3,3,3,3,3,3,0 # f8 - ff
65
- )
66
-
67
- BIG5_st = (
68
- eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07
69
- eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,#08-0f
70
- eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart#10-17
71
- )
72
-
73
- Big5CharLenTable = (0, 1, 1, 2, 0)
74
-
75
- Big5SMModel = {'classTable': BIG5_cls,
76
- 'classFactor': 5,
77
- 'stateTable': BIG5_st,
78
- 'charLenTable': Big5CharLenTable,
79
- 'name': 'Big5'}
80
-
81
- # CP949
82
-
83
- CP949_cls = (
84
- 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,0,0, # 00 - 0f
85
- 1,1,1,1,1,1,1,1, 1,1,1,0,1,1,1,1, # 10 - 1f
86
- 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 20 - 2f
87
- 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 30 - 3f
88
- 1,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4, # 40 - 4f
89
- 4,4,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 50 - 5f
90
- 1,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5, # 60 - 6f
91
- 5,5,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 70 - 7f
92
- 0,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 80 - 8f
93
- 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 90 - 9f
94
- 6,7,7,7,7,7,7,7, 7,7,7,7,7,8,8,8, # a0 - af
95
- 7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7, # b0 - bf
96
- 7,7,7,7,7,7,9,2, 2,3,2,2,2,2,2,2, # c0 - cf
97
- 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # d0 - df
98
- 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # e0 - ef
99
- 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,0, # f0 - ff
100
- )
101
-
102
- CP949_st = (
103
- #cls= 0 1 2 3 4 5 6 7 8 9 # previous state =
104
- eError,eStart, 3,eError,eStart,eStart, 4, 5,eError, 6, # eStart
105
- eError,eError,eError,eError,eError,eError,eError,eError,eError,eError, # eError
106
- eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe, # eItsMe
107
- eError,eError,eStart,eStart,eError,eError,eError,eStart,eStart,eStart, # 3
108
- eError,eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 4
109
- eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 5
110
- eError,eStart,eStart,eStart,eStart,eError,eError,eStart,eStart,eStart, # 6
111
- )
112
-
113
- CP949CharLenTable = (0, 1, 2, 0, 1, 1, 2, 2, 0, 2)
114
-
115
- CP949SMModel = {'classTable': CP949_cls,
116
- 'classFactor': 10,
117
- 'stateTable': CP949_st,
118
- 'charLenTable': CP949CharLenTable,
119
- 'name': 'CP949'}
120
-
121
- # EUC-JP
122
-
123
- EUCJP_cls = (
124
- 4,4,4,4,4,4,4,4, # 00 - 07
125
- 4,4,4,4,4,4,5,5, # 08 - 0f
126
- 4,4,4,4,4,4,4,4, # 10 - 17
127
- 4,4,4,5,4,4,4,4, # 18 - 1f
128
- 4,4,4,4,4,4,4,4, # 20 - 27
129
- 4,4,4,4,4,4,4,4, # 28 - 2f
130
- 4,4,4,4,4,4,4,4, # 30 - 37
131
- 4,4,4,4,4,4,4,4, # 38 - 3f
132
- 4,4,4,4,4,4,4,4, # 40 - 47
133
- 4,4,4,4,4,4,4,4, # 48 - 4f
134
- 4,4,4,4,4,4,4,4, # 50 - 57
135
- 4,4,4,4,4,4,4,4, # 58 - 5f
136
- 4,4,4,4,4,4,4,4, # 60 - 67
137
- 4,4,4,4,4,4,4,4, # 68 - 6f
138
- 4,4,4,4,4,4,4,4, # 70 - 77
139
- 4,4,4,4,4,4,4,4, # 78 - 7f
140
- 5,5,5,5,5,5,5,5, # 80 - 87
141
- 5,5,5,5,5,5,1,3, # 88 - 8f
142
- 5,5,5,5,5,5,5,5, # 90 - 97
143
- 5,5,5,5,5,5,5,5, # 98 - 9f
144
- 5,2,2,2,2,2,2,2, # a0 - a7
145
- 2,2,2,2,2,2,2,2, # a8 - af
146
- 2,2,2,2,2,2,2,2, # b0 - b7
147
- 2,2,2,2,2,2,2,2, # b8 - bf
148
- 2,2,2,2,2,2,2,2, # c0 - c7
149
- 2,2,2,2,2,2,2,2, # c8 - cf
150
- 2,2,2,2,2,2,2,2, # d0 - d7
151
- 2,2,2,2,2,2,2,2, # d8 - df
152
- 0,0,0,0,0,0,0,0, # e0 - e7
153
- 0,0,0,0,0,0,0,0, # e8 - ef
154
- 0,0,0,0,0,0,0,0, # f0 - f7
155
- 0,0,0,0,0,0,0,5 # f8 - ff
156
- )
157
-
158
- EUCJP_st = (
159
- 3, 4, 3, 5,eStart,eError,eError,eError,#00-07
160
- eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f
161
- eItsMe,eItsMe,eStart,eError,eStart,eError,eError,eError,#10-17
162
- eError,eError,eStart,eError,eError,eError, 3,eError,#18-1f
163
- 3,eError,eError,eError,eStart,eStart,eStart,eStart#20-27
164
- )
165
-
166
- EUCJPCharLenTable = (2, 2, 2, 3, 1, 0)
167
-
168
- EUCJPSMModel = {'classTable': EUCJP_cls,
169
- 'classFactor': 6,
170
- 'stateTable': EUCJP_st,
171
- 'charLenTable': EUCJPCharLenTable,
172
- 'name': 'EUC-JP'}
173
-
174
- # EUC-KR
175
-
176
- EUCKR_cls = (
177
- 1,1,1,1,1,1,1,1, # 00 - 07
178
- 1,1,1,1,1,1,0,0, # 08 - 0f
179
- 1,1,1,1,1,1,1,1, # 10 - 17
180
- 1,1,1,0,1,1,1,1, # 18 - 1f
181
- 1,1,1,1,1,1,1,1, # 20 - 27
182
- 1,1,1,1,1,1,1,1, # 28 - 2f
183
- 1,1,1,1,1,1,1,1, # 30 - 37
184
- 1,1,1,1,1,1,1,1, # 38 - 3f
185
- 1,1,1,1,1,1,1,1, # 40 - 47
186
- 1,1,1,1,1,1,1,1, # 48 - 4f
187
- 1,1,1,1,1,1,1,1, # 50 - 57
188
- 1,1,1,1,1,1,1,1, # 58 - 5f
189
- 1,1,1,1,1,1,1,1, # 60 - 67
190
- 1,1,1,1,1,1,1,1, # 68 - 6f
191
- 1,1,1,1,1,1,1,1, # 70 - 77
192
- 1,1,1,1,1,1,1,1, # 78 - 7f
193
- 0,0,0,0,0,0,0,0, # 80 - 87
194
- 0,0,0,0,0,0,0,0, # 88 - 8f
195
- 0,0,0,0,0,0,0,0, # 90 - 97
196
- 0,0,0,0,0,0,0,0, # 98 - 9f
197
- 0,2,2,2,2,2,2,2, # a0 - a7
198
- 2,2,2,2,2,3,3,3, # a8 - af
199
- 2,2,2,2,2,2,2,2, # b0 - b7
200
- 2,2,2,2,2,2,2,2, # b8 - bf
201
- 2,2,2,2,2,2,2,2, # c0 - c7
202
- 2,3,2,2,2,2,2,2, # c8 - cf
203
- 2,2,2,2,2,2,2,2, # d0 - d7
204
- 2,2,2,2,2,2,2,2, # d8 - df
205
- 2,2,2,2,2,2,2,2, # e0 - e7
206
- 2,2,2,2,2,2,2,2, # e8 - ef
207
- 2,2,2,2,2,2,2,2, # f0 - f7
208
- 2,2,2,2,2,2,2,0 # f8 - ff
209
- )
210
-
211
- EUCKR_st = (
212
- eError,eStart, 3,eError,eError,eError,eError,eError,#00-07
213
- eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,eStart #08-0f
214
- )
215
-
216
- EUCKRCharLenTable = (0, 1, 2, 0)
217
-
218
- EUCKRSMModel = {'classTable': EUCKR_cls,
219
- 'classFactor': 4,
220
- 'stateTable': EUCKR_st,
221
- 'charLenTable': EUCKRCharLenTable,
222
- 'name': 'EUC-KR'}
223
-
224
- # EUC-TW
225
-
226
- EUCTW_cls = (
227
- 2,2,2,2,2,2,2,2, # 00 - 07
228
- 2,2,2,2,2,2,0,0, # 08 - 0f
229
- 2,2,2,2,2,2,2,2, # 10 - 17
230
- 2,2,2,0,2,2,2,2, # 18 - 1f
231
- 2,2,2,2,2,2,2,2, # 20 - 27
232
- 2,2,2,2,2,2,2,2, # 28 - 2f
233
- 2,2,2,2,2,2,2,2, # 30 - 37
234
- 2,2,2,2,2,2,2,2, # 38 - 3f
235
- 2,2,2,2,2,2,2,2, # 40 - 47
236
- 2,2,2,2,2,2,2,2, # 48 - 4f
237
- 2,2,2,2,2,2,2,2, # 50 - 57
238
- 2,2,2,2,2,2,2,2, # 58 - 5f
239
- 2,2,2,2,2,2,2,2, # 60 - 67
240
- 2,2,2,2,2,2,2,2, # 68 - 6f
241
- 2,2,2,2,2,2,2,2, # 70 - 77
242
- 2,2,2,2,2,2,2,2, # 78 - 7f
243
- 0,0,0,0,0,0,0,0, # 80 - 87
244
- 0,0,0,0,0,0,6,0, # 88 - 8f
245
- 0,0,0,0,0,0,0,0, # 90 - 97
246
- 0,0,0,0,0,0,0,0, # 98 - 9f
247
- 0,3,4,4,4,4,4,4, # a0 - a7
248
- 5,5,1,1,1,1,1,1, # a8 - af
249
- 1,1,1,1,1,1,1,1, # b0 - b7
250
- 1,1,1,1,1,1,1,1, # b8 - bf
251
- 1,1,3,1,3,3,3,3, # c0 - c7
252
- 3,3,3,3,3,3,3,3, # c8 - cf
253
- 3,3,3,3,3,3,3,3, # d0 - d7
254
- 3,3,3,3,3,3,3,3, # d8 - df
255
- 3,3,3,3,3,3,3,3, # e0 - e7
256
- 3,3,3,3,3,3,3,3, # e8 - ef
257
- 3,3,3,3,3,3,3,3, # f0 - f7
258
- 3,3,3,3,3,3,3,0 # f8 - ff
259
- )
260
-
261
- EUCTW_st = (
262
- eError,eError,eStart, 3, 3, 3, 4,eError,#00-07
263
- eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f
264
- eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eStart,eError,#10-17
265
- eStart,eStart,eStart,eError,eError,eError,eError,eError,#18-1f
266
- 5,eError,eError,eError,eStart,eError,eStart,eStart,#20-27
267
- eStart,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f
268
- )
269
-
270
- EUCTWCharLenTable = (0, 0, 1, 2, 2, 2, 3)
271
-
272
- EUCTWSMModel = {'classTable': EUCTW_cls,
273
- 'classFactor': 7,
274
- 'stateTable': EUCTW_st,
275
- 'charLenTable': EUCTWCharLenTable,
276
- 'name': 'x-euc-tw'}
277
-
278
- # GB2312
279
-
280
- GB2312_cls = (
281
- 1,1,1,1,1,1,1,1, # 00 - 07
282
- 1,1,1,1,1,1,0,0, # 08 - 0f
283
- 1,1,1,1,1,1,1,1, # 10 - 17
284
- 1,1,1,0,1,1,1,1, # 18 - 1f
285
- 1,1,1,1,1,1,1,1, # 20 - 27
286
- 1,1,1,1,1,1,1,1, # 28 - 2f
287
- 3,3,3,3,3,3,3,3, # 30 - 37
288
- 3,3,1,1,1,1,1,1, # 38 - 3f
289
- 2,2,2,2,2,2,2,2, # 40 - 47
290
- 2,2,2,2,2,2,2,2, # 48 - 4f
291
- 2,2,2,2,2,2,2,2, # 50 - 57
292
- 2,2,2,2,2,2,2,2, # 58 - 5f
293
- 2,2,2,2,2,2,2,2, # 60 - 67
294
- 2,2,2,2,2,2,2,2, # 68 - 6f
295
- 2,2,2,2,2,2,2,2, # 70 - 77
296
- 2,2,2,2,2,2,2,4, # 78 - 7f
297
- 5,6,6,6,6,6,6,6, # 80 - 87
298
- 6,6,6,6,6,6,6,6, # 88 - 8f
299
- 6,6,6,6,6,6,6,6, # 90 - 97
300
- 6,6,6,6,6,6,6,6, # 98 - 9f
301
- 6,6,6,6,6,6,6,6, # a0 - a7
302
- 6,6,6,6,6,6,6,6, # a8 - af
303
- 6,6,6,6,6,6,6,6, # b0 - b7
304
- 6,6,6,6,6,6,6,6, # b8 - bf
305
- 6,6,6,6,6,6,6,6, # c0 - c7
306
- 6,6,6,6,6,6,6,6, # c8 - cf
307
- 6,6,6,6,6,6,6,6, # d0 - d7
308
- 6,6,6,6,6,6,6,6, # d8 - df
309
- 6,6,6,6,6,6,6,6, # e0 - e7
310
- 6,6,6,6,6,6,6,6, # e8 - ef
311
- 6,6,6,6,6,6,6,6, # f0 - f7
312
- 6,6,6,6,6,6,6,0 # f8 - ff
313
- )
314
-
315
- GB2312_st = (
316
- eError,eStart,eStart,eStart,eStart,eStart, 3,eError,#00-07
317
- eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f
318
- eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,#10-17
319
- 4,eError,eStart,eStart,eError,eError,eError,eError,#18-1f
320
- eError,eError, 5,eError,eError,eError,eItsMe,eError,#20-27
321
- eError,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f
322
- )
323
-
324
- # To be accurate, the length of class 6 can be either 2 or 4.
325
- # But it is not necessary to discriminate between the two since
326
- # it is used for frequency analysis only, and we are validing
327
- # each code range there as well. So it is safe to set it to be
328
- # 2 here.
329
- GB2312CharLenTable = (0, 1, 1, 1, 1, 1, 2)
330
-
331
- GB2312SMModel = {'classTable': GB2312_cls,
332
- 'classFactor': 7,
333
- 'stateTable': GB2312_st,
334
- 'charLenTable': GB2312CharLenTable,
335
- 'name': 'GB2312'}
336
-
337
- # Shift_JIS
338
-
339
- SJIS_cls = (
340
- 1,1,1,1,1,1,1,1, # 00 - 07
341
- 1,1,1,1,1,1,0,0, # 08 - 0f
342
- 1,1,1,1,1,1,1,1, # 10 - 17
343
- 1,1,1,0,1,1,1,1, # 18 - 1f
344
- 1,1,1,1,1,1,1,1, # 20 - 27
345
- 1,1,1,1,1,1,1,1, # 28 - 2f
346
- 1,1,1,1,1,1,1,1, # 30 - 37
347
- 1,1,1,1,1,1,1,1, # 38 - 3f
348
- 2,2,2,2,2,2,2,2, # 40 - 47
349
- 2,2,2,2,2,2,2,2, # 48 - 4f
350
- 2,2,2,2,2,2,2,2, # 50 - 57
351
- 2,2,2,2,2,2,2,2, # 58 - 5f
352
- 2,2,2,2,2,2,2,2, # 60 - 67
353
- 2,2,2,2,2,2,2,2, # 68 - 6f
354
- 2,2,2,2,2,2,2,2, # 70 - 77
355
- 2,2,2,2,2,2,2,1, # 78 - 7f
356
- 3,3,3,3,3,3,3,3, # 80 - 87
357
- 3,3,3,3,3,3,3,3, # 88 - 8f
358
- 3,3,3,3,3,3,3,3, # 90 - 97
359
- 3,3,3,3,3,3,3,3, # 98 - 9f
360
- #0xa0 is illegal in sjis encoding, but some pages does
361
- #contain such byte. We need to be more error forgiven.
362
- 2,2,2,2,2,2,2,2, # a0 - a7
363
- 2,2,2,2,2,2,2,2, # a8 - af
364
- 2,2,2,2,2,2,2,2, # b0 - b7
365
- 2,2,2,2,2,2,2,2, # b8 - bf
366
- 2,2,2,2,2,2,2,2, # c0 - c7
367
- 2,2,2,2,2,2,2,2, # c8 - cf
368
- 2,2,2,2,2,2,2,2, # d0 - d7
369
- 2,2,2,2,2,2,2,2, # d8 - df
370
- 3,3,3,3,3,3,3,3, # e0 - e7
371
- 3,3,3,3,3,4,4,4, # e8 - ef
372
- 4,4,4,4,4,4,4,4, # f0 - f7
373
- 4,4,4,4,4,0,0,0 # f8 - ff
374
- )
375
-
376
-
377
- SJIS_st = (
378
- eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07
379
- eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f
380
- eItsMe,eItsMe,eError,eError,eStart,eStart,eStart,eStart #10-17
381
- )
382
-
383
- SJISCharLenTable = (0, 1, 1, 2, 0, 0)
384
-
385
- SJISSMModel = {'classTable': SJIS_cls,
386
- 'classFactor': 6,
387
- 'stateTable': SJIS_st,
388
- 'charLenTable': SJISCharLenTable,
389
- 'name': 'Shift_JIS'}
390
-
391
- # UCS2-BE
392
-
393
- UCS2BE_cls = (
394
- 0,0,0,0,0,0,0,0, # 00 - 07
395
- 0,0,1,0,0,2,0,0, # 08 - 0f
396
- 0,0,0,0,0,0,0,0, # 10 - 17
397
- 0,0,0,3,0,0,0,0, # 18 - 1f
398
- 0,0,0,0,0,0,0,0, # 20 - 27
399
- 0,3,3,3,3,3,0,0, # 28 - 2f
400
- 0,0,0,0,0,0,0,0, # 30 - 37
401
- 0,0,0,0,0,0,0,0, # 38 - 3f
402
- 0,0,0,0,0,0,0,0, # 40 - 47
403
- 0,0,0,0,0,0,0,0, # 48 - 4f
404
- 0,0,0,0,0,0,0,0, # 50 - 57
405
- 0,0,0,0,0,0,0,0, # 58 - 5f
406
- 0,0,0,0,0,0,0,0, # 60 - 67
407
- 0,0,0,0,0,0,0,0, # 68 - 6f
408
- 0,0,0,0,0,0,0,0, # 70 - 77
409
- 0,0,0,0,0,0,0,0, # 78 - 7f
410
- 0,0,0,0,0,0,0,0, # 80 - 87
411
- 0,0,0,0,0,0,0,0, # 88 - 8f
412
- 0,0,0,0,0,0,0,0, # 90 - 97
413
- 0,0,0,0,0,0,0,0, # 98 - 9f
414
- 0,0,0,0,0,0,0,0, # a0 - a7
415
- 0,0,0,0,0,0,0,0, # a8 - af
416
- 0,0,0,0,0,0,0,0, # b0 - b7
417
- 0,0,0,0,0,0,0,0, # b8 - bf
418
- 0,0,0,0,0,0,0,0, # c0 - c7
419
- 0,0,0,0,0,0,0,0, # c8 - cf
420
- 0,0,0,0,0,0,0,0, # d0 - d7
421
- 0,0,0,0,0,0,0,0, # d8 - df
422
- 0,0,0,0,0,0,0,0, # e0 - e7
423
- 0,0,0,0,0,0,0,0, # e8 - ef
424
- 0,0,0,0,0,0,0,0, # f0 - f7
425
- 0,0,0,0,0,0,4,5 # f8 - ff
426
- )
427
-
428
- UCS2BE_st = (
429
- 5, 7, 7,eError, 4, 3,eError,eError,#00-07
430
- eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f
431
- eItsMe,eItsMe, 6, 6, 6, 6,eError,eError,#10-17
432
- 6, 6, 6, 6, 6,eItsMe, 6, 6,#18-1f
433
- 6, 6, 6, 6, 5, 7, 7,eError,#20-27
434
- 5, 8, 6, 6,eError, 6, 6, 6,#28-2f
435
- 6, 6, 6, 6,eError,eError,eStart,eStart #30-37
436
- )
437
-
438
- UCS2BECharLenTable = (2, 2, 2, 0, 2, 2)
439
-
440
- UCS2BESMModel = {'classTable': UCS2BE_cls,
441
- 'classFactor': 6,
442
- 'stateTable': UCS2BE_st,
443
- 'charLenTable': UCS2BECharLenTable,
444
- 'name': 'UTF-16BE'}
445
-
446
- # UCS2-LE
447
-
448
- UCS2LE_cls = (
449
- 0,0,0,0,0,0,0,0, # 00 - 07
450
- 0,0,1,0,0,2,0,0, # 08 - 0f
451
- 0,0,0,0,0,0,0,0, # 10 - 17
452
- 0,0,0,3,0,0,0,0, # 18 - 1f
453
- 0,0,0,0,0,0,0,0, # 20 - 27
454
- 0,3,3,3,3,3,0,0, # 28 - 2f
455
- 0,0,0,0,0,0,0,0, # 30 - 37
456
- 0,0,0,0,0,0,0,0, # 38 - 3f
457
- 0,0,0,0,0,0,0,0, # 40 - 47
458
- 0,0,0,0,0,0,0,0, # 48 - 4f
459
- 0,0,0,0,0,0,0,0, # 50 - 57
460
- 0,0,0,0,0,0,0,0, # 58 - 5f
461
- 0,0,0,0,0,0,0,0, # 60 - 67
462
- 0,0,0,0,0,0,0,0, # 68 - 6f
463
- 0,0,0,0,0,0,0,0, # 70 - 77
464
- 0,0,0,0,0,0,0,0, # 78 - 7f
465
- 0,0,0,0,0,0,0,0, # 80 - 87
466
- 0,0,0,0,0,0,0,0, # 88 - 8f
467
- 0,0,0,0,0,0,0,0, # 90 - 97
468
- 0,0,0,0,0,0,0,0, # 98 - 9f
469
- 0,0,0,0,0,0,0,0, # a0 - a7
470
- 0,0,0,0,0,0,0,0, # a8 - af
471
- 0,0,0,0,0,0,0,0, # b0 - b7
472
- 0,0,0,0,0,0,0,0, # b8 - bf
473
- 0,0,0,0,0,0,0,0, # c0 - c7
474
- 0,0,0,0,0,0,0,0, # c8 - cf
475
- 0,0,0,0,0,0,0,0, # d0 - d7
476
- 0,0,0,0,0,0,0,0, # d8 - df
477
- 0,0,0,0,0,0,0,0, # e0 - e7
478
- 0,0,0,0,0,0,0,0, # e8 - ef
479
- 0,0,0,0,0,0,0,0, # f0 - f7
480
- 0,0,0,0,0,0,4,5 # f8 - ff
481
- )
482
-
483
- UCS2LE_st = (
484
- 6, 6, 7, 6, 4, 3,eError,eError,#00-07
485
- eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f
486
- eItsMe,eItsMe, 5, 5, 5,eError,eItsMe,eError,#10-17
487
- 5, 5, 5,eError, 5,eError, 6, 6,#18-1f
488
- 7, 6, 8, 8, 5, 5, 5,eError,#20-27
489
- 5, 5, 5,eError,eError,eError, 5, 5,#28-2f
490
- 5, 5, 5,eError, 5,eError,eStart,eStart #30-37
491
- )
492
-
493
- UCS2LECharLenTable = (2, 2, 2, 2, 2, 2)
494
-
495
- UCS2LESMModel = {'classTable': UCS2LE_cls,
496
- 'classFactor': 6,
497
- 'stateTable': UCS2LE_st,
498
- 'charLenTable': UCS2LECharLenTable,
499
- 'name': 'UTF-16LE'}
500
-
501
- # UTF-8
502
-
503
- UTF8_cls = (
504
- 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as a legal value
505
- 1,1,1,1,1,1,0,0, # 08 - 0f
506
- 1,1,1,1,1,1,1,1, # 10 - 17
507
- 1,1,1,0,1,1,1,1, # 18 - 1f
508
- 1,1,1,1,1,1,1,1, # 20 - 27
509
- 1,1,1,1,1,1,1,1, # 28 - 2f
510
- 1,1,1,1,1,1,1,1, # 30 - 37
511
- 1,1,1,1,1,1,1,1, # 38 - 3f
512
- 1,1,1,1,1,1,1,1, # 40 - 47
513
- 1,1,1,1,1,1,1,1, # 48 - 4f
514
- 1,1,1,1,1,1,1,1, # 50 - 57
515
- 1,1,1,1,1,1,1,1, # 58 - 5f
516
- 1,1,1,1,1,1,1,1, # 60 - 67
517
- 1,1,1,1,1,1,1,1, # 68 - 6f
518
- 1,1,1,1,1,1,1,1, # 70 - 77
519
- 1,1,1,1,1,1,1,1, # 78 - 7f
520
- 2,2,2,2,3,3,3,3, # 80 - 87
521
- 4,4,4,4,4,4,4,4, # 88 - 8f
522
- 4,4,4,4,4,4,4,4, # 90 - 97
523
- 4,4,4,4,4,4,4,4, # 98 - 9f
524
- 5,5,5,5,5,5,5,5, # a0 - a7
525
- 5,5,5,5,5,5,5,5, # a8 - af
526
- 5,5,5,5,5,5,5,5, # b0 - b7
527
- 5,5,5,5,5,5,5,5, # b8 - bf
528
- 0,0,6,6,6,6,6,6, # c0 - c7
529
- 6,6,6,6,6,6,6,6, # c8 - cf
530
- 6,6,6,6,6,6,6,6, # d0 - d7
531
- 6,6,6,6,6,6,6,6, # d8 - df
532
- 7,8,8,8,8,8,8,8, # e0 - e7
533
- 8,8,8,8,8,9,8,8, # e8 - ef
534
- 10,11,11,11,11,11,11,11, # f0 - f7
535
- 12,13,13,13,14,15,0,0 # f8 - ff
536
- )
537
-
538
- UTF8_st = (
539
- eError,eStart,eError,eError,eError,eError, 12, 10,#00-07
540
- 9, 11, 8, 7, 6, 5, 4, 3,#08-0f
541
- eError,eError,eError,eError,eError,eError,eError,eError,#10-17
542
- eError,eError,eError,eError,eError,eError,eError,eError,#18-1f
543
- eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#20-27
544
- eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#28-2f
545
- eError,eError, 5, 5, 5, 5,eError,eError,#30-37
546
- eError,eError,eError,eError,eError,eError,eError,eError,#38-3f
547
- eError,eError,eError, 5, 5, 5,eError,eError,#40-47
548
- eError,eError,eError,eError,eError,eError,eError,eError,#48-4f
549
- eError,eError, 7, 7, 7, 7,eError,eError,#50-57
550
- eError,eError,eError,eError,eError,eError,eError,eError,#58-5f
551
- eError,eError,eError,eError, 7, 7,eError,eError,#60-67
552
- eError,eError,eError,eError,eError,eError,eError,eError,#68-6f
553
- eError,eError, 9, 9, 9, 9,eError,eError,#70-77
554
- eError,eError,eError,eError,eError,eError,eError,eError,#78-7f
555
- eError,eError,eError,eError,eError, 9,eError,eError,#80-87
556
- eError,eError,eError,eError,eError,eError,eError,eError,#88-8f
557
- eError,eError, 12, 12, 12, 12,eError,eError,#90-97
558
- eError,eError,eError,eError,eError,eError,eError,eError,#98-9f
559
- eError,eError,eError,eError,eError, 12,eError,eError,#a0-a7
560
- eError,eError,eError,eError,eError,eError,eError,eError,#a8-af
561
- eError,eError, 12, 12, 12,eError,eError,eError,#b0-b7
562
- eError,eError,eError,eError,eError,eError,eError,eError,#b8-bf
563
- eError,eError,eStart,eStart,eStart,eStart,eError,eError,#c0-c7
564
- eError,eError,eError,eError,eError,eError,eError,eError #c8-cf
565
- )
566
-
567
- UTF8CharLenTable = (0, 1, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6)
568
-
569
- UTF8SMModel = {'classTable': UTF8_cls,
570
- 'classFactor': 16,
571
- 'stateTable': UTF8_st,
572
- 'charLenTable': UTF8CharLenTable,
573
- 'name': 'UTF-8'}
574
-
575
- # flake8: noqa