com.googler.python 1.0.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 (2352) hide show
  1. package/package.json +7 -0
  2. package/python3 +6 -0
  3. package/python3.4.2/bin/2to3 +5 -0
  4. package/python3.4.2/bin/2to3-3.4 +5 -0
  5. package/python3.4.2/bin/android-debian-builder +10 -0
  6. package/python3.4.2/bin/easy_install-3.4 +11 -0
  7. package/python3.4.2/bin/idle3 +5 -0
  8. package/python3.4.2/bin/idle3.4 +5 -0
  9. package/python3.4.2/bin/pip3 +11 -0
  10. package/python3.4.2/bin/pip3.4 +11 -0
  11. package/python3.4.2/bin/pydoc3 +5 -0
  12. package/python3.4.2/bin/pydoc3.4 +5 -0
  13. package/python3.4.2/bin/python3-config +111 -0
  14. package/python3.4.2/bin/python3.4 +0 -0
  15. package/python3.4.2/bin/python3.4-config +111 -0
  16. package/python3.4.2/bin/python3.4m-config +111 -0
  17. package/python3.4.2/bin/pyvenv +11 -0
  18. package/python3.4.2/bin/pyvenv-3.4 +11 -0
  19. package/python3.4.2/include/python3.4m/Python-ast.h +569 -0
  20. package/python3.4.2/include/python3.4m/Python.h +133 -0
  21. package/python3.4.2/include/python3.4m/abstract.h +1267 -0
  22. package/python3.4.2/include/python3.4m/accu.h +37 -0
  23. package/python3.4.2/include/python3.4m/asdl.h +45 -0
  24. package/python3.4.2/include/python3.4m/ast.h +22 -0
  25. package/python3.4.2/include/python3.4m/bitset.h +32 -0
  26. package/python3.4.2/include/python3.4m/bltinmodule.h +14 -0
  27. package/python3.4.2/include/python3.4m/boolobject.h +34 -0
  28. package/python3.4.2/include/python3.4m/bytearrayobject.h +62 -0
  29. package/python3.4.2/include/python3.4m/bytes_methods.h +46 -0
  30. package/python3.4.2/include/python3.4m/bytesobject.h +128 -0
  31. package/python3.4.2/include/python3.4m/cellobject.h +29 -0
  32. package/python3.4.2/include/python3.4m/ceval.h +205 -0
  33. package/python3.4.2/include/python3.4m/classobject.h +58 -0
  34. package/python3.4.2/include/python3.4m/code.h +115 -0
  35. package/python3.4.2/include/python3.4m/codecs.h +233 -0
  36. package/python3.4.2/include/python3.4m/compile.h +72 -0
  37. package/python3.4.2/include/python3.4m/complexobject.h +77 -0
  38. package/python3.4.2/include/python3.4m/datetime.h +243 -0
  39. package/python3.4.2/include/python3.4m/descrobject.h +105 -0
  40. package/python3.4.2/include/python3.4m/dictobject.h +126 -0
  41. package/python3.4.2/include/python3.4m/dtoa.h +19 -0
  42. package/python3.4.2/include/python3.4m/dynamic_annotations.h +499 -0
  43. package/python3.4.2/include/python3.4m/enumobject.h +17 -0
  44. package/python3.4.2/include/python3.4m/errcode.h +38 -0
  45. package/python3.4.2/include/python3.4m/eval.h +27 -0
  46. package/python3.4.2/include/python3.4m/fileobject.h +58 -0
  47. package/python3.4.2/include/python3.4m/fileutils.h +79 -0
  48. package/python3.4.2/include/python3.4m/floatobject.h +128 -0
  49. package/python3.4.2/include/python3.4m/frameobject.h +95 -0
  50. package/python3.4.2/include/python3.4m/funcobject.h +89 -0
  51. package/python3.4.2/include/python3.4m/genobject.h +46 -0
  52. package/python3.4.2/include/python3.4m/graminit.h +84 -0
  53. package/python3.4.2/include/python3.4m/grammar.h +93 -0
  54. package/python3.4.2/include/python3.4m/import.h +130 -0
  55. package/python3.4.2/include/python3.4m/intrcheck.h +21 -0
  56. package/python3.4.2/include/python3.4m/iterobject.h +25 -0
  57. package/python3.4.2/include/python3.4m/listobject.h +80 -0
  58. package/python3.4.2/include/python3.4m/longintrepr.h +103 -0
  59. package/python3.4.2/include/python3.4m/longobject.h +204 -0
  60. package/python3.4.2/include/python3.4m/marshal.h +28 -0
  61. package/python3.4.2/include/python3.4m/memoryobject.h +74 -0
  62. package/python3.4.2/include/python3.4m/metagrammar.h +18 -0
  63. package/python3.4.2/include/python3.4m/methodobject.h +93 -0
  64. package/python3.4.2/include/python3.4m/modsupport.h +132 -0
  65. package/python3.4.2/include/python3.4m/moduleobject.h +63 -0
  66. package/python3.4.2/include/python3.4m/namespaceobject.h +17 -0
  67. package/python3.4.2/include/python3.4m/node.h +44 -0
  68. package/python3.4.2/include/python3.4m/object.h +1015 -0
  69. package/python3.4.2/include/python3.4m/objimpl.h +361 -0
  70. package/python3.4.2/include/python3.4m/opcode.h +159 -0
  71. package/python3.4.2/include/python3.4m/osdefs.h +50 -0
  72. package/python3.4.2/include/python3.4m/parsetok.h +108 -0
  73. package/python3.4.2/include/python3.4m/patchlevel.h +35 -0
  74. package/python3.4.2/include/python3.4m/pgen.h +18 -0
  75. package/python3.4.2/include/python3.4m/pgenheaders.h +42 -0
  76. package/python3.4.2/include/python3.4m/py_curses.h +177 -0
  77. package/python3.4.2/include/python3.4m/pyarena.h +64 -0
  78. package/python3.4.2/include/python3.4m/pyatomic.h +184 -0
  79. package/python3.4.2/include/python3.4m/pycapsule.h +59 -0
  80. package/python3.4.2/include/python3.4m/pyconfig.h +1503 -0
  81. package/python3.4.2/include/python3.4m/pyctype.h +33 -0
  82. package/python3.4.2/include/python3.4m/pydebug.h +34 -0
  83. package/python3.4.2/include/python3.4m/pyerrors.h +464 -0
  84. package/python3.4.2/include/python3.4m/pyexpat.h +53 -0
  85. package/python3.4.2/include/python3.4m/pyfpe.h +176 -0
  86. package/python3.4.2/include/python3.4m/pygetopt.h +21 -0
  87. package/python3.4.2/include/python3.4m/pyhash.h +149 -0
  88. package/python3.4.2/include/python3.4m/pymacconfig.h +102 -0
  89. package/python3.4.2/include/python3.4m/pymacro.h +78 -0
  90. package/python3.4.2/include/python3.4m/pymath.h +190 -0
  91. package/python3.4.2/include/python3.4m/pymem.h +183 -0
  92. package/python3.4.2/include/python3.4m/pyport.h +883 -0
  93. package/python3.4.2/include/python3.4m/pystate.h +271 -0
  94. package/python3.4.2/include/python3.4m/pystrcmp.h +23 -0
  95. package/python3.4.2/include/python3.4m/pystrtod.h +41 -0
  96. package/python3.4.2/include/python3.4m/pythonrun.h +304 -0
  97. package/python3.4.2/include/python3.4m/pythread.h +93 -0
  98. package/python3.4.2/include/python3.4m/pytime.h +105 -0
  99. package/python3.4.2/include/python3.4m/rangeobject.h +27 -0
  100. package/python3.4.2/include/python3.4m/setobject.h +113 -0
  101. package/python3.4.2/include/python3.4m/sliceobject.h +50 -0
  102. package/python3.4.2/include/python3.4m/structmember.h +76 -0
  103. package/python3.4.2/include/python3.4m/structseq.h +49 -0
  104. package/python3.4.2/include/python3.4m/symtable.h +122 -0
  105. package/python3.4.2/include/python3.4m/sysmodule.h +43 -0
  106. package/python3.4.2/include/python3.4m/token.h +87 -0
  107. package/python3.4.2/include/python3.4m/traceback.h +72 -0
  108. package/python3.4.2/include/python3.4m/tupleobject.h +73 -0
  109. package/python3.4.2/include/python3.4m/typeslots.h +76 -0
  110. package/python3.4.2/include/python3.4m/ucnhash.h +36 -0
  111. package/python3.4.2/include/python3.4m/unicodeobject.h +2271 -0
  112. package/python3.4.2/include/python3.4m/warnings.h +54 -0
  113. package/python3.4.2/include/python3.4m/weakrefobject.h +86 -0
  114. package/python3.4.2/lib/pkgconfig/python-3.4.pc +13 -0
  115. package/python3.4.2/lib/pkgconfig/python-3.4m.pc +13 -0
  116. package/python3.4.2/lib/pkgconfig/python3.pc +13 -0
  117. package/python3.4.2/lib/python3.4/LICENSE.txt +254 -0
  118. package/python3.4.2/lib/python3.4/__future__.py +134 -0
  119. package/python3.4.2/lib/python3.4/__phello__.foo.py +1 -0
  120. package/python3.4.2/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc +0 -0
  121. package/python3.4.2/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc +0 -0
  122. package/python3.4.2/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc +0 -0
  123. package/python3.4.2/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc +0 -0
  124. package/python3.4.2/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc +0 -0
  125. package/python3.4.2/lib/python3.4/__pycache__/abc.cpython-34.pyc +0 -0
  126. package/python3.4.2/lib/python3.4/__pycache__/codecs.cpython-34.pyc +0 -0
  127. package/python3.4.2/lib/python3.4/__pycache__/genericpath.cpython-34.pyc +0 -0
  128. package/python3.4.2/lib/python3.4/__pycache__/io.cpython-34.pyc +0 -0
  129. package/python3.4.2/lib/python3.4/__pycache__/os.cpython-34.pyc +0 -0
  130. package/python3.4.2/lib/python3.4/__pycache__/posixpath.cpython-34.pyc +0 -0
  131. package/python3.4.2/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc +0 -0
  132. package/python3.4.2/lib/python3.4/__pycache__/site.cpython-34.pyc +0 -0
  133. package/python3.4.2/lib/python3.4/__pycache__/stat.cpython-34.pyc +0 -0
  134. package/python3.4.2/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc +0 -0
  135. package/python3.4.2/lib/python3.4/_bootlocale.py +34 -0
  136. package/python3.4.2/lib/python3.4/_collections_abc.py +753 -0
  137. package/python3.4.2/lib/python3.4/_compat_pickle.py +137 -0
  138. package/python3.4.2/lib/python3.4/_dummy_thread.py +155 -0
  139. package/python3.4.2/lib/python3.4/_markupbase.py +395 -0
  140. package/python3.4.2/lib/python3.4/_osx_support.py +502 -0
  141. package/python3.4.2/lib/python3.4/_pyio.py +2105 -0
  142. package/python3.4.2/lib/python3.4/_sitebuiltins.py +103 -0
  143. package/python3.4.2/lib/python3.4/_strptime.py +511 -0
  144. package/python3.4.2/lib/python3.4/_sysconfigdata.py +710 -0
  145. package/python3.4.2/lib/python3.4/_threading_local.py +246 -0
  146. package/python3.4.2/lib/python3.4/_weakrefset.py +196 -0
  147. package/python3.4.2/lib/python3.4/abc.py +248 -0
  148. package/python3.4.2/lib/python3.4/aifc.py +918 -0
  149. package/python3.4.2/lib/python3.4/antigravity.py +17 -0
  150. package/python3.4.2/lib/python3.4/argparse.py +2379 -0
  151. package/python3.4.2/lib/python3.4/ast.py +315 -0
  152. package/python3.4.2/lib/python3.4/asynchat.py +333 -0
  153. package/python3.4.2/lib/python3.4/asyncio/__init__.py +48 -0
  154. package/python3.4.2/lib/python3.4/asyncio/base_events.py +1055 -0
  155. package/python3.4.2/lib/python3.4/asyncio/base_subprocess.py +197 -0
  156. package/python3.4.2/lib/python3.4/asyncio/constants.py +7 -0
  157. package/python3.4.2/lib/python3.4/asyncio/coroutines.py +195 -0
  158. package/python3.4.2/lib/python3.4/asyncio/events.py +586 -0
  159. package/python3.4.2/lib/python3.4/asyncio/futures.py +411 -0
  160. package/python3.4.2/lib/python3.4/asyncio/locks.py +469 -0
  161. package/python3.4.2/lib/python3.4/asyncio/log.py +7 -0
  162. package/python3.4.2/lib/python3.4/asyncio/proactor_events.py +499 -0
  163. package/python3.4.2/lib/python3.4/asyncio/protocols.py +129 -0
  164. package/python3.4.2/lib/python3.4/asyncio/queues.py +288 -0
  165. package/python3.4.2/lib/python3.4/asyncio/selector_events.py +996 -0
  166. package/python3.4.2/lib/python3.4/asyncio/streams.py +485 -0
  167. package/python3.4.2/lib/python3.4/asyncio/subprocess.py +228 -0
  168. package/python3.4.2/lib/python3.4/asyncio/tasks.py +658 -0
  169. package/python3.4.2/lib/python3.4/asyncio/test_utils.py +425 -0
  170. package/python3.4.2/lib/python3.4/asyncio/transports.py +298 -0
  171. package/python3.4.2/lib/python3.4/asyncio/unix_events.py +922 -0
  172. package/python3.4.2/lib/python3.4/asyncio/windows_events.py +634 -0
  173. package/python3.4.2/lib/python3.4/asyncio/windows_utils.py +207 -0
  174. package/python3.4.2/lib/python3.4/asyncore.py +666 -0
  175. package/python3.4.2/lib/python3.4/base64.py +602 -0
  176. package/python3.4.2/lib/python3.4/bdb.py +673 -0
  177. package/python3.4.2/lib/python3.4/binhex.py +471 -0
  178. package/python3.4.2/lib/python3.4/bisect.py +92 -0
  179. package/python3.4.2/lib/python3.4/bz2.py +521 -0
  180. package/python3.4.2/lib/python3.4/cProfile.py +160 -0
  181. package/python3.4.2/lib/python3.4/calendar.py +703 -0
  182. package/python3.4.2/lib/python3.4/cgi.py +1061 -0
  183. package/python3.4.2/lib/python3.4/cgitb.py +320 -0
  184. package/python3.4.2/lib/python3.4/chunk.py +167 -0
  185. package/python3.4.2/lib/python3.4/cmd.py +401 -0
  186. package/python3.4.2/lib/python3.4/code.py +302 -0
  187. package/python3.4.2/lib/python3.4/codecs.py +1110 -0
  188. package/python3.4.2/lib/python3.4/codeop.py +168 -0
  189. package/python3.4.2/lib/python3.4/collections/__init__.py +1132 -0
  190. package/python3.4.2/lib/python3.4/collections/__main__.py +38 -0
  191. package/python3.4.2/lib/python3.4/collections/abc.py +2 -0
  192. package/python3.4.2/lib/python3.4/colorsys.py +164 -0
  193. package/python3.4.2/lib/python3.4/compileall.py +241 -0
  194. package/python3.4.2/lib/python3.4/concurrent/__init__.py +1 -0
  195. package/python3.4.2/lib/python3.4/concurrent/futures/__init__.py +18 -0
  196. package/python3.4.2/lib/python3.4/concurrent/futures/_base.py +575 -0
  197. package/python3.4.2/lib/python3.4/concurrent/futures/process.py +427 -0
  198. package/python3.4.2/lib/python3.4/concurrent/futures/thread.py +132 -0
  199. package/python3.4.2/lib/python3.4/config-3.4m/Makefile +1835 -0
  200. package/python3.4.2/lib/python3.4/config-3.4m/Setup +466 -0
  201. package/python3.4.2/lib/python3.4/config-3.4m/Setup.config +13 -0
  202. package/python3.4.2/lib/python3.4/config-3.4m/Setup.local +1 -0
  203. package/python3.4.2/lib/python3.4/config-3.4m/config.c +234 -0
  204. package/python3.4.2/lib/python3.4/config-3.4m/config.c.in +67 -0
  205. package/python3.4.2/lib/python3.4/config-3.4m/install-sh +294 -0
  206. package/python3.4.2/lib/python3.4/config-3.4m/makesetup +293 -0
  207. package/python3.4.2/lib/python3.4/config-3.4m/python-config.py +68 -0
  208. package/python3.4.2/lib/python3.4/configparser.py +1254 -0
  209. package/python3.4.2/lib/python3.4/contextlib.py +340 -0
  210. package/python3.4.2/lib/python3.4/copy.py +333 -0
  211. package/python3.4.2/lib/python3.4/copyreg.py +202 -0
  212. package/python3.4.2/lib/python3.4/crypt.py +62 -0
  213. package/python3.4.2/lib/python3.4/csv.py +449 -0
  214. package/python3.4.2/lib/python3.4/ctypes/__init__.py +541 -0
  215. package/python3.4.2/lib/python3.4/ctypes/_endian.py +59 -0
  216. package/python3.4.2/lib/python3.4/ctypes/macholib/README.ctypes +7 -0
  217. package/python3.4.2/lib/python3.4/ctypes/macholib/__init__.py +9 -0
  218. package/python3.4.2/lib/python3.4/ctypes/macholib/dyld.py +158 -0
  219. package/python3.4.2/lib/python3.4/ctypes/macholib/dylib.py +63 -0
  220. package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib +2 -0
  221. package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib.bat +1 -0
  222. package/python3.4.2/lib/python3.4/ctypes/macholib/framework.py +65 -0
  223. package/python3.4.2/lib/python3.4/ctypes/test/__init__.py +14 -0
  224. package/python3.4.2/lib/python3.4/ctypes/test/__main__.py +4 -0
  225. package/python3.4.2/lib/python3.4/ctypes/test/test_anon.py +60 -0
  226. package/python3.4.2/lib/python3.4/ctypes/test/test_array_in_pointer.py +64 -0
  227. package/python3.4.2/lib/python3.4/ctypes/test/test_arrays.py +181 -0
  228. package/python3.4.2/lib/python3.4/ctypes/test/test_as_parameter.py +226 -0
  229. package/python3.4.2/lib/python3.4/ctypes/test/test_bitfields.py +263 -0
  230. package/python3.4.2/lib/python3.4/ctypes/test/test_buffers.py +64 -0
  231. package/python3.4.2/lib/python3.4/ctypes/test/test_bytes.py +65 -0
  232. package/python3.4.2/lib/python3.4/ctypes/test/test_byteswap.py +295 -0
  233. package/python3.4.2/lib/python3.4/ctypes/test/test_callbacks.py +247 -0
  234. package/python3.4.2/lib/python3.4/ctypes/test/test_cast.py +86 -0
  235. package/python3.4.2/lib/python3.4/ctypes/test/test_cfuncs.py +212 -0
  236. package/python3.4.2/lib/python3.4/ctypes/test/test_checkretval.py +36 -0
  237. package/python3.4.2/lib/python3.4/ctypes/test/test_delattr.py +21 -0
  238. package/python3.4.2/lib/python3.4/ctypes/test/test_errno.py +79 -0
  239. package/python3.4.2/lib/python3.4/ctypes/test/test_find.py +81 -0
  240. package/python3.4.2/lib/python3.4/ctypes/test/test_frombuffer.py +81 -0
  241. package/python3.4.2/lib/python3.4/ctypes/test/test_funcptr.py +127 -0
  242. package/python3.4.2/lib/python3.4/ctypes/test/test_functions.py +402 -0
  243. package/python3.4.2/lib/python3.4/ctypes/test/test_incomplete.py +42 -0
  244. package/python3.4.2/lib/python3.4/ctypes/test/test_init.py +40 -0
  245. package/python3.4.2/lib/python3.4/ctypes/test/test_internals.py +100 -0
  246. package/python3.4.2/lib/python3.4/ctypes/test/test_keeprefs.py +153 -0
  247. package/python3.4.2/lib/python3.4/ctypes/test/test_libc.py +33 -0
  248. package/python3.4.2/lib/python3.4/ctypes/test/test_loading.py +119 -0
  249. package/python3.4.2/lib/python3.4/ctypes/test/test_macholib.py +63 -0
  250. package/python3.4.2/lib/python3.4/ctypes/test/test_memfunctions.py +79 -0
  251. package/python3.4.2/lib/python3.4/ctypes/test/test_numbers.py +290 -0
  252. package/python3.4.2/lib/python3.4/ctypes/test/test_objects.py +67 -0
  253. package/python3.4.2/lib/python3.4/ctypes/test/test_parameters.py +176 -0
  254. package/python3.4.2/lib/python3.4/ctypes/test/test_pep3118.py +206 -0
  255. package/python3.4.2/lib/python3.4/ctypes/test/test_pickling.py +83 -0
  256. package/python3.4.2/lib/python3.4/ctypes/test/test_pointers.py +192 -0
  257. package/python3.4.2/lib/python3.4/ctypes/test/test_prototypes.py +219 -0
  258. package/python3.4.2/lib/python3.4/ctypes/test/test_python_api.py +89 -0
  259. package/python3.4.2/lib/python3.4/ctypes/test/test_random_things.py +74 -0
  260. package/python3.4.2/lib/python3.4/ctypes/test/test_refcounts.py +101 -0
  261. package/python3.4.2/lib/python3.4/ctypes/test/test_repr.py +29 -0
  262. package/python3.4.2/lib/python3.4/ctypes/test/test_returnfuncptrs.py +67 -0
  263. package/python3.4.2/lib/python3.4/ctypes/test/test_simplesubclasses.py +55 -0
  264. package/python3.4.2/lib/python3.4/ctypes/test/test_sizes.py +34 -0
  265. package/python3.4.2/lib/python3.4/ctypes/test/test_slicing.py +167 -0
  266. package/python3.4.2/lib/python3.4/ctypes/test/test_stringptr.py +77 -0
  267. package/python3.4.2/lib/python3.4/ctypes/test/test_strings.py +225 -0
  268. package/python3.4.2/lib/python3.4/ctypes/test/test_struct_fields.py +50 -0
  269. package/python3.4.2/lib/python3.4/ctypes/test/test_structures.py +468 -0
  270. package/python3.4.2/lib/python3.4/ctypes/test/test_unaligned_structures.py +45 -0
  271. package/python3.4.2/lib/python3.4/ctypes/test/test_unicode.py +56 -0
  272. package/python3.4.2/lib/python3.4/ctypes/test/test_values.py +95 -0
  273. package/python3.4.2/lib/python3.4/ctypes/test/test_varsize_struct.py +50 -0
  274. package/python3.4.2/lib/python3.4/ctypes/test/test_win32.py +119 -0
  275. package/python3.4.2/lib/python3.4/ctypes/test/test_wintypes.py +41 -0
  276. package/python3.4.2/lib/python3.4/ctypes/util.py +267 -0
  277. package/python3.4.2/lib/python3.4/ctypes/wintypes.py +202 -0
  278. package/python3.4.2/lib/python3.4/curses/__init__.py +101 -0
  279. package/python3.4.2/lib/python3.4/curses/ascii.py +99 -0
  280. package/python3.4.2/lib/python3.4/curses/has_key.py +192 -0
  281. package/python3.4.2/lib/python3.4/curses/panel.py +6 -0
  282. package/python3.4.2/lib/python3.4/curses/textpad.py +188 -0
  283. package/python3.4.2/lib/python3.4/datetime.py +2136 -0
  284. package/python3.4.2/lib/python3.4/dbm/__init__.py +188 -0
  285. package/python3.4.2/lib/python3.4/dbm/dumb.py +291 -0
  286. package/python3.4.2/lib/python3.4/dbm/gnu.py +3 -0
  287. package/python3.4.2/lib/python3.4/dbm/ndbm.py +3 -0
  288. package/python3.4.2/lib/python3.4/decimal.py +6414 -0
  289. package/python3.4.2/lib/python3.4/difflib.py +2039 -0
  290. package/python3.4.2/lib/python3.4/dis.py +475 -0
  291. package/python3.4.2/lib/python3.4/distutils/README +13 -0
  292. package/python3.4.2/lib/python3.4/distutils/__init__.py +17 -0
  293. package/python3.4.2/lib/python3.4/distutils/archive_util.py +245 -0
  294. package/python3.4.2/lib/python3.4/distutils/bcppcompiler.py +393 -0
  295. package/python3.4.2/lib/python3.4/distutils/ccompiler.py +1115 -0
  296. package/python3.4.2/lib/python3.4/distutils/cmd.py +435 -0
  297. package/python3.4.2/lib/python3.4/distutils/command/__init__.py +31 -0
  298. package/python3.4.2/lib/python3.4/distutils/command/bdist.py +142 -0
  299. package/python3.4.2/lib/python3.4/distutils/command/bdist_dumb.py +122 -0
  300. package/python3.4.2/lib/python3.4/distutils/command/bdist_msi.py +741 -0
  301. package/python3.4.2/lib/python3.4/distutils/command/bdist_rpm.py +582 -0
  302. package/python3.4.2/lib/python3.4/distutils/command/bdist_wininst.py +349 -0
  303. package/python3.4.2/lib/python3.4/distutils/command/build.py +148 -0
  304. package/python3.4.2/lib/python3.4/distutils/command/build_clib.py +209 -0
  305. package/python3.4.2/lib/python3.4/distutils/command/build_ext.py +735 -0
  306. package/python3.4.2/lib/python3.4/distutils/command/build_py.py +416 -0
  307. package/python3.4.2/lib/python3.4/distutils/command/build_scripts.py +160 -0
  308. package/python3.4.2/lib/python3.4/distutils/command/check.py +145 -0
  309. package/python3.4.2/lib/python3.4/distutils/command/clean.py +76 -0
  310. package/python3.4.2/lib/python3.4/distutils/command/command_template +33 -0
  311. package/python3.4.2/lib/python3.4/distutils/command/config.py +347 -0
  312. package/python3.4.2/lib/python3.4/distutils/command/install.py +650 -0
  313. package/python3.4.2/lib/python3.4/distutils/command/install_data.py +79 -0
  314. package/python3.4.2/lib/python3.4/distutils/command/install_egg_info.py +77 -0
  315. package/python3.4.2/lib/python3.4/distutils/command/install_headers.py +47 -0
  316. package/python3.4.2/lib/python3.4/distutils/command/install_lib.py +217 -0
  317. package/python3.4.2/lib/python3.4/distutils/command/install_scripts.py +60 -0
  318. package/python3.4.2/lib/python3.4/distutils/command/register.py +304 -0
  319. package/python3.4.2/lib/python3.4/distutils/command/sdist.py +467 -0
  320. package/python3.4.2/lib/python3.4/distutils/command/upload.py +202 -0
  321. package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0-amd64.exe +0 -0
  322. package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0.exe +0 -0
  323. package/python3.4.2/lib/python3.4/distutils/command/wininst-6.0.exe +0 -0
  324. package/python3.4.2/lib/python3.4/distutils/command/wininst-7.1.exe +0 -0
  325. package/python3.4.2/lib/python3.4/distutils/command/wininst-8.0.exe +0 -0
  326. package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0-amd64.exe +0 -0
  327. package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0.exe +0 -0
  328. package/python3.4.2/lib/python3.4/distutils/config.py +131 -0
  329. package/python3.4.2/lib/python3.4/distutils/core.py +237 -0
  330. package/python3.4.2/lib/python3.4/distutils/cygwinccompiler.py +405 -0
  331. package/python3.4.2/lib/python3.4/distutils/debug.py +5 -0
  332. package/python3.4.2/lib/python3.4/distutils/dep_util.py +92 -0
  333. package/python3.4.2/lib/python3.4/distutils/dir_util.py +210 -0
  334. package/python3.4.2/lib/python3.4/distutils/dist.py +1238 -0
  335. package/python3.4.2/lib/python3.4/distutils/errors.py +97 -0
  336. package/python3.4.2/lib/python3.4/distutils/extension.py +233 -0
  337. package/python3.4.2/lib/python3.4/distutils/fancy_getopt.py +457 -0
  338. package/python3.4.2/lib/python3.4/distutils/file_util.py +230 -0
  339. package/python3.4.2/lib/python3.4/distutils/filelist.py +328 -0
  340. package/python3.4.2/lib/python3.4/distutils/log.py +75 -0
  341. package/python3.4.2/lib/python3.4/distutils/msvc9compiler.py +788 -0
  342. package/python3.4.2/lib/python3.4/distutils/msvccompiler.py +640 -0
  343. package/python3.4.2/lib/python3.4/distutils/spawn.py +195 -0
  344. package/python3.4.2/lib/python3.4/distutils/sysconfig.py +562 -0
  345. package/python3.4.2/lib/python3.4/distutils/tests/Setup.sample +67 -0
  346. package/python3.4.2/lib/python3.4/distutils/tests/__init__.py +36 -0
  347. package/python3.4.2/lib/python3.4/distutils/tests/support.py +210 -0
  348. package/python3.4.2/lib/python3.4/distutils/tests/test_archive_util.py +341 -0
  349. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist.py +50 -0
  350. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_dumb.py +97 -0
  351. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_msi.py +25 -0
  352. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_rpm.py +134 -0
  353. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_wininst.py +31 -0
  354. package/python3.4.2/lib/python3.4/distutils/tests/test_build.py +55 -0
  355. package/python3.4.2/lib/python3.4/distutils/tests/test_build_clib.py +143 -0
  356. package/python3.4.2/lib/python3.4/distutils/tests/test_build_ext.py +488 -0
  357. package/python3.4.2/lib/python3.4/distutils/tests/test_build_py.py +178 -0
  358. package/python3.4.2/lib/python3.4/distutils/tests/test_build_scripts.py +112 -0
  359. package/python3.4.2/lib/python3.4/distutils/tests/test_check.py +106 -0
  360. package/python3.4.2/lib/python3.4/distutils/tests/test_clean.py +51 -0
  361. package/python3.4.2/lib/python3.4/distutils/tests/test_cmd.py +126 -0
  362. package/python3.4.2/lib/python3.4/distutils/tests/test_config.py +120 -0
  363. package/python3.4.2/lib/python3.4/distutils/tests/test_config_cmd.py +89 -0
  364. package/python3.4.2/lib/python3.4/distutils/tests/test_core.py +108 -0
  365. package/python3.4.2/lib/python3.4/distutils/tests/test_cygwinccompiler.py +155 -0
  366. package/python3.4.2/lib/python3.4/distutils/tests/test_dep_util.py +81 -0
  367. package/python3.4.2/lib/python3.4/distutils/tests/test_dir_util.py +139 -0
  368. package/python3.4.2/lib/python3.4/distutils/tests/test_dist.py +454 -0
  369. package/python3.4.2/lib/python3.4/distutils/tests/test_extension.py +69 -0
  370. package/python3.4.2/lib/python3.4/distutils/tests/test_file_util.py +85 -0
  371. package/python3.4.2/lib/python3.4/distutils/tests/test_filelist.py +299 -0
  372. package/python3.4.2/lib/python3.4/distutils/tests/test_install.py +246 -0
  373. package/python3.4.2/lib/python3.4/distutils/tests/test_install_data.py +77 -0
  374. package/python3.4.2/lib/python3.4/distutils/tests/test_install_headers.py +41 -0
  375. package/python3.4.2/lib/python3.4/distutils/tests/test_install_lib.py +115 -0
  376. package/python3.4.2/lib/python3.4/distutils/tests/test_install_scripts.py +82 -0
  377. package/python3.4.2/lib/python3.4/distutils/tests/test_log.py +37 -0
  378. package/python3.4.2/lib/python3.4/distutils/tests/test_msvc9compiler.py +184 -0
  379. package/python3.4.2/lib/python3.4/distutils/tests/test_register.py +309 -0
  380. package/python3.4.2/lib/python3.4/distutils/tests/test_sdist.py +484 -0
  381. package/python3.4.2/lib/python3.4/distutils/tests/test_spawn.py +58 -0
  382. package/python3.4.2/lib/python3.4/distutils/tests/test_sysconfig.py +207 -0
  383. package/python3.4.2/lib/python3.4/distutils/tests/test_text_file.py +107 -0
  384. package/python3.4.2/lib/python3.4/distutils/tests/test_unixccompiler.py +150 -0
  385. package/python3.4.2/lib/python3.4/distutils/tests/test_upload.py +151 -0
  386. package/python3.4.2/lib/python3.4/distutils/tests/test_util.py +300 -0
  387. package/python3.4.2/lib/python3.4/distutils/tests/test_version.py +71 -0
  388. package/python3.4.2/lib/python3.4/distutils/tests/test_versionpredicate.py +13 -0
  389. package/python3.4.2/lib/python3.4/distutils/tests/xxmodule.c +396 -0
  390. package/python3.4.2/lib/python3.4/distutils/text_file.py +285 -0
  391. package/python3.4.2/lib/python3.4/distutils/unixccompiler.py +298 -0
  392. package/python3.4.2/lib/python3.4/distutils/util.py +553 -0
  393. package/python3.4.2/lib/python3.4/distutils/version.py +349 -0
  394. package/python3.4.2/lib/python3.4/distutils/versionpredicate.py +166 -0
  395. package/python3.4.2/lib/python3.4/doctest.py +2793 -0
  396. package/python3.4.2/lib/python3.4/dummy_threading.py +78 -0
  397. package/python3.4.2/lib/python3.4/email/__init__.py +64 -0
  398. package/python3.4.2/lib/python3.4/email/_encoded_words.py +221 -0
  399. package/python3.4.2/lib/python3.4/email/_header_value_parser.py +2947 -0
  400. package/python3.4.2/lib/python3.4/email/_parseaddr.py +540 -0
  401. package/python3.4.2/lib/python3.4/email/_policybase.py +358 -0
  402. package/python3.4.2/lib/python3.4/email/architecture.rst +216 -0
  403. package/python3.4.2/lib/python3.4/email/base64mime.py +119 -0
  404. package/python3.4.2/lib/python3.4/email/charset.py +409 -0
  405. package/python3.4.2/lib/python3.4/email/contentmanager.py +249 -0
  406. package/python3.4.2/lib/python3.4/email/encoders.py +69 -0
  407. package/python3.4.2/lib/python3.4/email/errors.py +107 -0
  408. package/python3.4.2/lib/python3.4/email/feedparser.py +526 -0
  409. package/python3.4.2/lib/python3.4/email/generator.py +507 -0
  410. package/python3.4.2/lib/python3.4/email/header.py +581 -0
  411. package/python3.4.2/lib/python3.4/email/headerregistry.py +583 -0
  412. package/python3.4.2/lib/python3.4/email/iterators.py +71 -0
  413. package/python3.4.2/lib/python3.4/email/message.py +1147 -0
  414. package/python3.4.2/lib/python3.4/email/mime/__init__.py +0 -0
  415. package/python3.4.2/lib/python3.4/email/mime/application.py +36 -0
  416. package/python3.4.2/lib/python3.4/email/mime/audio.py +73 -0
  417. package/python3.4.2/lib/python3.4/email/mime/base.py +26 -0
  418. package/python3.4.2/lib/python3.4/email/mime/image.py +46 -0
  419. package/python3.4.2/lib/python3.4/email/mime/message.py +34 -0
  420. package/python3.4.2/lib/python3.4/email/mime/multipart.py +47 -0
  421. package/python3.4.2/lib/python3.4/email/mime/nonmultipart.py +22 -0
  422. package/python3.4.2/lib/python3.4/email/mime/text.py +41 -0
  423. package/python3.4.2/lib/python3.4/email/parser.py +132 -0
  424. package/python3.4.2/lib/python3.4/email/policy.py +201 -0
  425. package/python3.4.2/lib/python3.4/email/quoprimime.py +299 -0
  426. package/python3.4.2/lib/python3.4/email/utils.py +399 -0
  427. package/python3.4.2/lib/python3.4/encodings/__init__.py +152 -0
  428. package/python3.4.2/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc +0 -0
  429. package/python3.4.2/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc +0 -0
  430. package/python3.4.2/lib/python3.4/encodings/__pycache__/ascii.cpython-34.pyc +0 -0
  431. package/python3.4.2/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc +0 -0
  432. package/python3.4.2/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc +0 -0
  433. package/python3.4.2/lib/python3.4/encodings/aliases.py +544 -0
  434. package/python3.4.2/lib/python3.4/encodings/ascii.py +50 -0
  435. package/python3.4.2/lib/python3.4/encodings/base64_codec.py +55 -0
  436. package/python3.4.2/lib/python3.4/encodings/big5.py +39 -0
  437. package/python3.4.2/lib/python3.4/encodings/big5hkscs.py +39 -0
  438. package/python3.4.2/lib/python3.4/encodings/bz2_codec.py +78 -0
  439. package/python3.4.2/lib/python3.4/encodings/charmap.py +69 -0
  440. package/python3.4.2/lib/python3.4/encodings/cp037.py +307 -0
  441. package/python3.4.2/lib/python3.4/encodings/cp1006.py +307 -0
  442. package/python3.4.2/lib/python3.4/encodings/cp1026.py +307 -0
  443. package/python3.4.2/lib/python3.4/encodings/cp1125.py +698 -0
  444. package/python3.4.2/lib/python3.4/encodings/cp1140.py +307 -0
  445. package/python3.4.2/lib/python3.4/encodings/cp1250.py +307 -0
  446. package/python3.4.2/lib/python3.4/encodings/cp1251.py +307 -0
  447. package/python3.4.2/lib/python3.4/encodings/cp1252.py +307 -0
  448. package/python3.4.2/lib/python3.4/encodings/cp1253.py +307 -0
  449. package/python3.4.2/lib/python3.4/encodings/cp1254.py +307 -0
  450. package/python3.4.2/lib/python3.4/encodings/cp1255.py +307 -0
  451. package/python3.4.2/lib/python3.4/encodings/cp1256.py +307 -0
  452. package/python3.4.2/lib/python3.4/encodings/cp1257.py +307 -0
  453. package/python3.4.2/lib/python3.4/encodings/cp1258.py +307 -0
  454. package/python3.4.2/lib/python3.4/encodings/cp273.py +307 -0
  455. package/python3.4.2/lib/python3.4/encodings/cp424.py +307 -0
  456. package/python3.4.2/lib/python3.4/encodings/cp437.py +698 -0
  457. package/python3.4.2/lib/python3.4/encodings/cp500.py +307 -0
  458. package/python3.4.2/lib/python3.4/encodings/cp65001.py +40 -0
  459. package/python3.4.2/lib/python3.4/encodings/cp720.py +309 -0
  460. package/python3.4.2/lib/python3.4/encodings/cp737.py +698 -0
  461. package/python3.4.2/lib/python3.4/encodings/cp775.py +697 -0
  462. package/python3.4.2/lib/python3.4/encodings/cp850.py +698 -0
  463. package/python3.4.2/lib/python3.4/encodings/cp852.py +698 -0
  464. package/python3.4.2/lib/python3.4/encodings/cp855.py +698 -0
  465. package/python3.4.2/lib/python3.4/encodings/cp856.py +307 -0
  466. package/python3.4.2/lib/python3.4/encodings/cp857.py +694 -0
  467. package/python3.4.2/lib/python3.4/encodings/cp858.py +698 -0
  468. package/python3.4.2/lib/python3.4/encodings/cp860.py +698 -0
  469. package/python3.4.2/lib/python3.4/encodings/cp861.py +698 -0
  470. package/python3.4.2/lib/python3.4/encodings/cp862.py +698 -0
  471. package/python3.4.2/lib/python3.4/encodings/cp863.py +698 -0
  472. package/python3.4.2/lib/python3.4/encodings/cp864.py +690 -0
  473. package/python3.4.2/lib/python3.4/encodings/cp865.py +698 -0
  474. package/python3.4.2/lib/python3.4/encodings/cp866.py +698 -0
  475. package/python3.4.2/lib/python3.4/encodings/cp869.py +689 -0
  476. package/python3.4.2/lib/python3.4/encodings/cp874.py +307 -0
  477. package/python3.4.2/lib/python3.4/encodings/cp875.py +307 -0
  478. package/python3.4.2/lib/python3.4/encodings/cp932.py +39 -0
  479. package/python3.4.2/lib/python3.4/encodings/cp949.py +39 -0
  480. package/python3.4.2/lib/python3.4/encodings/cp950.py +39 -0
  481. package/python3.4.2/lib/python3.4/encodings/euc_jis_2004.py +39 -0
  482. package/python3.4.2/lib/python3.4/encodings/euc_jisx0213.py +39 -0
  483. package/python3.4.2/lib/python3.4/encodings/euc_jp.py +39 -0
  484. package/python3.4.2/lib/python3.4/encodings/euc_kr.py +39 -0
  485. package/python3.4.2/lib/python3.4/encodings/gb18030.py +39 -0
  486. package/python3.4.2/lib/python3.4/encodings/gb2312.py +39 -0
  487. package/python3.4.2/lib/python3.4/encodings/gbk.py +39 -0
  488. package/python3.4.2/lib/python3.4/encodings/hex_codec.py +55 -0
  489. package/python3.4.2/lib/python3.4/encodings/hp_roman8.py +312 -0
  490. package/python3.4.2/lib/python3.4/encodings/hz.py +39 -0
  491. package/python3.4.2/lib/python3.4/encodings/idna.py +309 -0
  492. package/python3.4.2/lib/python3.4/encodings/iso2022_jp.py +39 -0
  493. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_1.py +39 -0
  494. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2.py +39 -0
  495. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2004.py +39 -0
  496. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_3.py +39 -0
  497. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_ext.py +39 -0
  498. package/python3.4.2/lib/python3.4/encodings/iso2022_kr.py +39 -0
  499. package/python3.4.2/lib/python3.4/encodings/iso8859_1.py +307 -0
  500. package/python3.4.2/lib/python3.4/encodings/iso8859_10.py +307 -0
  501. package/python3.4.2/lib/python3.4/encodings/iso8859_11.py +307 -0
  502. package/python3.4.2/lib/python3.4/encodings/iso8859_13.py +307 -0
  503. package/python3.4.2/lib/python3.4/encodings/iso8859_14.py +307 -0
  504. package/python3.4.2/lib/python3.4/encodings/iso8859_15.py +307 -0
  505. package/python3.4.2/lib/python3.4/encodings/iso8859_16.py +307 -0
  506. package/python3.4.2/lib/python3.4/encodings/iso8859_2.py +307 -0
  507. package/python3.4.2/lib/python3.4/encodings/iso8859_3.py +307 -0
  508. package/python3.4.2/lib/python3.4/encodings/iso8859_4.py +307 -0
  509. package/python3.4.2/lib/python3.4/encodings/iso8859_5.py +307 -0
  510. package/python3.4.2/lib/python3.4/encodings/iso8859_6.py +307 -0
  511. package/python3.4.2/lib/python3.4/encodings/iso8859_7.py +307 -0
  512. package/python3.4.2/lib/python3.4/encodings/iso8859_8.py +307 -0
  513. package/python3.4.2/lib/python3.4/encodings/iso8859_9.py +307 -0
  514. package/python3.4.2/lib/python3.4/encodings/johab.py +39 -0
  515. package/python3.4.2/lib/python3.4/encodings/koi8_r.py +307 -0
  516. package/python3.4.2/lib/python3.4/encodings/koi8_u.py +307 -0
  517. package/python3.4.2/lib/python3.4/encodings/latin_1.py +50 -0
  518. package/python3.4.2/lib/python3.4/encodings/mac_arabic.py +698 -0
  519. package/python3.4.2/lib/python3.4/encodings/mac_centeuro.py +307 -0
  520. package/python3.4.2/lib/python3.4/encodings/mac_croatian.py +307 -0
  521. package/python3.4.2/lib/python3.4/encodings/mac_cyrillic.py +307 -0
  522. package/python3.4.2/lib/python3.4/encodings/mac_farsi.py +307 -0
  523. package/python3.4.2/lib/python3.4/encodings/mac_greek.py +307 -0
  524. package/python3.4.2/lib/python3.4/encodings/mac_iceland.py +307 -0
  525. package/python3.4.2/lib/python3.4/encodings/mac_latin2.py +312 -0
  526. package/python3.4.2/lib/python3.4/encodings/mac_roman.py +307 -0
  527. package/python3.4.2/lib/python3.4/encodings/mac_romanian.py +307 -0
  528. package/python3.4.2/lib/python3.4/encodings/mac_turkish.py +307 -0
  529. package/python3.4.2/lib/python3.4/encodings/mbcs.py +47 -0
  530. package/python3.4.2/lib/python3.4/encodings/palmos.py +308 -0
  531. package/python3.4.2/lib/python3.4/encodings/ptcp154.py +312 -0
  532. package/python3.4.2/lib/python3.4/encodings/punycode.py +237 -0
  533. package/python3.4.2/lib/python3.4/encodings/quopri_codec.py +56 -0
  534. package/python3.4.2/lib/python3.4/encodings/raw_unicode_escape.py +45 -0
  535. package/python3.4.2/lib/python3.4/encodings/rot_13.py +113 -0
  536. package/python3.4.2/lib/python3.4/encodings/shift_jis.py +39 -0
  537. package/python3.4.2/lib/python3.4/encodings/shift_jis_2004.py +39 -0
  538. package/python3.4.2/lib/python3.4/encodings/shift_jisx0213.py +39 -0
  539. package/python3.4.2/lib/python3.4/encodings/tis_620.py +307 -0
  540. package/python3.4.2/lib/python3.4/encodings/undefined.py +49 -0
  541. package/python3.4.2/lib/python3.4/encodings/unicode_escape.py +45 -0
  542. package/python3.4.2/lib/python3.4/encodings/unicode_internal.py +45 -0
  543. package/python3.4.2/lib/python3.4/encodings/utf_16.py +155 -0
  544. package/python3.4.2/lib/python3.4/encodings/utf_16_be.py +42 -0
  545. package/python3.4.2/lib/python3.4/encodings/utf_16_le.py +42 -0
  546. package/python3.4.2/lib/python3.4/encodings/utf_32.py +150 -0
  547. package/python3.4.2/lib/python3.4/encodings/utf_32_be.py +37 -0
  548. package/python3.4.2/lib/python3.4/encodings/utf_32_le.py +37 -0
  549. package/python3.4.2/lib/python3.4/encodings/utf_7.py +38 -0
  550. package/python3.4.2/lib/python3.4/encodings/utf_8.py +42 -0
  551. package/python3.4.2/lib/python3.4/encodings/utf_8_sig.py +130 -0
  552. package/python3.4.2/lib/python3.4/encodings/uu_codec.py +99 -0
  553. package/python3.4.2/lib/python3.4/encodings/zlib_codec.py +77 -0
  554. package/python3.4.2/lib/python3.4/ensurepip/__init__.py +210 -0
  555. package/python3.4.2/lib/python3.4/ensurepip/__main__.py +4 -0
  556. package/python3.4.2/lib/python3.4/ensurepip/_bundled/pip-1.5.6-py2.py3-none-any.whl +0 -0
  557. package/python3.4.2/lib/python3.4/ensurepip/_bundled/setuptools-2.1-py2.py3-none-any.whl +0 -0
  558. package/python3.4.2/lib/python3.4/ensurepip/_uninstall.py +30 -0
  559. package/python3.4.2/lib/python3.4/enum.py +525 -0
  560. package/python3.4.2/lib/python3.4/filecmp.py +305 -0
  561. package/python3.4.2/lib/python3.4/fileinput.py +429 -0
  562. package/python3.4.2/lib/python3.4/fnmatch.py +109 -0
  563. package/python3.4.2/lib/python3.4/formatter.py +448 -0
  564. package/python3.4.2/lib/python3.4/fractions.py +630 -0
  565. package/python3.4.2/lib/python3.4/ftplib.py +1088 -0
  566. package/python3.4.2/lib/python3.4/functools.py +721 -0
  567. package/python3.4.2/lib/python3.4/genericpath.py +132 -0
  568. package/python3.4.2/lib/python3.4/getopt.py +215 -0
  569. package/python3.4.2/lib/python3.4/getpass.py +186 -0
  570. package/python3.4.2/lib/python3.4/gettext.py +523 -0
  571. package/python3.4.2/lib/python3.4/glob.py +110 -0
  572. package/python3.4.2/lib/python3.4/gzip.py +674 -0
  573. package/python3.4.2/lib/python3.4/hashlib.py +217 -0
  574. package/python3.4.2/lib/python3.4/heapq.py +476 -0
  575. package/python3.4.2/lib/python3.4/hmac.py +144 -0
  576. package/python3.4.2/lib/python3.4/html/__init__.py +132 -0
  577. package/python3.4.2/lib/python3.4/html/entities.py +2506 -0
  578. package/python3.4.2/lib/python3.4/html/parser.py +550 -0
  579. package/python3.4.2/lib/python3.4/http/__init__.py +1 -0
  580. package/python3.4.2/lib/python3.4/http/client.py +1302 -0
  581. package/python3.4.2/lib/python3.4/http/cookiejar.py +2080 -0
  582. package/python3.4.2/lib/python3.4/http/cookies.py +578 -0
  583. package/python3.4.2/lib/python3.4/http/server.py +1241 -0
  584. package/python3.4.2/lib/python3.4/idlelib/AutoComplete.py +233 -0
  585. package/python3.4.2/lib/python3.4/idlelib/AutoCompleteWindow.py +415 -0
  586. package/python3.4.2/lib/python3.4/idlelib/AutoExpand.py +104 -0
  587. package/python3.4.2/lib/python3.4/idlelib/Bindings.py +94 -0
  588. package/python3.4.2/lib/python3.4/idlelib/CREDITS.txt +37 -0
  589. package/python3.4.2/lib/python3.4/idlelib/CallTipWindow.py +170 -0
  590. package/python3.4.2/lib/python3.4/idlelib/CallTips.py +175 -0
  591. package/python3.4.2/lib/python3.4/idlelib/ChangeLog +1591 -0
  592. package/python3.4.2/lib/python3.4/idlelib/ClassBrowser.py +229 -0
  593. package/python3.4.2/lib/python3.4/idlelib/CodeContext.py +176 -0
  594. package/python3.4.2/lib/python3.4/idlelib/ColorDelegator.py +254 -0
  595. package/python3.4.2/lib/python3.4/idlelib/Debugger.py +490 -0
  596. package/python3.4.2/lib/python3.4/idlelib/Delegator.py +25 -0
  597. package/python3.4.2/lib/python3.4/idlelib/EditorWindow.py +1729 -0
  598. package/python3.4.2/lib/python3.4/idlelib/FileList.py +129 -0
  599. package/python3.4.2/lib/python3.4/idlelib/FormatParagraph.py +193 -0
  600. package/python3.4.2/lib/python3.4/idlelib/GrepDialog.py +159 -0
  601. package/python3.4.2/lib/python3.4/idlelib/HISTORY.txt +296 -0
  602. package/python3.4.2/lib/python3.4/idlelib/HyperParser.py +313 -0
  603. package/python3.4.2/lib/python3.4/idlelib/IOBinding.py +555 -0
  604. package/python3.4.2/lib/python3.4/idlelib/Icons/folder.gif +0 -0
  605. package/python3.4.2/lib/python3.4/idlelib/Icons/idle.icns +0 -0
  606. package/python3.4.2/lib/python3.4/idlelib/Icons/idle.ico +0 -0
  607. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.gif +0 -0
  608. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.png +0 -0
  609. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.gif +0 -0
  610. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.png +0 -0
  611. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.gif +0 -0
  612. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.png +0 -0
  613. package/python3.4.2/lib/python3.4/idlelib/Icons/minusnode.gif +0 -0
  614. package/python3.4.2/lib/python3.4/idlelib/Icons/openfolder.gif +0 -0
  615. package/python3.4.2/lib/python3.4/idlelib/Icons/plusnode.gif +0 -0
  616. package/python3.4.2/lib/python3.4/idlelib/Icons/python.gif +0 -0
  617. package/python3.4.2/lib/python3.4/idlelib/Icons/tk.gif +0 -0
  618. package/python3.4.2/lib/python3.4/idlelib/IdleHistory.py +104 -0
  619. package/python3.4.2/lib/python3.4/idlelib/MultiCall.py +453 -0
  620. package/python3.4.2/lib/python3.4/idlelib/MultiStatusBar.py +45 -0
  621. package/python3.4.2/lib/python3.4/idlelib/NEWS.txt +877 -0
  622. package/python3.4.2/lib/python3.4/idlelib/ObjectBrowser.py +143 -0
  623. package/python3.4.2/lib/python3.4/idlelib/OutputWindow.py +144 -0
  624. package/python3.4.2/lib/python3.4/idlelib/ParenMatch.py +178 -0
  625. package/python3.4.2/lib/python3.4/idlelib/PathBrowser.py +106 -0
  626. package/python3.4.2/lib/python3.4/idlelib/Percolator.py +104 -0
  627. package/python3.4.2/lib/python3.4/idlelib/PyParse.py +618 -0
  628. package/python3.4.2/lib/python3.4/idlelib/PyShell.py +1619 -0
  629. package/python3.4.2/lib/python3.4/idlelib/README.txt +60 -0
  630. package/python3.4.2/lib/python3.4/idlelib/RemoteDebugger.py +389 -0
  631. package/python3.4.2/lib/python3.4/idlelib/RemoteObjectBrowser.py +36 -0
  632. package/python3.4.2/lib/python3.4/idlelib/ReplaceDialog.py +221 -0
  633. package/python3.4.2/lib/python3.4/idlelib/RstripExtension.py +33 -0
  634. package/python3.4.2/lib/python3.4/idlelib/ScriptBinding.py +207 -0
  635. package/python3.4.2/lib/python3.4/idlelib/ScrolledList.py +140 -0
  636. package/python3.4.2/lib/python3.4/idlelib/SearchDialog.py +89 -0
  637. package/python3.4.2/lib/python3.4/idlelib/SearchDialogBase.py +184 -0
  638. package/python3.4.2/lib/python3.4/idlelib/SearchEngine.py +233 -0
  639. package/python3.4.2/lib/python3.4/idlelib/StackViewer.py +152 -0
  640. package/python3.4.2/lib/python3.4/idlelib/TODO.txt +210 -0
  641. package/python3.4.2/lib/python3.4/idlelib/ToolTip.py +97 -0
  642. package/python3.4.2/lib/python3.4/idlelib/TreeWidget.py +465 -0
  643. package/python3.4.2/lib/python3.4/idlelib/UndoDelegator.py +365 -0
  644. package/python3.4.2/lib/python3.4/idlelib/WidgetRedirector.py +174 -0
  645. package/python3.4.2/lib/python3.4/idlelib/WindowList.py +90 -0
  646. package/python3.4.2/lib/python3.4/idlelib/ZoomHeight.py +51 -0
  647. package/python3.4.2/lib/python3.4/idlelib/__init__.py +1 -0
  648. package/python3.4.2/lib/python3.4/idlelib/__main__.py +9 -0
  649. package/python3.4.2/lib/python3.4/idlelib/aboutDialog.py +145 -0
  650. package/python3.4.2/lib/python3.4/idlelib/config-extensions.def +96 -0
  651. package/python3.4.2/lib/python3.4/idlelib/config-highlight.def +64 -0
  652. package/python3.4.2/lib/python3.4/idlelib/config-keys.def +214 -0
  653. package/python3.4.2/lib/python3.4/idlelib/config-main.def +79 -0
  654. package/python3.4.2/lib/python3.4/idlelib/configDialog.py +1195 -0
  655. package/python3.4.2/lib/python3.4/idlelib/configHandler.py +722 -0
  656. package/python3.4.2/lib/python3.4/idlelib/configHelpSourceEdit.py +166 -0
  657. package/python3.4.2/lib/python3.4/idlelib/configSectionNameDialog.py +98 -0
  658. package/python3.4.2/lib/python3.4/idlelib/dynOptionMenuWidget.py +57 -0
  659. package/python3.4.2/lib/python3.4/idlelib/extend.txt +83 -0
  660. package/python3.4.2/lib/python3.4/idlelib/help.txt +368 -0
  661. package/python3.4.2/lib/python3.4/idlelib/idle.bat +4 -0
  662. package/python3.4.2/lib/python3.4/idlelib/idle.py +11 -0
  663. package/python3.4.2/lib/python3.4/idlelib/idle.pyw +21 -0
  664. package/python3.4.2/lib/python3.4/idlelib/idle_test/README.txt +115 -0
  665. package/python3.4.2/lib/python3.4/idlelib/idle_test/__init__.py +9 -0
  666. package/python3.4.2/lib/python3.4/idlelib/idle_test/htest.py +369 -0
  667. package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_idle.py +55 -0
  668. package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_tk.py +298 -0
  669. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autocomplete.py +143 -0
  670. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autoexpand.py +141 -0
  671. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_calltips.py +172 -0
  672. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_config_name.py +75 -0
  673. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_configdialog.py +32 -0
  674. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_delegator.py +37 -0
  675. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_formatparagraph.py +377 -0
  676. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_grep.py +80 -0
  677. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_hyperparser.py +273 -0
  678. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_idlehistory.py +167 -0
  679. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_parenmatch.py +109 -0
  680. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_pathbrowser.py +12 -0
  681. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_rstrip.py +49 -0
  682. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchdialogbase.py +165 -0
  683. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchengine.py +329 -0
  684. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_text.py +228 -0
  685. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_textview.py +97 -0
  686. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_warning.py +73 -0
  687. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_widgetredir.py +122 -0
  688. package/python3.4.2/lib/python3.4/idlelib/idlever.py +1 -0
  689. package/python3.4.2/lib/python3.4/idlelib/keybindingDialog.py +266 -0
  690. package/python3.4.2/lib/python3.4/idlelib/macosxSupport.py +239 -0
  691. package/python3.4.2/lib/python3.4/idlelib/rpc.py +624 -0
  692. package/python3.4.2/lib/python3.4/idlelib/run.py +404 -0
  693. package/python3.4.2/lib/python3.4/idlelib/tabbedpages.py +498 -0
  694. package/python3.4.2/lib/python3.4/idlelib/testcode.py +31 -0
  695. package/python3.4.2/lib/python3.4/idlelib/textView.py +86 -0
  696. package/python3.4.2/lib/python3.4/imaplib.py +1549 -0
  697. package/python3.4.2/lib/python3.4/imghdr.py +154 -0
  698. package/python3.4.2/lib/python3.4/imp.py +315 -0
  699. package/python3.4.2/lib/python3.4/importlib/__init__.py +156 -0
  700. package/python3.4.2/lib/python3.4/importlib/_bootstrap.py +2461 -0
  701. package/python3.4.2/lib/python3.4/importlib/abc.py +323 -0
  702. package/python3.4.2/lib/python3.4/importlib/machinery.py +21 -0
  703. package/python3.4.2/lib/python3.4/importlib/util.py +202 -0
  704. package/python3.4.2/lib/python3.4/inspect.py +2759 -0
  705. package/python3.4.2/lib/python3.4/io.py +92 -0
  706. package/python3.4.2/lib/python3.4/ipaddress.py +2183 -0
  707. package/python3.4.2/lib/python3.4/json/__init__.py +331 -0
  708. package/python3.4.2/lib/python3.4/json/decoder.py +362 -0
  709. package/python3.4.2/lib/python3.4/json/encoder.py +433 -0
  710. package/python3.4.2/lib/python3.4/json/scanner.py +73 -0
  711. package/python3.4.2/lib/python3.4/json/tool.py +39 -0
  712. package/python3.4.2/lib/python3.4/keyword.py +94 -0
  713. package/python3.4.2/lib/python3.4/lib2to3/Grammar.txt +159 -0
  714. package/python3.4.2/lib/python3.4/lib2to3/Grammar3.4.2.final.0.pickle +0 -0
  715. package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar.txt +28 -0
  716. package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar3.4.2.final.0.pickle +0 -0
  717. package/python3.4.2/lib/python3.4/lib2to3/__init__.py +1 -0
  718. package/python3.4.2/lib/python3.4/lib2to3/__main__.py +4 -0
  719. package/python3.4.2/lib/python3.4/lib2to3/btm_matcher.py +168 -0
  720. package/python3.4.2/lib/python3.4/lib2to3/btm_utils.py +281 -0
  721. package/python3.4.2/lib/python3.4/lib2to3/fixer_base.py +187 -0
  722. package/python3.4.2/lib/python3.4/lib2to3/fixer_util.py +455 -0
  723. package/python3.4.2/lib/python3.4/lib2to3/fixes/__init__.py +1 -0
  724. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_apply.py +59 -0
  725. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_asserts.py +34 -0
  726. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_basestring.py +14 -0
  727. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_buffer.py +22 -0
  728. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_callable.py +37 -0
  729. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_dict.py +107 -0
  730. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_except.py +93 -0
  731. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exec.py +40 -0
  732. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_execfile.py +52 -0
  733. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exitfunc.py +72 -0
  734. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_filter.py +76 -0
  735. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_funcattrs.py +21 -0
  736. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_future.py +22 -0
  737. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_getcwdu.py +19 -0
  738. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_has_key.py +110 -0
  739. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_idioms.py +152 -0
  740. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_import.py +99 -0
  741. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports.py +145 -0
  742. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports2.py +16 -0
  743. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_input.py +26 -0
  744. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_intern.py +31 -0
  745. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_isinstance.py +52 -0
  746. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools.py +43 -0
  747. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools_imports.py +57 -0
  748. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_long.py +19 -0
  749. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_map.py +91 -0
  750. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_metaclass.py +228 -0
  751. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_methodattrs.py +24 -0
  752. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ne.py +23 -0
  753. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_next.py +103 -0
  754. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_nonzero.py +21 -0
  755. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_numliterals.py +28 -0
  756. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_operator.py +98 -0
  757. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_paren.py +44 -0
  758. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_print.py +87 -0
  759. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raise.py +90 -0
  760. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raw_input.py +17 -0
  761. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reduce.py +35 -0
  762. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reload.py +28 -0
  763. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_renames.py +70 -0
  764. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_repr.py +23 -0
  765. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_set_literal.py +53 -0
  766. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_standarderror.py +18 -0
  767. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_sys_exc.py +30 -0
  768. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_throw.py +56 -0
  769. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_tuple_params.py +175 -0
  770. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_types.py +62 -0
  771. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_unicode.py +42 -0
  772. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_urllib.py +197 -0
  773. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ws_comma.py +39 -0
  774. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xrange.py +73 -0
  775. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xreadlines.py +25 -0
  776. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_zip.py +35 -0
  777. package/python3.4.2/lib/python3.4/lib2to3/main.py +268 -0
  778. package/python3.4.2/lib/python3.4/lib2to3/patcomp.py +205 -0
  779. package/python3.4.2/lib/python3.4/lib2to3/pgen2/__init__.py +4 -0
  780. package/python3.4.2/lib/python3.4/lib2to3/pgen2/conv.py +257 -0
  781. package/python3.4.2/lib/python3.4/lib2to3/pgen2/driver.py +157 -0
  782. package/python3.4.2/lib/python3.4/lib2to3/pgen2/grammar.py +183 -0
  783. package/python3.4.2/lib/python3.4/lib2to3/pgen2/literals.py +60 -0
  784. package/python3.4.2/lib/python3.4/lib2to3/pgen2/parse.py +201 -0
  785. package/python3.4.2/lib/python3.4/lib2to3/pgen2/pgen.py +386 -0
  786. package/python3.4.2/lib/python3.4/lib2to3/pgen2/token.py +83 -0
  787. package/python3.4.2/lib/python3.4/lib2to3/pgen2/tokenize.py +502 -0
  788. package/python3.4.2/lib/python3.4/lib2to3/pygram.py +40 -0
  789. package/python3.4.2/lib/python3.4/lib2to3/pytree.py +864 -0
  790. package/python3.4.2/lib/python3.4/lib2to3/refactor.py +747 -0
  791. package/python3.4.2/lib/python3.4/lib2to3/tests/__init__.py +24 -0
  792. package/python3.4.2/lib/python3.4/lib2to3/tests/data/README +6 -0
  793. package/python3.4.2/lib/python3.4/lib2to3/tests/data/bom.py +2 -0
  794. package/python3.4.2/lib/python3.4/lib2to3/tests/data/crlf.py +3 -0
  795. package/python3.4.2/lib/python3.4/lib2to3/tests/data/different_encoding.py +6 -0
  796. package/python3.4.2/lib/python3.4/lib2to3/tests/data/false_encoding.py +2 -0
  797. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/bad_order.py +5 -0
  798. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
  799. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
  800. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
  801. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
  802. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
  803. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
  804. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
  805. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/parrot_example.py +2 -0
  806. package/python3.4.2/lib/python3.4/lib2to3/tests/data/infinite_recursion.py +2669 -0
  807. package/python3.4.2/lib/python3.4/lib2to3/tests/data/py2_test_grammar.py +974 -0
  808. package/python3.4.2/lib/python3.4/lib2to3/tests/data/py3_test_grammar.py +923 -0
  809. package/python3.4.2/lib/python3.4/lib2to3/tests/pytree_idempotency.py +92 -0
  810. package/python3.4.2/lib/python3.4/lib2to3/tests/support.py +54 -0
  811. package/python3.4.2/lib/python3.4/lib2to3/tests/test_all_fixers.py +23 -0
  812. package/python3.4.2/lib/python3.4/lib2to3/tests/test_fixers.py +4687 -0
  813. package/python3.4.2/lib/python3.4/lib2to3/tests/test_main.py +139 -0
  814. package/python3.4.2/lib/python3.4/lib2to3/tests/test_parser.py +249 -0
  815. package/python3.4.2/lib/python3.4/lib2to3/tests/test_pytree.py +477 -0
  816. package/python3.4.2/lib/python3.4/lib2to3/tests/test_refactor.py +321 -0
  817. package/python3.4.2/lib/python3.4/lib2to3/tests/test_util.py +594 -0
  818. package/python3.4.2/lib/python3.4/linecache.py +134 -0
  819. package/python3.4.2/lib/python3.4/locale.py +1559 -0
  820. package/python3.4.2/lib/python3.4/logging/__init__.py +1950 -0
  821. package/python3.4.2/lib/python3.4/logging/config.py +927 -0
  822. package/python3.4.2/lib/python3.4/logging/handlers.py +1452 -0
  823. package/python3.4.2/lib/python3.4/lzma.py +511 -0
  824. package/python3.4.2/lib/python3.4/macpath.py +205 -0
  825. package/python3.4.2/lib/python3.4/macurl2path.py +77 -0
  826. package/python3.4.2/lib/python3.4/mailbox.py +2136 -0
  827. package/python3.4.2/lib/python3.4/mailcap.py +253 -0
  828. package/python3.4.2/lib/python3.4/mimetypes.py +592 -0
  829. package/python3.4.2/lib/python3.4/modulefinder.py +642 -0
  830. package/python3.4.2/lib/python3.4/multiprocessing/__init__.py +38 -0
  831. package/python3.4.2/lib/python3.4/multiprocessing/connection.py +954 -0
  832. package/python3.4.2/lib/python3.4/multiprocessing/context.py +348 -0
  833. package/python3.4.2/lib/python3.4/multiprocessing/dummy/__init__.py +119 -0
  834. package/python3.4.2/lib/python3.4/multiprocessing/dummy/connection.py +74 -0
  835. package/python3.4.2/lib/python3.4/multiprocessing/forkserver.py +267 -0
  836. package/python3.4.2/lib/python3.4/multiprocessing/heap.py +249 -0
  837. package/python3.4.2/lib/python3.4/multiprocessing/managers.py +1131 -0
  838. package/python3.4.2/lib/python3.4/multiprocessing/pool.py +769 -0
  839. package/python3.4.2/lib/python3.4/multiprocessing/popen_fork.py +83 -0
  840. package/python3.4.2/lib/python3.4/multiprocessing/popen_forkserver.py +69 -0
  841. package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_posix.py +69 -0
  842. package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_win32.py +99 -0
  843. package/python3.4.2/lib/python3.4/multiprocessing/process.py +332 -0
  844. package/python3.4.2/lib/python3.4/multiprocessing/queues.py +367 -0
  845. package/python3.4.2/lib/python3.4/multiprocessing/reduction.py +240 -0
  846. package/python3.4.2/lib/python3.4/multiprocessing/resource_sharer.py +158 -0
  847. package/python3.4.2/lib/python3.4/multiprocessing/semaphore_tracker.py +143 -0
  848. package/python3.4.2/lib/python3.4/multiprocessing/sharedctypes.py +245 -0
  849. package/python3.4.2/lib/python3.4/multiprocessing/spawn.py +287 -0
  850. package/python3.4.2/lib/python3.4/multiprocessing/synchronize.py +418 -0
  851. package/python3.4.2/lib/python3.4/multiprocessing/util.py +367 -0
  852. package/python3.4.2/lib/python3.4/netrc.py +142 -0
  853. package/python3.4.2/lib/python3.4/nntplib.py +1134 -0
  854. package/python3.4.2/lib/python3.4/ntpath.py +625 -0
  855. package/python3.4.2/lib/python3.4/nturl2path.py +66 -0
  856. package/python3.4.2/lib/python3.4/numbers.py +394 -0
  857. package/python3.4.2/lib/python3.4/opcode.py +200 -0
  858. package/python3.4.2/lib/python3.4/operator.py +411 -0
  859. package/python3.4.2/lib/python3.4/optparse.py +1680 -0
  860. package/python3.4.2/lib/python3.4/os.py +980 -0
  861. package/python3.4.2/lib/python3.4/pathlib.py +1291 -0
  862. package/python3.4.2/lib/python3.4/pdb.py +1685 -0
  863. package/python3.4.2/lib/python3.4/pickle.py +1599 -0
  864. package/python3.4.2/lib/python3.4/pickletools.py +2818 -0
  865. package/python3.4.2/lib/python3.4/pipes.py +247 -0
  866. package/python3.4.2/lib/python3.4/pkgutil.py +629 -0
  867. package/python3.4.2/lib/python3.4/plat-linux/CDROM.py +207 -0
  868. package/python3.4.2/lib/python3.4/plat-linux/DLFCN.py +83 -0
  869. package/python3.4.2/lib/python3.4/plat-linux/IN.py +615 -0
  870. package/python3.4.2/lib/python3.4/plat-linux/TYPES.py +170 -0
  871. package/python3.4.2/lib/python3.4/plat-linux/regen +8 -0
  872. package/python3.4.2/lib/python3.4/platform.py +1476 -0
  873. package/python3.4.2/lib/python3.4/plistlib.py +1025 -0
  874. package/python3.4.2/lib/python3.4/poplib.py +461 -0
  875. package/python3.4.2/lib/python3.4/posixpath.py +457 -0
  876. package/python3.4.2/lib/python3.4/pprint.py +416 -0
  877. package/python3.4.2/lib/python3.4/profile.py +589 -0
  878. package/python3.4.2/lib/python3.4/pstats.py +691 -0
  879. package/python3.4.2/lib/python3.4/pty.py +170 -0
  880. package/python3.4.2/lib/python3.4/py_compile.py +185 -0
  881. package/python3.4.2/lib/python3.4/pyclbr.py +351 -0
  882. package/python3.4.2/lib/python3.4/pydoc.py +2622 -0
  883. package/python3.4.2/lib/python3.4/pydoc_data/__init__.py +0 -0
  884. package/python3.4.2/lib/python3.4/pydoc_data/_pydoc.css +6 -0
  885. package/python3.4.2/lib/python3.4/pydoc_data/topics.py +79 -0
  886. package/python3.4.2/lib/python3.4/queue.py +249 -0
  887. package/python3.4.2/lib/python3.4/quopri.py +242 -0
  888. package/python3.4.2/lib/python3.4/random.py +742 -0
  889. package/python3.4.2/lib/python3.4/re.py +368 -0
  890. package/python3.4.2/lib/python3.4/reprlib.py +157 -0
  891. package/python3.4.2/lib/python3.4/rlcompleter.py +165 -0
  892. package/python3.4.2/lib/python3.4/runpy.py +271 -0
  893. package/python3.4.2/lib/python3.4/sched.py +167 -0
  894. package/python3.4.2/lib/python3.4/selectors.py +525 -0
  895. package/python3.4.2/lib/python3.4/shelve.py +239 -0
  896. package/python3.4.2/lib/python3.4/shlex.py +304 -0
  897. package/python3.4.2/lib/python3.4/shutil.py +1127 -0
  898. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/PKG-INFO +55 -0
  899. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/SOURCES.txt +126 -0
  900. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  901. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/entry_points.txt +4 -0
  902. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  903. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/requires.txt +4 -0
  904. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  905. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/__init__.py +69 -0
  906. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_compat.py +150 -0
  907. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_stringdefs.py +132 -0
  908. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/bccache.py +344 -0
  909. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/compiler.py +1640 -0
  910. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/constants.py +32 -0
  911. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/debug.py +337 -0
  912. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/defaults.py +43 -0
  913. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/environment.py +1191 -0
  914. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/exceptions.py +146 -0
  915. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/ext.py +636 -0
  916. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/filters.py +987 -0
  917. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/lexer.py +733 -0
  918. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/loaders.py +471 -0
  919. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/meta.py +103 -0
  920. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/nodes.py +914 -0
  921. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/optimizer.py +68 -0
  922. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/parser.py +895 -0
  923. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/runtime.py +581 -0
  924. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/sandbox.py +368 -0
  925. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/tests.py +149 -0
  926. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/__init__.py +156 -0
  927. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/api.py +261 -0
  928. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/bytecode_cache.py +37 -0
  929. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/core_tags.py +305 -0
  930. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/debug.py +58 -0
  931. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/doctests.py +29 -0
  932. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/ext.py +459 -0
  933. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/filters.py +515 -0
  934. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/imports.py +141 -0
  935. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/inheritance.py +250 -0
  936. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/lexnparse.py +593 -0
  937. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/loader.py +226 -0
  938. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/regression.py +279 -0
  939. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/__init__.py +0 -0
  940. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/broken.html +3 -0
  941. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/foo/test.html +1 -0
  942. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/syntaxerror.html +4 -0
  943. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/test.html +1 -0
  944. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/security.py +166 -0
  945. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/tests.py +93 -0
  946. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/utils.py +82 -0
  947. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/utils.py +520 -0
  948. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/visitor.py +87 -0
  949. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/PKG-INFO +119 -0
  950. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/SOURCES.txt +17 -0
  951. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  952. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  953. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  954. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/__init__.py +298 -0
  955. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_compat.py +26 -0
  956. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_constants.py +267 -0
  957. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_native.py +46 -0
  958. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_speedups.c +239 -0
  959. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/tests.py +179 -0
  960. package/python3.4.2/lib/python3.4/site-packages/README +2 -0
  961. package/python3.4.2/lib/python3.4/site-packages/_markerlib/__init__.py +16 -0
  962. package/python3.4.2/lib/python3.4/site-packages/_markerlib/markers.py +119 -0
  963. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/PKG-INFO +68 -0
  964. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/SOURCES.txt +23 -0
  965. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  966. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/entry_points.txt +3 -0
  967. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  968. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/requires.txt +1 -0
  969. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/scripts/android-debian-builder +6 -0
  970. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  971. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__init__.py +0 -0
  972. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__main__.py +26 -0
  973. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/build.py +63 -0
  974. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/config.py +82 -0
  975. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/deb.sh +106 -0
  976. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/default-config +42 -0
  977. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/first-time-setup.sh +94 -0
  978. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/init.sh +27 -0
  979. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/examples/jessie-armhf.cfg +26 -0
  980. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/run_tests.py +38 -0
  981. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/script.py +110 -0
  982. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/util.py +177 -0
  983. package/python3.4.2/lib/python3.4/site-packages/easy-install.pth +4 -0
  984. package/python3.4.2/lib/python3.4/site-packages/easy_install.py +5 -0
  985. package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +277 -0
  986. package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +7 -0
  987. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +8 -0
  988. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +16 -0
  989. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +119 -0
  990. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -0
  991. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +50 -0
  992. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +190 -0
  993. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +56 -0
  994. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +137 -0
  995. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +120 -0
  996. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -0
  997. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
  998. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
  999. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -0
  1000. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
  1001. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -0
  1002. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
  1003. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1064 -0
  1004. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1301 -0
  1005. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +488 -0
  1006. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1194 -0
  1007. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +364 -0
  1008. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +190 -0
  1009. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1026 -0
  1010. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +317 -0
  1011. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +323 -0
  1012. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1013. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1014. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1575 -0
  1015. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +721 -0
  1016. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1017. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1018. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +958 -0
  1019. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +23 -0
  1020. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +3104 -0
  1021. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
  1022. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/_base.py +12 -0
  1023. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +20 -0
  1024. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +65 -0
  1025. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
  1026. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +205 -0
  1027. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +12 -0
  1028. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
  1029. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2713 -0
  1030. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/ihatexml.py +285 -0
  1031. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/inputstream.py +881 -0
  1032. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +271 -0
  1033. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +16 -0
  1034. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +320 -0
  1035. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/tokenizer.py +1731 -0
  1036. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -0
  1037. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +44 -0
  1038. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +76 -0
  1039. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/_base.py +377 -0
  1040. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +227 -0
  1041. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +337 -0
  1042. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +369 -0
  1043. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +57 -0
  1044. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/_base.py +200 -0
  1045. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +46 -0
  1046. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +138 -0
  1047. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/genshistream.py +69 -0
  1048. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/lxmletree.py +208 -0
  1049. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +63 -0
  1050. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/__init__.py +12 -0
  1051. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/_base.py +37 -0
  1052. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/datrie.py +44 -0
  1053. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/py.py +67 -0
  1054. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/utils.py +82 -0
  1055. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py +2762 -0
  1056. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +34 -0
  1057. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +77 -0
  1058. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +388 -0
  1059. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +120 -0
  1060. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +193 -0
  1061. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cacert.pem +5026 -0
  1062. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +24 -0
  1063. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +115 -0
  1064. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +454 -0
  1065. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +75 -0
  1066. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +45 -0
  1067. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +803 -0
  1068. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +3 -0
  1069. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/__init__.py +32 -0
  1070. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +925 -0
  1071. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5prober.py +42 -0
  1072. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +46 -0
  1073. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardistribution.py +231 -0
  1074. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
  1075. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +62 -0
  1076. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +61 -0
  1077. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/compat.py +34 -0
  1078. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +39 -0
  1079. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py +44 -0
  1080. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +86 -0
  1081. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +242 -0
  1082. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +90 -0
  1083. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +596 -0
  1084. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrprober.py +42 -0
  1085. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwfreq.py +428 -0
  1086. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwprober.py +41 -0
  1087. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312freq.py +472 -0
  1088. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312prober.py +41 -0
  1089. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/hebrewprober.py +283 -0
  1090. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jisfreq.py +569 -0
  1091. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jpcntx.py +219 -0
  1092. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
  1093. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
  1094. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langgreekmodel.py +225 -0
  1095. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
  1096. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
  1097. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langthaimodel.py +200 -0
  1098. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/latin1prober.py +139 -0
  1099. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
  1100. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
  1101. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +575 -0
  1102. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
  1103. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
  1104. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +91 -0
  1105. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +170 -0
  1106. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/utf8prober.py +76 -0
  1107. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +58 -0
  1108. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +205 -0
  1109. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +204 -0
  1110. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py +710 -0
  1111. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
  1112. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/ntlmpool.py +120 -0
  1113. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +422 -0
  1114. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +126 -0
  1115. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/fields.py +177 -0
  1116. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/filepost.py +100 -0
  1117. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/__init__.py +4 -0
  1118. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py +260 -0
  1119. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +385 -0
  1120. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
  1121. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
  1122. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +258 -0
  1123. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/request.py +141 -0
  1124. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +308 -0
  1125. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +27 -0
  1126. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +45 -0
  1127. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +68 -0
  1128. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +13 -0
  1129. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +133 -0
  1130. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py +234 -0
  1131. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/url.py +162 -0
  1132. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +637 -0
  1133. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +88 -0
  1134. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +127 -0
  1135. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +673 -0
  1136. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +646 -0
  1137. package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +138 -0
  1138. package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +201 -0
  1139. package/python3.4.2/lib/python3.4/site-packages/pip/baseparser.py +224 -0
  1140. package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +371 -0
  1141. package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +88 -0
  1142. package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +42 -0
  1143. package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +59 -0
  1144. package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +114 -0
  1145. package/python3.4.2/lib/python3.4/site-packages/pip/commands/help.py +33 -0
  1146. package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +314 -0
  1147. package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +162 -0
  1148. package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +132 -0
  1149. package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +80 -0
  1150. package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +59 -0
  1151. package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +7 -0
  1152. package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +195 -0
  1153. package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +351 -0
  1154. package/python3.4.2/lib/python3.4/site-packages/pip/download.py +644 -0
  1155. package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +46 -0
  1156. package/python3.4.2/lib/python3.4/site-packages/pip/index.py +990 -0
  1157. package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +172 -0
  1158. package/python3.4.2/lib/python3.4/site-packages/pip/log.py +276 -0
  1159. package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +102 -0
  1160. package/python3.4.2/lib/python3.4/site-packages/pip/req.py +1931 -0
  1161. package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +18 -0
  1162. package/python3.4.2/lib/python3.4/site-packages/pip/status_codes.py +6 -0
  1163. package/python3.4.2/lib/python3.4/site-packages/pip/util.py +720 -0
  1164. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +251 -0
  1165. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +131 -0
  1166. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +194 -0
  1167. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +151 -0
  1168. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +273 -0
  1169. package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +560 -0
  1170. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +71 -0
  1171. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +98 -0
  1172. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +373 -0
  1173. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/WHEEL +6 -0
  1174. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +5 -0
  1175. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +1 -0
  1176. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/top_level.txt +1 -0
  1177. package/python3.4.2/lib/python3.4/site-packages/pkg_resources.py +2719 -0
  1178. package/python3.4.2/lib/python3.4/site-packages/setuptools/__init__.py +98 -0
  1179. package/python3.4.2/lib/python3.4/site-packages/setuptools/archive_util.py +210 -0
  1180. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-32.exe +0 -0
  1181. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-64.exe +0 -0
  1182. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-arm-32.exe +0 -0
  1183. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli.exe +0 -0
  1184. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/__init__.py +17 -0
  1185. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/alias.py +82 -0
  1186. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_egg.py +553 -0
  1187. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_rpm.py +82 -0
  1188. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_wininst.py +82 -0
  1189. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_ext.py +298 -0
  1190. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_py.py +221 -0
  1191. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/develop.py +167 -0
  1192. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/easy_install.py +1915 -0
  1193. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/egg_info.py +392 -0
  1194. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install.py +103 -0
  1195. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_egg_info.py +125 -0
  1196. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_lib.py +82 -0
  1197. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_scripts.py +54 -0
  1198. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/launcher manifest.xml +15 -0
  1199. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/register.py +10 -0
  1200. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/rotate.py +83 -0
  1201. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/saveopts.py +24 -0
  1202. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/sdist.py +238 -0
  1203. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/setopt.py +164 -0
  1204. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/test.py +198 -0
  1205. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/upload_docs.py +193 -0
  1206. package/python3.4.2/lib/python3.4/site-packages/setuptools/compat.py +83 -0
  1207. package/python3.4.2/lib/python3.4/site-packages/setuptools/depends.py +246 -0
  1208. package/python3.4.2/lib/python3.4/site-packages/setuptools/dist.py +796 -0
  1209. package/python3.4.2/lib/python3.4/site-packages/setuptools/extension.py +46 -0
  1210. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-32.exe +0 -0
  1211. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-64.exe +0 -0
  1212. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-arm-32.exe +0 -0
  1213. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui.exe +0 -0
  1214. package/python3.4.2/lib/python3.4/site-packages/setuptools/lib2to3_ex.py +58 -0
  1215. package/python3.4.2/lib/python3.4/site-packages/setuptools/package_index.py +1057 -0
  1216. package/python3.4.2/lib/python3.4/site-packages/setuptools/py26compat.py +19 -0
  1217. package/python3.4.2/lib/python3.4/site-packages/setuptools/py27compat.py +15 -0
  1218. package/python3.4.2/lib/python3.4/site-packages/setuptools/py31compat.py +11 -0
  1219. package/python3.4.2/lib/python3.4/site-packages/setuptools/sandbox.py +322 -0
  1220. package/python3.4.2/lib/python3.4/site-packages/setuptools/script template (dev).py +11 -0
  1221. package/python3.4.2/lib/python3.4/site-packages/setuptools/script template.py +4 -0
  1222. package/python3.4.2/lib/python3.4/site-packages/setuptools/site-patch.py +83 -0
  1223. package/python3.4.2/lib/python3.4/site-packages/setuptools/ssl_support.py +234 -0
  1224. package/python3.4.2/lib/python3.4/site-packages/setuptools/svn_utils.py +564 -0
  1225. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/__init__.py +352 -0
  1226. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/doctest.py +2683 -0
  1227. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/environment.py +165 -0
  1228. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/py26compat.py +14 -0
  1229. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/script-with-bom.py +3 -0
  1230. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/server.py +82 -0
  1231. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_bdist_egg.py +69 -0
  1232. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_build_ext.py +20 -0
  1233. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_develop.py +122 -0
  1234. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_dist_info.py +83 -0
  1235. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_easy_install.py +394 -0
  1236. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_egg_info.py +173 -0
  1237. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_markerlib.py +68 -0
  1238. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_packageindex.py +203 -0
  1239. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_resources.py +620 -0
  1240. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sandbox.py +79 -0
  1241. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sdist.py +535 -0
  1242. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_svn.py +246 -0
  1243. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_test.py +124 -0
  1244. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py +72 -0
  1245. package/python3.4.2/lib/python3.4/site-packages/setuptools/version.py +1 -0
  1246. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/DESCRIPTION.rst +1742 -0
  1247. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/METADATA +1772 -0
  1248. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/RECORD +149 -0
  1249. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/WHEEL +6 -0
  1250. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/dependency_links.txt +2 -0
  1251. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt +62 -0
  1252. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt.orig +62 -0
  1253. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/pydist.json +1 -0
  1254. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/requires.txt.orig +7 -0
  1255. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/top_level.txt +4 -0
  1256. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/zip-safe +1 -0
  1257. package/python3.4.2/lib/python3.4/site.py +616 -0
  1258. package/python3.4.2/lib/python3.4/smtpd.py +861 -0
  1259. package/python3.4.2/lib/python3.4/smtplib.py +999 -0
  1260. package/python3.4.2/lib/python3.4/sndhdr.py +240 -0
  1261. package/python3.4.2/lib/python3.4/socket.py +535 -0
  1262. package/python3.4.2/lib/python3.4/socketserver.py +748 -0
  1263. package/python3.4.2/lib/python3.4/sqlite3/__init__.py +23 -0
  1264. package/python3.4.2/lib/python3.4/sqlite3/dbapi2.py +89 -0
  1265. package/python3.4.2/lib/python3.4/sqlite3/dump.py +70 -0
  1266. package/python3.4.2/lib/python3.4/sqlite3/test/__init__.py +0 -0
  1267. package/python3.4.2/lib/python3.4/sqlite3/test/dbapi.py +911 -0
  1268. package/python3.4.2/lib/python3.4/sqlite3/test/dump.py +81 -0
  1269. package/python3.4.2/lib/python3.4/sqlite3/test/factory.py +253 -0
  1270. package/python3.4.2/lib/python3.4/sqlite3/test/hooks.py +258 -0
  1271. package/python3.4.2/lib/python3.4/sqlite3/test/regression.py +358 -0
  1272. package/python3.4.2/lib/python3.4/sqlite3/test/transactions.py +204 -0
  1273. package/python3.4.2/lib/python3.4/sqlite3/test/types.py +403 -0
  1274. package/python3.4.2/lib/python3.4/sqlite3/test/userfunctions.py +468 -0
  1275. package/python3.4.2/lib/python3.4/sre_compile.py +489 -0
  1276. package/python3.4.2/lib/python3.4/sre_constants.py +261 -0
  1277. package/python3.4.2/lib/python3.4/sre_parse.py +859 -0
  1278. package/python3.4.2/lib/python3.4/ssl.py +945 -0
  1279. package/python3.4.2/lib/python3.4/stat.py +155 -0
  1280. package/python3.4.2/lib/python3.4/statistics.py +595 -0
  1281. package/python3.4.2/lib/python3.4/string.py +282 -0
  1282. package/python3.4.2/lib/python3.4/stringprep.py +272 -0
  1283. package/python3.4.2/lib/python3.4/struct.py +15 -0
  1284. package/python3.4.2/lib/python3.4/subprocess.py +1690 -0
  1285. package/python3.4.2/lib/python3.4/sunau.py +525 -0
  1286. package/python3.4.2/lib/python3.4/symbol.py +111 -0
  1287. package/python3.4.2/lib/python3.4/symtable.py +240 -0
  1288. package/python3.4.2/lib/python3.4/sysconfig.py +709 -0
  1289. package/python3.4.2/lib/python3.4/tabnanny.py +332 -0
  1290. package/python3.4.2/lib/python3.4/tarfile.py +2519 -0
  1291. package/python3.4.2/lib/python3.4/telnetlib.py +672 -0
  1292. package/python3.4.2/lib/python3.4/tempfile.py +698 -0
  1293. package/python3.4.2/lib/python3.4/test/185test.db +0 -0
  1294. package/python3.4.2/lib/python3.4/test/Sine-1000Hz-300ms.aif +0 -0
  1295. package/python3.4.2/lib/python3.4/test/__init__.py +1 -0
  1296. package/python3.4.2/lib/python3.4/test/__main__.py +3 -0
  1297. package/python3.4.2/lib/python3.4/test/_test_multiprocessing.py +3841 -0
  1298. package/python3.4.2/lib/python3.4/test/audiodata/pluck-alaw.aifc +0 -0
  1299. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.aiff +0 -0
  1300. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.au +0 -0
  1301. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.wav +0 -0
  1302. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.aiff +0 -0
  1303. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.au +0 -0
  1304. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.wav +0 -0
  1305. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.aiff +0 -0
  1306. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.au +0 -0
  1307. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.wav +0 -0
  1308. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.aiff +0 -0
  1309. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.au +0 -0
  1310. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.wav +0 -0
  1311. package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.aifc +0 -0
  1312. package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.au +0 -0
  1313. package/python3.4.2/lib/python3.4/test/audiotest.au +0 -0
  1314. package/python3.4.2/lib/python3.4/test/audiotests.py +329 -0
  1315. package/python3.4.2/lib/python3.4/test/autotest.py +6 -0
  1316. package/python3.4.2/lib/python3.4/test/bad_coding.py +1 -0
  1317. package/python3.4.2/lib/python3.4/test/bad_coding2.py +2 -0
  1318. package/python3.4.2/lib/python3.4/test/badcert.pem +36 -0
  1319. package/python3.4.2/lib/python3.4/test/badkey.pem +40 -0
  1320. package/python3.4.2/lib/python3.4/test/badsyntax_3131.py +2 -0
  1321. package/python3.4.2/lib/python3.4/test/badsyntax_future10.py +3 -0
  1322. package/python3.4.2/lib/python3.4/test/badsyntax_future3.py +10 -0
  1323. package/python3.4.2/lib/python3.4/test/badsyntax_future4.py +10 -0
  1324. package/python3.4.2/lib/python3.4/test/badsyntax_future5.py +12 -0
  1325. package/python3.4.2/lib/python3.4/test/badsyntax_future6.py +10 -0
  1326. package/python3.4.2/lib/python3.4/test/badsyntax_future7.py +11 -0
  1327. package/python3.4.2/lib/python3.4/test/badsyntax_future8.py +10 -0
  1328. package/python3.4.2/lib/python3.4/test/badsyntax_future9.py +10 -0
  1329. package/python3.4.2/lib/python3.4/test/badsyntax_pep3120.py +1 -0
  1330. package/python3.4.2/lib/python3.4/test/buffer_tests.py +218 -0
  1331. package/python3.4.2/lib/python3.4/test/bytecode_helper.py +41 -0
  1332. package/python3.4.2/lib/python3.4/test/capath/4e1295a3.0 +14 -0
  1333. package/python3.4.2/lib/python3.4/test/capath/5ed36f99.0 +41 -0
  1334. package/python3.4.2/lib/python3.4/test/capath/6e88d7b8.0 +14 -0
  1335. package/python3.4.2/lib/python3.4/test/capath/99d0fa06.0 +41 -0
  1336. package/python3.4.2/lib/python3.4/test/cfgparser.1 +2 -0
  1337. package/python3.4.2/lib/python3.4/test/cfgparser.2 +537 -0
  1338. package/python3.4.2/lib/python3.4/test/cfgparser.3 +69 -0
  1339. package/python3.4.2/lib/python3.4/test/check_soundcard.vbs +13 -0
  1340. package/python3.4.2/lib/python3.4/test/cjkencodings/big5-utf8.txt +9 -0
  1341. package/python3.4.2/lib/python3.4/test/cjkencodings/big5.txt +9 -0
  1342. package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs-utf8.txt +2 -0
  1343. package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs.txt +2 -0
  1344. package/python3.4.2/lib/python3.4/test/cjkencodings/cp949-utf8.txt +9 -0
  1345. package/python3.4.2/lib/python3.4/test/cjkencodings/cp949.txt +9 -0
  1346. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
  1347. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213.txt +8 -0
  1348. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp-utf8.txt +7 -0
  1349. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp.txt +7 -0
  1350. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr-utf8.txt +7 -0
  1351. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr.txt +7 -0
  1352. package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030-utf8.txt +15 -0
  1353. package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030.txt +15 -0
  1354. package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312-utf8.txt +6 -0
  1355. package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312.txt +6 -0
  1356. package/python3.4.2/lib/python3.4/test/cjkencodings/gbk-utf8.txt +14 -0
  1357. package/python3.4.2/lib/python3.4/test/cjkencodings/gbk.txt +14 -0
  1358. package/python3.4.2/lib/python3.4/test/cjkencodings/hz-utf8.txt +2 -0
  1359. package/python3.4.2/lib/python3.4/test/cjkencodings/hz.txt +2 -0
  1360. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
  1361. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp.txt +7 -0
  1362. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
  1363. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr.txt +7 -0
  1364. package/python3.4.2/lib/python3.4/test/cjkencodings/johab-utf8.txt +9 -0
  1365. package/python3.4.2/lib/python3.4/test/cjkencodings/johab.txt +9 -0
  1366. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis-utf8.txt +7 -0
  1367. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis.txt +7 -0
  1368. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
  1369. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213.txt +8 -0
  1370. package/python3.4.2/lib/python3.4/test/cmath_testcases.txt +2370 -0
  1371. package/python3.4.2/lib/python3.4/test/coding20731.py +4 -0
  1372. package/python3.4.2/lib/python3.4/test/curses_tests.py +46 -0
  1373. package/python3.4.2/lib/python3.4/test/data/README +2 -0
  1374. package/python3.4.2/lib/python3.4/test/datetimetester.py +3786 -0
  1375. package/python3.4.2/lib/python3.4/test/decimaltestdata/abs.decTest +161 -0
  1376. package/python3.4.2/lib/python3.4/test/decimaltestdata/add.decTest +2716 -0
  1377. package/python3.4.2/lib/python3.4/test/decimaltestdata/and.decTest +338 -0
  1378. package/python3.4.2/lib/python3.4/test/decimaltestdata/base.decTest +1411 -0
  1379. package/python3.4.2/lib/python3.4/test/decimaltestdata/clamp.decTest +211 -0
  1380. package/python3.4.2/lib/python3.4/test/decimaltestdata/class.decTest +131 -0
  1381. package/python3.4.2/lib/python3.4/test/decimaltestdata/compare.decTest +758 -0
  1382. package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotal.decTest +798 -0
  1383. package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotmag.decTest +790 -0
  1384. package/python3.4.2/lib/python3.4/test/decimaltestdata/copy.decTest +86 -0
  1385. package/python3.4.2/lib/python3.4/test/decimaltestdata/copyabs.decTest +86 -0
  1386. package/python3.4.2/lib/python3.4/test/decimaltestdata/copynegate.decTest +86 -0
  1387. package/python3.4.2/lib/python3.4/test/decimaltestdata/copysign.decTest +177 -0
  1388. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAbs.decTest +126 -0
  1389. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAdd.decTest +1328 -0
  1390. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAnd.decTest +347 -0
  1391. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddBase.decTest +1104 -0
  1392. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCanonical.decTest +357 -0
  1393. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddClass.decTest +76 -0
  1394. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompare.decTest +744 -0
  1395. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareSig.decTest +647 -0
  1396. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotal.decTest +706 -0
  1397. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
  1398. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopy.decTest +88 -0
  1399. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyAbs.decTest +88 -0
  1400. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyNegate.decTest +88 -0
  1401. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopySign.decTest +175 -0
  1402. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivide.decTest +863 -0
  1403. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivideInt.decTest +449 -0
  1404. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddEncode.decTest +495 -0
  1405. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddFMA.decTest +1698 -0
  1406. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddInvert.decTest +202 -0
  1407. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddLogB.decTest +159 -0
  1408. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMax.decTest +322 -0
  1409. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMaxMag.decTest +304 -0
  1410. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMin.decTest +309 -0
  1411. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinMag.decTest +293 -0
  1412. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinus.decTest +88 -0
  1413. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMultiply.decTest +553 -0
  1414. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextMinus.decTest +126 -0
  1415. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextPlus.decTest +124 -0
  1416. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextToward.decTest +374 -0
  1417. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddOr.decTest +292 -0
  1418. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddPlus.decTest +88 -0
  1419. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddQuantize.decTest +833 -0
  1420. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddReduce.decTest +182 -0
  1421. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainder.decTest +600 -0
  1422. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainderNear.decTest +629 -0
  1423. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRotate.decTest +262 -0
  1424. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSameQuantum.decTest +389 -0
  1425. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddScaleB.decTest +243 -0
  1426. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddShift.decTest +262 -0
  1427. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSubtract.decTest +629 -0
  1428. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddToIntegral.decTest +257 -0
  1429. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddXor.decTest +337 -0
  1430. package/python3.4.2/lib/python3.4/test/decimaltestdata/decDouble.decTest +65 -0
  1431. package/python3.4.2/lib/python3.4/test/decimaltestdata/decQuad.decTest +65 -0
  1432. package/python3.4.2/lib/python3.4/test/decimaltestdata/decSingle.decTest +25 -0
  1433. package/python3.4.2/lib/python3.4/test/decimaltestdata/divide.decTest +854 -0
  1434. package/python3.4.2/lib/python3.4/test/decimaltestdata/divideint.decTest +486 -0
  1435. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAbs.decTest +126 -0
  1436. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAdd.decTest +1215 -0
  1437. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAnd.decTest +420 -0
  1438. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqBase.decTest +1081 -0
  1439. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCanonical.decTest +372 -0
  1440. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqClass.decTest +77 -0
  1441. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompare.decTest +753 -0
  1442. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareSig.decTest +647 -0
  1443. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotal.decTest +706 -0
  1444. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
  1445. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopy.decTest +88 -0
  1446. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyAbs.decTest +88 -0
  1447. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyNegate.decTest +88 -0
  1448. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopySign.decTest +175 -0
  1449. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivide.decTest +808 -0
  1450. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivideInt.decTest +453 -0
  1451. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqEncode.decTest +477 -0
  1452. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqFMA.decTest +1786 -0
  1453. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqInvert.decTest +245 -0
  1454. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqLogB.decTest +160 -0
  1455. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMax.decTest +322 -0
  1456. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMaxMag.decTest +304 -0
  1457. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMin.decTest +309 -0
  1458. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinMag.decTest +293 -0
  1459. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinus.decTest +88 -0
  1460. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMultiply.decTest +589 -0
  1461. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextMinus.decTest +126 -0
  1462. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextPlus.decTest +124 -0
  1463. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextToward.decTest +375 -0
  1464. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqOr.decTest +401 -0
  1465. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqPlus.decTest +88 -0
  1466. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqQuantize.decTest +836 -0
  1467. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqReduce.decTest +183 -0
  1468. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainder.decTest +597 -0
  1469. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainderNear.decTest +631 -0
  1470. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRotate.decTest +298 -0
  1471. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSameQuantum.decTest +389 -0
  1472. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqScaleB.decTest +260 -0
  1473. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqShift.decTest +298 -0
  1474. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSubtract.decTest +635 -0
  1475. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqToIntegral.decTest +257 -0
  1476. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqXor.decTest +410 -0
  1477. package/python3.4.2/lib/python3.4/test/decimaltestdata/dsBase.decTest +1062 -0
  1478. package/python3.4.2/lib/python3.4/test/decimaltestdata/dsEncode.decTest +372 -0
  1479. package/python3.4.2/lib/python3.4/test/decimaltestdata/exp.decTest +674 -0
  1480. package/python3.4.2/lib/python3.4/test/decimaltestdata/extra.decTest +2830 -0
  1481. package/python3.4.2/lib/python3.4/test/decimaltestdata/fma.decTest +3426 -0
  1482. package/python3.4.2/lib/python3.4/test/decimaltestdata/inexact.decTest +215 -0
  1483. package/python3.4.2/lib/python3.4/test/decimaltestdata/invert.decTest +176 -0
  1484. package/python3.4.2/lib/python3.4/test/decimaltestdata/ln.decTest +611 -0
  1485. package/python3.4.2/lib/python3.4/test/decimaltestdata/log10.decTest +551 -0
  1486. package/python3.4.2/lib/python3.4/test/decimaltestdata/logb.decTest +188 -0
  1487. package/python3.4.2/lib/python3.4/test/decimaltestdata/max.decTest +424 -0
  1488. package/python3.4.2/lib/python3.4/test/decimaltestdata/maxmag.decTest +404 -0
  1489. package/python3.4.2/lib/python3.4/test/decimaltestdata/min.decTest +407 -0
  1490. package/python3.4.2/lib/python3.4/test/decimaltestdata/minmag.decTest +390 -0
  1491. package/python3.4.2/lib/python3.4/test/decimaltestdata/minus.decTest +182 -0
  1492. package/python3.4.2/lib/python3.4/test/decimaltestdata/multiply.decTest +731 -0
  1493. package/python3.4.2/lib/python3.4/test/decimaltestdata/nextminus.decTest +148 -0
  1494. package/python3.4.2/lib/python3.4/test/decimaltestdata/nextplus.decTest +150 -0
  1495. package/python3.4.2/lib/python3.4/test/decimaltestdata/nexttoward.decTest +426 -0
  1496. package/python3.4.2/lib/python3.4/test/decimaltestdata/or.decTest +334 -0
  1497. package/python3.4.2/lib/python3.4/test/decimaltestdata/plus.decTest +195 -0
  1498. package/python3.4.2/lib/python3.4/test/decimaltestdata/power.decTest +1624 -0
  1499. package/python3.4.2/lib/python3.4/test/decimaltestdata/powersqrt.decTest +2970 -0
  1500. package/python3.4.2/lib/python3.4/test/decimaltestdata/quantize.decTest +948 -0
  1501. package/python3.4.2/lib/python3.4/test/decimaltestdata/randomBound32.decTest +2443 -0
  1502. package/python3.4.2/lib/python3.4/test/decimaltestdata/randoms.decTest +4030 -0
  1503. package/python3.4.2/lib/python3.4/test/decimaltestdata/reduce.decTest +234 -0
  1504. package/python3.4.2/lib/python3.4/test/decimaltestdata/remainder.decTest +640 -0
  1505. package/python3.4.2/lib/python3.4/test/decimaltestdata/remainderNear.decTest +572 -0
  1506. package/python3.4.2/lib/python3.4/test/decimaltestdata/rescale.decTest +764 -0
  1507. package/python3.4.2/lib/python3.4/test/decimaltestdata/rotate.decTest +247 -0
  1508. package/python3.4.2/lib/python3.4/test/decimaltestdata/rounding.decTest +1303 -0
  1509. package/python3.4.2/lib/python3.4/test/decimaltestdata/samequantum.decTest +389 -0
  1510. package/python3.4.2/lib/python3.4/test/decimaltestdata/scaleb.decTest +209 -0
  1511. package/python3.4.2/lib/python3.4/test/decimaltestdata/shift.decTest +250 -0
  1512. package/python3.4.2/lib/python3.4/test/decimaltestdata/squareroot.decTest +3834 -0
  1513. package/python3.4.2/lib/python3.4/test/decimaltestdata/subtract.decTest +873 -0
  1514. package/python3.4.2/lib/python3.4/test/decimaltestdata/testall.decTest +87 -0
  1515. package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegral.decTest +241 -0
  1516. package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegralx.decTest +255 -0
  1517. package/python3.4.2/lib/python3.4/test/decimaltestdata/xor.decTest +335 -0
  1518. package/python3.4.2/lib/python3.4/test/dh512.pem +9 -0
  1519. package/python3.4.2/lib/python3.4/test/dis_module.py +5 -0
  1520. package/python3.4.2/lib/python3.4/test/doctest_aliases.py +13 -0
  1521. package/python3.4.2/lib/python3.4/test/double_const.py +30 -0
  1522. package/python3.4.2/lib/python3.4/test/empty.vbs +1 -0
  1523. package/python3.4.2/lib/python3.4/test/encoded_modules/__init__.py +23 -0
  1524. package/python3.4.2/lib/python3.4/test/encoded_modules/module_iso_8859_1.py +5 -0
  1525. package/python3.4.2/lib/python3.4/test/encoded_modules/module_koi8_r.py +3 -0
  1526. package/python3.4.2/lib/python3.4/test/exception_hierarchy.txt +61 -0
  1527. package/python3.4.2/lib/python3.4/test/final_a.py +19 -0
  1528. package/python3.4.2/lib/python3.4/test/final_b.py +19 -0
  1529. package/python3.4.2/lib/python3.4/test/floating_points.txt +1028 -0
  1530. package/python3.4.2/lib/python3.4/test/fork_wait.py +77 -0
  1531. package/python3.4.2/lib/python3.4/test/formatfloat_testcases.txt +355 -0
  1532. package/python3.4.2/lib/python3.4/test/future_test1.py +11 -0
  1533. package/python3.4.2/lib/python3.4/test/future_test2.py +10 -0
  1534. package/python3.4.2/lib/python3.4/test/gdb_sample.py +12 -0
  1535. package/python3.4.2/lib/python3.4/test/https_svn_python_org_root.pem +41 -0
  1536. package/python3.4.2/lib/python3.4/test/ieee754.txt +185 -0
  1537. package/python3.4.2/lib/python3.4/test/imghdrdata/python.bmp +0 -0
  1538. package/python3.4.2/lib/python3.4/test/imghdrdata/python.gif +0 -0
  1539. package/python3.4.2/lib/python3.4/test/imghdrdata/python.jpg +0 -0
  1540. package/python3.4.2/lib/python3.4/test/imghdrdata/python.pbm +3 -0
  1541. package/python3.4.2/lib/python3.4/test/imghdrdata/python.pgm +0 -0
  1542. package/python3.4.2/lib/python3.4/test/imghdrdata/python.png +0 -0
  1543. package/python3.4.2/lib/python3.4/test/imghdrdata/python.ppm +0 -0
  1544. package/python3.4.2/lib/python3.4/test/imghdrdata/python.ras +0 -0
  1545. package/python3.4.2/lib/python3.4/test/imghdrdata/python.sgi +0 -0
  1546. package/python3.4.2/lib/python3.4/test/imghdrdata/python.tiff +0 -0
  1547. package/python3.4.2/lib/python3.4/test/imghdrdata/python.xbm +6 -0
  1548. package/python3.4.2/lib/python3.4/test/inspect_fodder.py +58 -0
  1549. package/python3.4.2/lib/python3.4/test/inspect_fodder2.py +111 -0
  1550. package/python3.4.2/lib/python3.4/test/keycert.passwd.pem +33 -0
  1551. package/python3.4.2/lib/python3.4/test/keycert.pem +31 -0
  1552. package/python3.4.2/lib/python3.4/test/keycert2.pem +31 -0
  1553. package/python3.4.2/lib/python3.4/test/keycert3.pem +73 -0
  1554. package/python3.4.2/lib/python3.4/test/keycert4.pem +73 -0
  1555. package/python3.4.2/lib/python3.4/test/list_tests.py +585 -0
  1556. package/python3.4.2/lib/python3.4/test/lock_tests.py +896 -0
  1557. package/python3.4.2/lib/python3.4/test/mailcap.txt +39 -0
  1558. package/python3.4.2/lib/python3.4/test/make_ssl_certs.py +176 -0
  1559. package/python3.4.2/lib/python3.4/test/mapping_tests.py +657 -0
  1560. package/python3.4.2/lib/python3.4/test/math_testcases.txt +633 -0
  1561. package/python3.4.2/lib/python3.4/test/memory_watchdog.py +28 -0
  1562. package/python3.4.2/lib/python3.4/test/mime.types +1445 -0
  1563. package/python3.4.2/lib/python3.4/test/mock_socket.py +156 -0
  1564. package/python3.4.2/lib/python3.4/test/mp_fork_bomb.py +18 -0
  1565. package/python3.4.2/lib/python3.4/test/multibytecodec_support.py +377 -0
  1566. package/python3.4.2/lib/python3.4/test/nokia.pem +31 -0
  1567. package/python3.4.2/lib/python3.4/test/nullbytecert.pem +90 -0
  1568. package/python3.4.2/lib/python3.4/test/nullcert.pem +0 -0
  1569. package/python3.4.2/lib/python3.4/test/outstanding_bugs.py +18 -0
  1570. package/python3.4.2/lib/python3.4/test/pickletester.py +2253 -0
  1571. package/python3.4.2/lib/python3.4/test/profilee.py +115 -0
  1572. package/python3.4.2/lib/python3.4/test/pstats.pck +0 -0
  1573. package/python3.4.2/lib/python3.4/test/pycacert.pem +78 -0
  1574. package/python3.4.2/lib/python3.4/test/pycakey.pem +28 -0
  1575. package/python3.4.2/lib/python3.4/test/pyclbr_input.py +33 -0
  1576. package/python3.4.2/lib/python3.4/test/pydoc_mod.py +37 -0
  1577. package/python3.4.2/lib/python3.4/test/pydocfodder.py +216 -0
  1578. package/python3.4.2/lib/python3.4/test/pystone.py +277 -0
  1579. package/python3.4.2/lib/python3.4/test/randv2_32.pck +633 -0
  1580. package/python3.4.2/lib/python3.4/test/randv2_64.pck +633 -0
  1581. package/python3.4.2/lib/python3.4/test/randv3.pck +633 -0
  1582. package/python3.4.2/lib/python3.4/test/re_tests.py +670 -0
  1583. package/python3.4.2/lib/python3.4/test/regrtest.py +1589 -0
  1584. package/python3.4.2/lib/python3.4/test/relimport.py +1 -0
  1585. package/python3.4.2/lib/python3.4/test/reperf.py +23 -0
  1586. package/python3.4.2/lib/python3.4/test/revocation.crl +11 -0
  1587. package/python3.4.2/lib/python3.4/test/sample_doctest.py +76 -0
  1588. package/python3.4.2/lib/python3.4/test/sample_doctest_no_docstrings.py +12 -0
  1589. package/python3.4.2/lib/python3.4/test/sample_doctest_no_doctests.py +15 -0
  1590. package/python3.4.2/lib/python3.4/test/script_helper.py +178 -0
  1591. package/python3.4.2/lib/python3.4/test/seq_tests.py +397 -0
  1592. package/python3.4.2/lib/python3.4/test/sgml_input.html +212 -0
  1593. package/python3.4.2/lib/python3.4/test/sha256.pem +128 -0
  1594. package/python3.4.2/lib/python3.4/test/sndhdrdata/README +12 -0
  1595. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.8svx +0 -0
  1596. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aifc +0 -0
  1597. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aiff +0 -0
  1598. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.au +0 -0
  1599. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.hcom +0 -0
  1600. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.sndt +0 -0
  1601. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.voc +0 -0
  1602. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.wav +0 -0
  1603. package/python3.4.2/lib/python3.4/test/sortperf.py +169 -0
  1604. package/python3.4.2/lib/python3.4/test/ssl_cert.pem +15 -0
  1605. package/python3.4.2/lib/python3.4/test/ssl_key.passwd.pem +18 -0
  1606. package/python3.4.2/lib/python3.4/test/ssl_key.pem +16 -0
  1607. package/python3.4.2/lib/python3.4/test/ssl_servers.py +205 -0
  1608. package/python3.4.2/lib/python3.4/test/ssltests.py +22 -0
  1609. package/python3.4.2/lib/python3.4/test/string_tests.py +1385 -0
  1610. package/python3.4.2/lib/python3.4/test/subprocessdata/fd_status.py +34 -0
  1611. package/python3.4.2/lib/python3.4/test/subprocessdata/input_reader.py +7 -0
  1612. package/python3.4.2/lib/python3.4/test/subprocessdata/qcat.py +7 -0
  1613. package/python3.4.2/lib/python3.4/test/subprocessdata/qgrep.py +10 -0
  1614. package/python3.4.2/lib/python3.4/test/subprocessdata/sigchild_ignore.py +15 -0
  1615. package/python3.4.2/lib/python3.4/test/support/__init__.py +2241 -0
  1616. package/python3.4.2/lib/python3.4/test/test___all__.py +117 -0
  1617. package/python3.4.2/lib/python3.4/test/test___future__.py +65 -0
  1618. package/python3.4.2/lib/python3.4/test/test__locale.py +170 -0
  1619. package/python3.4.2/lib/python3.4/test/test__opcode.py +23 -0
  1620. package/python3.4.2/lib/python3.4/test/test__osx_support.py +281 -0
  1621. package/python3.4.2/lib/python3.4/test/test_abc.py +408 -0
  1622. package/python3.4.2/lib/python3.4/test/test_abstract_numbers.py +44 -0
  1623. package/python3.4.2/lib/python3.4/test/test_aifc.py +384 -0
  1624. package/python3.4.2/lib/python3.4/test/test_argparse.py +4979 -0
  1625. package/python3.4.2/lib/python3.4/test/test_array.py +1323 -0
  1626. package/python3.4.2/lib/python3.4/test/test_ast.py +1038 -0
  1627. package/python3.4.2/lib/python3.4/test/test_asynchat.py +333 -0
  1628. package/python3.4.2/lib/python3.4/test/test_asyncio/__init__.py +10 -0
  1629. package/python3.4.2/lib/python3.4/test/test_asyncio/__main__.py +4 -0
  1630. package/python3.4.2/lib/python3.4/test/test_asyncio/echo.py +8 -0
  1631. package/python3.4.2/lib/python3.4/test/test_asyncio/echo2.py +6 -0
  1632. package/python3.4.2/lib/python3.4/test/test_asyncio/echo3.py +11 -0
  1633. package/python3.4.2/lib/python3.4/test/test_asyncio/keycert3.pem +73 -0
  1634. package/python3.4.2/lib/python3.4/test/test_asyncio/pycacert.pem +78 -0
  1635. package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_cert.pem +15 -0
  1636. package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_key.pem +16 -0
  1637. package/python3.4.2/lib/python3.4/test/test_asyncio/test_base_events.py +1064 -0
  1638. package/python3.4.2/lib/python3.4/test/test_asyncio/test_events.py +2240 -0
  1639. package/python3.4.2/lib/python3.4/test/test_asyncio/test_futures.py +442 -0
  1640. package/python3.4.2/lib/python3.4/test/test_asyncio/test_locks.py +858 -0
  1641. package/python3.4.2/lib/python3.4/test/test_asyncio/test_proactor_events.py +492 -0
  1642. package/python3.4.2/lib/python3.4/test/test_asyncio/test_queues.py +476 -0
  1643. package/python3.4.2/lib/python3.4/test/test_asyncio/test_selector_events.py +1737 -0
  1644. package/python3.4.2/lib/python3.4/test/test_asyncio/test_streams.py +628 -0
  1645. package/python3.4.2/lib/python3.4/test/test_asyncio/test_subprocess.py +217 -0
  1646. package/python3.4.2/lib/python3.4/test/test_asyncio/test_tasks.py +1977 -0
  1647. package/python3.4.2/lib/python3.4/test/test_asyncio/test_transports.py +90 -0
  1648. package/python3.4.2/lib/python3.4/test/test_asyncio/test_unix_events.py +1582 -0
  1649. package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_events.py +141 -0
  1650. package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_utils.py +171 -0
  1651. package/python3.4.2/lib/python3.4/test/test_asyncore.py +859 -0
  1652. package/python3.4.2/lib/python3.4/test/test_atexit.py +185 -0
  1653. package/python3.4.2/lib/python3.4/test/test_audioop.py +534 -0
  1654. package/python3.4.2/lib/python3.4/test/test_augassign.py +315 -0
  1655. package/python3.4.2/lib/python3.4/test/test_base64.py +666 -0
  1656. package/python3.4.2/lib/python3.4/test/test_bigaddrspace.py +101 -0
  1657. package/python3.4.2/lib/python3.4/test/test_bigmem.py +1257 -0
  1658. package/python3.4.2/lib/python3.4/test/test_binascii.py +270 -0
  1659. package/python3.4.2/lib/python3.4/test/test_binhex.py +56 -0
  1660. package/python3.4.2/lib/python3.4/test/test_binop.py +380 -0
  1661. package/python3.4.2/lib/python3.4/test/test_bisect.py +328 -0
  1662. package/python3.4.2/lib/python3.4/test/test_bool.py +347 -0
  1663. package/python3.4.2/lib/python3.4/test/test_buffer.py +4294 -0
  1664. package/python3.4.2/lib/python3.4/test/test_bufio.py +73 -0
  1665. package/python3.4.2/lib/python3.4/test/test_builtin.py +1637 -0
  1666. package/python3.4.2/lib/python3.4/test/test_bytes.py +1433 -0
  1667. package/python3.4.2/lib/python3.4/test/test_bz2.py +880 -0
  1668. package/python3.4.2/lib/python3.4/test/test_calendar.py +714 -0
  1669. package/python3.4.2/lib/python3.4/test/test_call.py +131 -0
  1670. package/python3.4.2/lib/python3.4/test/test_capi.py +469 -0
  1671. package/python3.4.2/lib/python3.4/test/test_cgi.py +489 -0
  1672. package/python3.4.2/lib/python3.4/test/test_cgitb.py +70 -0
  1673. package/python3.4.2/lib/python3.4/test/test_charmapcodec.py +56 -0
  1674. package/python3.4.2/lib/python3.4/test/test_class.py +552 -0
  1675. package/python3.4.2/lib/python3.4/test/test_cmath.py +536 -0
  1676. package/python3.4.2/lib/python3.4/test/test_cmd.py +243 -0
  1677. package/python3.4.2/lib/python3.4/test/test_cmd_line.py +473 -0
  1678. package/python3.4.2/lib/python3.4/test/test_cmd_line_script.py +481 -0
  1679. package/python3.4.2/lib/python3.4/test/test_code.py +170 -0
  1680. package/python3.4.2/lib/python3.4/test/test_code_module.py +86 -0
  1681. package/python3.4.2/lib/python3.4/test/test_codeccallbacks.py +880 -0
  1682. package/python3.4.2/lib/python3.4/test/test_codecencodings_cn.py +90 -0
  1683. package/python3.4.2/lib/python3.4/test/test_codecencodings_hk.py +26 -0
  1684. package/python3.4.2/lib/python3.4/test/test_codecencodings_iso2022.py +45 -0
  1685. package/python3.4.2/lib/python3.4/test/test_codecencodings_jp.py +130 -0
  1686. package/python3.4.2/lib/python3.4/test/test_codecencodings_kr.py +73 -0
  1687. package/python3.4.2/lib/python3.4/test/test_codecencodings_tw.py +26 -0
  1688. package/python3.4.2/lib/python3.4/test/test_codecmaps_cn.py +29 -0
  1689. package/python3.4.2/lib/python3.4/test/test_codecmaps_hk.py +16 -0
  1690. package/python3.4.2/lib/python3.4/test/test_codecmaps_jp.py +63 -0
  1691. package/python3.4.2/lib/python3.4/test/test_codecmaps_kr.py +40 -0
  1692. package/python3.4.2/lib/python3.4/test/test_codecmaps_tw.py +30 -0
  1693. package/python3.4.2/lib/python3.4/test/test_codecs.py +2901 -0
  1694. package/python3.4.2/lib/python3.4/test/test_codeop.py +304 -0
  1695. package/python3.4.2/lib/python3.4/test/test_collections.py +1552 -0
  1696. package/python3.4.2/lib/python3.4/test/test_colorsys.py +100 -0
  1697. package/python3.4.2/lib/python3.4/test/test_compare.py +67 -0
  1698. package/python3.4.2/lib/python3.4/test/test_compile.py +561 -0
  1699. package/python3.4.2/lib/python3.4/test/test_compileall.py +384 -0
  1700. package/python3.4.2/lib/python3.4/test/test_complex.py +638 -0
  1701. package/python3.4.2/lib/python3.4/test/test_concurrent_futures.py +685 -0
  1702. package/python3.4.2/lib/python3.4/test/test_configparser.py +1768 -0
  1703. package/python3.4.2/lib/python3.4/test/test_contains.py +93 -0
  1704. package/python3.4.2/lib/python3.4/test/test_contextlib.py +828 -0
  1705. package/python3.4.2/lib/python3.4/test/test_copy.py +759 -0
  1706. package/python3.4.2/lib/python3.4/test/test_copyreg.py +121 -0
  1707. package/python3.4.2/lib/python3.4/test/test_cprofile.py +98 -0
  1708. package/python3.4.2/lib/python3.4/test/test_crashers.py +38 -0
  1709. package/python3.4.2/lib/python3.4/test/test_crypt.py +33 -0
  1710. package/python3.4.2/lib/python3.4/test/test_csv.py +1074 -0
  1711. package/python3.4.2/lib/python3.4/test/test_ctypes.py +6 -0
  1712. package/python3.4.2/lib/python3.4/test/test_curses.py +395 -0
  1713. package/python3.4.2/lib/python3.4/test/test_datetime.py +48 -0
  1714. package/python3.4.2/lib/python3.4/test/test_dbm.py +193 -0
  1715. package/python3.4.2/lib/python3.4/test/test_dbm_dumb.py +228 -0
  1716. package/python3.4.2/lib/python3.4/test/test_dbm_gnu.py +97 -0
  1717. package/python3.4.2/lib/python3.4/test/test_dbm_ndbm.py +54 -0
  1718. package/python3.4.2/lib/python3.4/test/test_decimal.py +5504 -0
  1719. package/python3.4.2/lib/python3.4/test/test_decorators.py +309 -0
  1720. package/python3.4.2/lib/python3.4/test/test_defaultdict.py +190 -0
  1721. package/python3.4.2/lib/python3.4/test/test_deque.py +817 -0
  1722. package/python3.4.2/lib/python3.4/test/test_descr.py +5006 -0
  1723. package/python3.4.2/lib/python3.4/test/test_descrtut.py +485 -0
  1724. package/python3.4.2/lib/python3.4/test/test_devpoll.py +146 -0
  1725. package/python3.4.2/lib/python3.4/test/test_dict.py +928 -0
  1726. package/python3.4.2/lib/python3.4/test/test_dictcomps.py +88 -0
  1727. package/python3.4.2/lib/python3.4/test/test_dictviews.py +206 -0
  1728. package/python3.4.2/lib/python3.4/test/test_difflib.py +298 -0
  1729. package/python3.4.2/lib/python3.4/test/test_difflib_expect.html +526 -0
  1730. package/python3.4.2/lib/python3.4/test/test_dis.py +832 -0
  1731. package/python3.4.2/lib/python3.4/test/test_distutils.py +18 -0
  1732. package/python3.4.2/lib/python3.4/test/test_doctest.py +2921 -0
  1733. package/python3.4.2/lib/python3.4/test/test_doctest.txt +17 -0
  1734. package/python3.4.2/lib/python3.4/test/test_doctest2.py +123 -0
  1735. package/python3.4.2/lib/python3.4/test/test_doctest2.txt +14 -0
  1736. package/python3.4.2/lib/python3.4/test/test_doctest3.txt +5 -0
  1737. package/python3.4.2/lib/python3.4/test/test_doctest4.txt +11 -0
  1738. package/python3.4.2/lib/python3.4/test/test_docxmlrpc.py +219 -0
  1739. package/python3.4.2/lib/python3.4/test/test_dummy_thread.py +182 -0
  1740. package/python3.4.2/lib/python3.4/test/test_dummy_threading.py +64 -0
  1741. package/python3.4.2/lib/python3.4/test/test_dynamic.py +143 -0
  1742. package/python3.4.2/lib/python3.4/test/test_dynamicclassattribute.py +304 -0
  1743. package/python3.4.2/lib/python3.4/test/test_email/__init__.py +159 -0
  1744. package/python3.4.2/lib/python3.4/test/test_email/__main__.py +4 -0
  1745. package/python3.4.2/lib/python3.4/test/test_email/data/PyBanner048.gif +0 -0
  1746. package/python3.4.2/lib/python3.4/test/test_email/data/audiotest.au +0 -0
  1747. package/python3.4.2/lib/python3.4/test/test_email/data/msg_01.txt +19 -0
  1748. package/python3.4.2/lib/python3.4/test/test_email/data/msg_02.txt +136 -0
  1749. package/python3.4.2/lib/python3.4/test/test_email/data/msg_03.txt +16 -0
  1750. package/python3.4.2/lib/python3.4/test/test_email/data/msg_04.txt +37 -0
  1751. package/python3.4.2/lib/python3.4/test/test_email/data/msg_05.txt +28 -0
  1752. package/python3.4.2/lib/python3.4/test/test_email/data/msg_06.txt +33 -0
  1753. package/python3.4.2/lib/python3.4/test/test_email/data/msg_07.txt +83 -0
  1754. package/python3.4.2/lib/python3.4/test/test_email/data/msg_08.txt +24 -0
  1755. package/python3.4.2/lib/python3.4/test/test_email/data/msg_09.txt +24 -0
  1756. package/python3.4.2/lib/python3.4/test/test_email/data/msg_10.txt +39 -0
  1757. package/python3.4.2/lib/python3.4/test/test_email/data/msg_11.txt +7 -0
  1758. package/python3.4.2/lib/python3.4/test/test_email/data/msg_12.txt +36 -0
  1759. package/python3.4.2/lib/python3.4/test/test_email/data/msg_12a.txt +38 -0
  1760. package/python3.4.2/lib/python3.4/test/test_email/data/msg_13.txt +94 -0
  1761. package/python3.4.2/lib/python3.4/test/test_email/data/msg_14.txt +23 -0
  1762. package/python3.4.2/lib/python3.4/test/test_email/data/msg_15.txt +52 -0
  1763. package/python3.4.2/lib/python3.4/test/test_email/data/msg_16.txt +123 -0
  1764. package/python3.4.2/lib/python3.4/test/test_email/data/msg_17.txt +12 -0
  1765. package/python3.4.2/lib/python3.4/test/test_email/data/msg_18.txt +6 -0
  1766. package/python3.4.2/lib/python3.4/test/test_email/data/msg_19.txt +43 -0
  1767. package/python3.4.2/lib/python3.4/test/test_email/data/msg_20.txt +22 -0
  1768. package/python3.4.2/lib/python3.4/test/test_email/data/msg_21.txt +20 -0
  1769. package/python3.4.2/lib/python3.4/test/test_email/data/msg_22.txt +46 -0
  1770. package/python3.4.2/lib/python3.4/test/test_email/data/msg_23.txt +8 -0
  1771. package/python3.4.2/lib/python3.4/test/test_email/data/msg_24.txt +10 -0
  1772. package/python3.4.2/lib/python3.4/test/test_email/data/msg_25.txt +117 -0
  1773. package/python3.4.2/lib/python3.4/test/test_email/data/msg_26.txt +46 -0
  1774. package/python3.4.2/lib/python3.4/test/test_email/data/msg_27.txt +15 -0
  1775. package/python3.4.2/lib/python3.4/test/test_email/data/msg_28.txt +25 -0
  1776. package/python3.4.2/lib/python3.4/test/test_email/data/msg_29.txt +22 -0
  1777. package/python3.4.2/lib/python3.4/test/test_email/data/msg_30.txt +23 -0
  1778. package/python3.4.2/lib/python3.4/test/test_email/data/msg_31.txt +15 -0
  1779. package/python3.4.2/lib/python3.4/test/test_email/data/msg_32.txt +14 -0
  1780. package/python3.4.2/lib/python3.4/test/test_email/data/msg_33.txt +29 -0
  1781. package/python3.4.2/lib/python3.4/test/test_email/data/msg_34.txt +19 -0
  1782. package/python3.4.2/lib/python3.4/test/test_email/data/msg_35.txt +4 -0
  1783. package/python3.4.2/lib/python3.4/test/test_email/data/msg_36.txt +40 -0
  1784. package/python3.4.2/lib/python3.4/test/test_email/data/msg_37.txt +22 -0
  1785. package/python3.4.2/lib/python3.4/test/test_email/data/msg_38.txt +101 -0
  1786. package/python3.4.2/lib/python3.4/test/test_email/data/msg_39.txt +83 -0
  1787. package/python3.4.2/lib/python3.4/test/test_email/data/msg_40.txt +10 -0
  1788. package/python3.4.2/lib/python3.4/test/test_email/data/msg_41.txt +8 -0
  1789. package/python3.4.2/lib/python3.4/test/test_email/data/msg_42.txt +20 -0
  1790. package/python3.4.2/lib/python3.4/test/test_email/data/msg_43.txt +217 -0
  1791. package/python3.4.2/lib/python3.4/test/test_email/data/msg_44.txt +33 -0
  1792. package/python3.4.2/lib/python3.4/test/test_email/data/msg_45.txt +33 -0
  1793. package/python3.4.2/lib/python3.4/test/test_email/data/msg_46.txt +23 -0
  1794. package/python3.4.2/lib/python3.4/test/test_email/test__encoded_words.py +192 -0
  1795. package/python3.4.2/lib/python3.4/test/test_email/test__header_value_parser.py +2606 -0
  1796. package/python3.4.2/lib/python3.4/test/test_email/test_asian_codecs.py +82 -0
  1797. package/python3.4.2/lib/python3.4/test/test_email/test_contentmanager.py +796 -0
  1798. package/python3.4.2/lib/python3.4/test/test_email/test_defect_handling.py +320 -0
  1799. package/python3.4.2/lib/python3.4/test/test_email/test_email.py +5289 -0
  1800. package/python3.4.2/lib/python3.4/test/test_email/test_generator.py +199 -0
  1801. package/python3.4.2/lib/python3.4/test/test_email/test_headerregistry.py +1594 -0
  1802. package/python3.4.2/lib/python3.4/test/test_email/test_inversion.py +49 -0
  1803. package/python3.4.2/lib/python3.4/test/test_email/test_message.py +783 -0
  1804. package/python3.4.2/lib/python3.4/test/test_email/test_parser.py +36 -0
  1805. package/python3.4.2/lib/python3.4/test/test_email/test_pickleable.py +74 -0
  1806. package/python3.4.2/lib/python3.4/test/test_email/test_policy.py +332 -0
  1807. package/python3.4.2/lib/python3.4/test/test_email/test_utils.py +140 -0
  1808. package/python3.4.2/lib/python3.4/test/test_email/torture_test.py +136 -0
  1809. package/python3.4.2/lib/python3.4/test/test_ensurepip.py +345 -0
  1810. package/python3.4.2/lib/python3.4/test/test_enum.py +1592 -0
  1811. package/python3.4.2/lib/python3.4/test/test_enumerate.py +272 -0
  1812. package/python3.4.2/lib/python3.4/test/test_eof.py +31 -0
  1813. package/python3.4.2/lib/python3.4/test/test_epoll.py +259 -0
  1814. package/python3.4.2/lib/python3.4/test/test_errno.py +40 -0
  1815. package/python3.4.2/lib/python3.4/test/test_exception_variations.py +180 -0
  1816. package/python3.4.2/lib/python3.4/test/test_exceptions.py +978 -0
  1817. package/python3.4.2/lib/python3.4/test/test_extcall.py +349 -0
  1818. package/python3.4.2/lib/python3.4/test/test_faulthandler.py +623 -0
  1819. package/python3.4.2/lib/python3.4/test/test_fcntl.py +152 -0
  1820. package/python3.4.2/lib/python3.4/test/test_file.py +329 -0
  1821. package/python3.4.2/lib/python3.4/test/test_file_eintr.py +236 -0
  1822. package/python3.4.2/lib/python3.4/test/test_filecmp.py +217 -0
  1823. package/python3.4.2/lib/python3.4/test/test_fileinput.py +891 -0
  1824. package/python3.4.2/lib/python3.4/test/test_fileio.py +480 -0
  1825. package/python3.4.2/lib/python3.4/test/test_finalization.py +522 -0
  1826. package/python3.4.2/lib/python3.4/test/test_float.py +1312 -0
  1827. package/python3.4.2/lib/python3.4/test/test_flufl.py +27 -0
  1828. package/python3.4.2/lib/python3.4/test/test_fnmatch.py +89 -0
  1829. package/python3.4.2/lib/python3.4/test/test_fork1.py +111 -0
  1830. package/python3.4.2/lib/python3.4/test/test_format.py +362 -0
  1831. package/python3.4.2/lib/python3.4/test/test_fractions.py +612 -0
  1832. package/python3.4.2/lib/python3.4/test/test_frame.py +168 -0
  1833. package/python3.4.2/lib/python3.4/test/test_ftplib.py +1080 -0
  1834. package/python3.4.2/lib/python3.4/test/test_funcattrs.py +385 -0
  1835. package/python3.4.2/lib/python3.4/test/test_functools.py +1584 -0
  1836. package/python3.4.2/lib/python3.4/test/test_future.py +125 -0
  1837. package/python3.4.2/lib/python3.4/test/test_future3.py +26 -0
  1838. package/python3.4.2/lib/python3.4/test/test_future4.py +6 -0
  1839. package/python3.4.2/lib/python3.4/test/test_future5.py +21 -0
  1840. package/python3.4.2/lib/python3.4/test/test_gc.py +1013 -0
  1841. package/python3.4.2/lib/python3.4/test/test_gdb.py +870 -0
  1842. package/python3.4.2/lib/python3.4/test/test_generators.py +1940 -0
  1843. package/python3.4.2/lib/python3.4/test/test_genericpath.py +439 -0
  1844. package/python3.4.2/lib/python3.4/test/test_genexps.py +285 -0
  1845. package/python3.4.2/lib/python3.4/test/test_getargs2.py +615 -0
  1846. package/python3.4.2/lib/python3.4/test/test_getopt.py +187 -0
  1847. package/python3.4.2/lib/python3.4/test/test_getpass.py +163 -0
  1848. package/python3.4.2/lib/python3.4/test/test_gettext.py +467 -0
  1849. package/python3.4.2/lib/python3.4/test/test_glob.py +200 -0
  1850. package/python3.4.2/lib/python3.4/test/test_global.py +61 -0
  1851. package/python3.4.2/lib/python3.4/test/test_grammar.py +1024 -0
  1852. package/python3.4.2/lib/python3.4/test/test_grp.py +99 -0
  1853. package/python3.4.2/lib/python3.4/test/test_gzip.py +561 -0
  1854. package/python3.4.2/lib/python3.4/test/test_hash.py +346 -0
  1855. package/python3.4.2/lib/python3.4/test/test_hashlib.py +533 -0
  1856. package/python3.4.2/lib/python3.4/test/test_heapq.py +417 -0
  1857. package/python3.4.2/lib/python3.4/test/test_hmac.py +506 -0
  1858. package/python3.4.2/lib/python3.4/test/test_html.py +104 -0
  1859. package/python3.4.2/lib/python3.4/test/test_htmlparser.py +832 -0
  1860. package/python3.4.2/lib/python3.4/test/test_http_cookiejar.py +1714 -0
  1861. package/python3.4.2/lib/python3.4/test/test_http_cookies.py +243 -0
  1862. package/python3.4.2/lib/python3.4/test/test_httplib.py +1025 -0
  1863. package/python3.4.2/lib/python3.4/test/test_httpservers.py +770 -0
  1864. package/python3.4.2/lib/python3.4/test/test_idle.py +16 -0
  1865. package/python3.4.2/lib/python3.4/test/test_imaplib.py +504 -0
  1866. package/python3.4.2/lib/python3.4/test/test_imghdr.py +131 -0
  1867. package/python3.4.2/lib/python3.4/test/test_imp.py +485 -0
  1868. package/python3.4.2/lib/python3.4/test/test_import.py +1072 -0
  1869. package/python3.4.2/lib/python3.4/test/test_importlib/__init__.py +5 -0
  1870. package/python3.4.2/lib/python3.4/test/test_importlib/__main__.py +4 -0
  1871. package/python3.4.2/lib/python3.4/test/test_importlib/abc.py +94 -0
  1872. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__init__.py +5 -0
  1873. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__main__.py +4 -0
  1874. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_finder.py +85 -0
  1875. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_loader.py +106 -0
  1876. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/util.py +7 -0
  1877. package/python3.4.2/lib/python3.4/test/test_importlib/extension/__init__.py +5 -0
  1878. package/python3.4.2/lib/python3.4/test/test_importlib/extension/__main__.py +4 -0
  1879. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_case_sensitivity.py +51 -0
  1880. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_finder.py +44 -0
  1881. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_loader.py +86 -0
  1882. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_path_hook.py +32 -0
  1883. package/python3.4.2/lib/python3.4/test/test_importlib/extension/util.py +19 -0
  1884. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__init__.py +5 -0
  1885. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__main__.py +4 -0
  1886. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_finder.py +80 -0
  1887. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_loader.py +222 -0
  1888. package/python3.4.2/lib/python3.4/test/test_importlib/import_/__init__.py +5 -0
  1889. package/python3.4.2/lib/python3.4/test/test_importlib/import_/__main__.py +4 -0
  1890. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___loader__.py +70 -0
  1891. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___package__.py +133 -0
  1892. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_api.py +94 -0
  1893. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_caching.py +92 -0
  1894. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_fromlist.py +129 -0
  1895. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_meta_path.py +119 -0
  1896. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_packages.py +110 -0
  1897. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_path.py +144 -0
  1898. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_relative_imports.py +216 -0
  1899. package/python3.4.2/lib/python3.4/test/test_importlib/import_/util.py +20 -0
  1900. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
  1901. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
  1902. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
  1903. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
  1904. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
  1905. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
  1906. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
  1907. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
  1908. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
  1909. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
  1910. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
  1911. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
  1912. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
  1913. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
  1914. package/python3.4.2/lib/python3.4/test/test_importlib/regrtest.py +17 -0
  1915. package/python3.4.2/lib/python3.4/test/test_importlib/source/__init__.py +5 -0
  1916. package/python3.4.2/lib/python3.4/test/test_importlib/source/__main__.py +4 -0
  1917. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_case_sensitivity.py +83 -0
  1918. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_file_loader.py +588 -0
  1919. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_finder.py +232 -0
  1920. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_path_hook.py +30 -0
  1921. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_source_encoding.py +165 -0
  1922. package/python3.4.2/lib/python3.4/test/test_importlib/source/util.py +96 -0
  1923. package/python3.4.2/lib/python3.4/test/test_importlib/test_abc.py +951 -0
  1924. package/python3.4.2/lib/python3.4/test/test_importlib/test_api.py +437 -0
  1925. package/python3.4.2/lib/python3.4/test/test_importlib/test_locks.py +156 -0
  1926. package/python3.4.2/lib/python3.4/test/test_importlib/test_namespace_pkgs.py +293 -0
  1927. package/python3.4.2/lib/python3.4/test/test_importlib/test_spec.py +957 -0
  1928. package/python3.4.2/lib/python3.4/test/test_importlib/test_util.py +592 -0
  1929. package/python3.4.2/lib/python3.4/test/test_importlib/test_windows.py +29 -0
  1930. package/python3.4.2/lib/python3.4/test/test_importlib/util.py +225 -0
  1931. package/python3.4.2/lib/python3.4/test/test_index.py +275 -0
  1932. package/python3.4.2/lib/python3.4/test/test_inspect.py +3103 -0
  1933. package/python3.4.2/lib/python3.4/test/test_int.py +458 -0
  1934. package/python3.4.2/lib/python3.4/test/test_int_literal.py +147 -0
  1935. package/python3.4.2/lib/python3.4/test/test_io.py +3481 -0
  1936. package/python3.4.2/lib/python3.4/test/test_ioctl.py +91 -0
  1937. package/python3.4.2/lib/python3.4/test/test_ipaddress.py +1693 -0
  1938. package/python3.4.2/lib/python3.4/test/test_isinstance.py +289 -0
  1939. package/python3.4.2/lib/python3.4/test/test_iter.py +927 -0
  1940. package/python3.4.2/lib/python3.4/test/test_iterlen.py +229 -0
  1941. package/python3.4.2/lib/python3.4/test/test_itertools.py +2142 -0
  1942. package/python3.4.2/lib/python3.4/test/test_json/__init__.py +53 -0
  1943. package/python3.4.2/lib/python3.4/test/test_json/__main__.py +4 -0
  1944. package/python3.4.2/lib/python3.4/test/test_json/test_decode.py +99 -0
  1945. package/python3.4.2/lib/python3.4/test/test_json/test_default.py +12 -0
  1946. package/python3.4.2/lib/python3.4/test/test_json/test_dump.py +49 -0
  1947. package/python3.4.2/lib/python3.4/test/test_json/test_encode_basestring_ascii.py +44 -0
  1948. package/python3.4.2/lib/python3.4/test/test_json/test_enum.py +120 -0
  1949. package/python3.4.2/lib/python3.4/test/test_json/test_fail.py +194 -0
  1950. package/python3.4.2/lib/python3.4/test/test_json/test_float.py +33 -0
  1951. package/python3.4.2/lib/python3.4/test/test_json/test_indent.py +67 -0
  1952. package/python3.4.2/lib/python3.4/test/test_json/test_pass1.py +75 -0
  1953. package/python3.4.2/lib/python3.4/test/test_json/test_pass2.py +18 -0
  1954. package/python3.4.2/lib/python3.4/test/test_json/test_pass3.py +24 -0
  1955. package/python3.4.2/lib/python3.4/test/test_json/test_recursion.py +100 -0
  1956. package/python3.4.2/lib/python3.4/test/test_json/test_scanstring.py +141 -0
  1957. package/python3.4.2/lib/python3.4/test/test_json/test_separators.py +44 -0
  1958. package/python3.4.2/lib/python3.4/test/test_json/test_speedups.py +24 -0
  1959. package/python3.4.2/lib/python3.4/test/test_json/test_tool.py +69 -0
  1960. package/python3.4.2/lib/python3.4/test/test_json/test_unicode.py +75 -0
  1961. package/python3.4.2/lib/python3.4/test/test_keyword.py +138 -0
  1962. package/python3.4.2/lib/python3.4/test/test_keywordonlyarg.py +193 -0
  1963. package/python3.4.2/lib/python3.4/test/test_kqueue.py +219 -0
  1964. package/python3.4.2/lib/python3.4/test/test_largefile.py +180 -0
  1965. package/python3.4.2/lib/python3.4/test/test_lib2to3.py +22 -0
  1966. package/python3.4.2/lib/python3.4/test/test_linecache.py +133 -0
  1967. package/python3.4.2/lib/python3.4/test/test_list.py +125 -0
  1968. package/python3.4.2/lib/python3.4/test/test_listcomps.py +148 -0
  1969. package/python3.4.2/lib/python3.4/test/test_locale.py +528 -0
  1970. package/python3.4.2/lib/python3.4/test/test_logging.py +4179 -0
  1971. package/python3.4.2/lib/python3.4/test/test_long.py +1250 -0
  1972. package/python3.4.2/lib/python3.4/test/test_longexp.py +14 -0
  1973. package/python3.4.2/lib/python3.4/test/test_lzma.py +1592 -0
  1974. package/python3.4.2/lib/python3.4/test/test_macpath.py +123 -0
  1975. package/python3.4.2/lib/python3.4/test/test_macurl2path.py +31 -0
  1976. package/python3.4.2/lib/python3.4/test/test_mailbox.py +2287 -0
  1977. package/python3.4.2/lib/python3.4/test/test_mailcap.py +221 -0
  1978. package/python3.4.2/lib/python3.4/test/test_marshal.py +451 -0
  1979. package/python3.4.2/lib/python3.4/test/test_math.py +1107 -0
  1980. package/python3.4.2/lib/python3.4/test/test_memoryio.py +784 -0
  1981. package/python3.4.2/lib/python3.4/test/test_memoryview.py +478 -0
  1982. package/python3.4.2/lib/python3.4/test/test_metaclass.py +265 -0
  1983. package/python3.4.2/lib/python3.4/test/test_mimetypes.py +111 -0
  1984. package/python3.4.2/lib/python3.4/test/test_minidom.py +1545 -0
  1985. package/python3.4.2/lib/python3.4/test/test_mmap.py +774 -0
  1986. package/python3.4.2/lib/python3.4/test/test_module.py +222 -0
  1987. package/python3.4.2/lib/python3.4/test/test_modulefinder.py +324 -0
  1988. package/python3.4.2/lib/python3.4/test/test_msilib.py +46 -0
  1989. package/python3.4.2/lib/python3.4/test/test_multibytecodec.py +263 -0
  1990. package/python3.4.2/lib/python3.4/test/test_multiprocessing_fork.py +7 -0
  1991. package/python3.4.2/lib/python3.4/test/test_multiprocessing_forkserver.py +7 -0
  1992. package/python3.4.2/lib/python3.4/test/test_multiprocessing_main_handling.py +289 -0
  1993. package/python3.4.2/lib/python3.4/test/test_multiprocessing_spawn.py +7 -0
  1994. package/python3.4.2/lib/python3.4/test/test_netrc.py +130 -0
  1995. package/python3.4.2/lib/python3.4/test/test_nis.py +43 -0
  1996. package/python3.4.2/lib/python3.4/test/test_nntplib.py +1429 -0
  1997. package/python3.4.2/lib/python3.4/test/test_normalization.py +104 -0
  1998. package/python3.4.2/lib/python3.4/test/test_ntpath.py +385 -0
  1999. package/python3.4.2/lib/python3.4/test/test_numeric_tower.py +206 -0
  2000. package/python3.4.2/lib/python3.4/test/test_opcodes.py +112 -0
  2001. package/python3.4.2/lib/python3.4/test/test_openpty.py +25 -0
  2002. package/python3.4.2/lib/python3.4/test/test_operator.py +484 -0
  2003. package/python3.4.2/lib/python3.4/test/test_optparse.py +1657 -0
  2004. package/python3.4.2/lib/python3.4/test/test_os.py +2550 -0
  2005. package/python3.4.2/lib/python3.4/test/test_ossaudiodev.py +202 -0
  2006. package/python3.4.2/lib/python3.4/test/test_osx_env.py +34 -0
  2007. package/python3.4.2/lib/python3.4/test/test_parser.py +745 -0
  2008. package/python3.4.2/lib/python3.4/test/test_pathlib.py +1884 -0
  2009. package/python3.4.2/lib/python3.4/test/test_pdb.py +1052 -0
  2010. package/python3.4.2/lib/python3.4/test/test_peepholer.py +339 -0
  2011. package/python3.4.2/lib/python3.4/test/test_pep247.py +70 -0
  2012. package/python3.4.2/lib/python3.4/test/test_pep277.py +201 -0
  2013. package/python3.4.2/lib/python3.4/test/test_pep292.py +247 -0
  2014. package/python3.4.2/lib/python3.4/test/test_pep3120.py +47 -0
  2015. package/python3.4.2/lib/python3.4/test/test_pep3131.py +35 -0
  2016. package/python3.4.2/lib/python3.4/test/test_pep3151.py +209 -0
  2017. package/python3.4.2/lib/python3.4/test/test_pep352.py +184 -0
  2018. package/python3.4.2/lib/python3.4/test/test_pep380.py +1023 -0
  2019. package/python3.4.2/lib/python3.4/test/test_pickle.py +156 -0
  2020. package/python3.4.2/lib/python3.4/test/test_pickletools.py +25 -0
  2021. package/python3.4.2/lib/python3.4/test/test_pipes.py +196 -0
  2022. package/python3.4.2/lib/python3.4/test/test_pkg.py +299 -0
  2023. package/python3.4.2/lib/python3.4/test/test_pkgimport.py +84 -0
  2024. package/python3.4.2/lib/python3.4/test/test_pkgutil.py +410 -0
  2025. package/python3.4.2/lib/python3.4/test/test_platform.py +320 -0
  2026. package/python3.4.2/lib/python3.4/test/test_plistlib.py +526 -0
  2027. package/python3.4.2/lib/python3.4/test/test_poll.py +215 -0
  2028. package/python3.4.2/lib/python3.4/test/test_popen.py +64 -0
  2029. package/python3.4.2/lib/python3.4/test/test_poplib.py +507 -0
  2030. package/python3.4.2/lib/python3.4/test/test_posix.py +1183 -0
  2031. package/python3.4.2/lib/python3.4/test/test_posixpath.py +544 -0
  2032. package/python3.4.2/lib/python3.4/test/test_pow.py +129 -0
  2033. package/python3.4.2/lib/python3.4/test/test_pprint.py +602 -0
  2034. package/python3.4.2/lib/python3.4/test/test_print.py +132 -0
  2035. package/python3.4.2/lib/python3.4/test/test_profile.py +187 -0
  2036. package/python3.4.2/lib/python3.4/test/test_property.py +254 -0
  2037. package/python3.4.2/lib/python3.4/test/test_pstats.py +45 -0
  2038. package/python3.4.2/lib/python3.4/test/test_pty.py +302 -0
  2039. package/python3.4.2/lib/python3.4/test/test_pulldom.py +347 -0
  2040. package/python3.4.2/lib/python3.4/test/test_pwd.py +114 -0
  2041. package/python3.4.2/lib/python3.4/test/test_py_compile.py +103 -0
  2042. package/python3.4.2/lib/python3.4/test/test_pyclbr.py +181 -0
  2043. package/python3.4.2/lib/python3.4/test/test_pydoc.py +1003 -0
  2044. package/python3.4.2/lib/python3.4/test/test_pyexpat.py +708 -0
  2045. package/python3.4.2/lib/python3.4/test/test_queue.py +363 -0
  2046. package/python3.4.2/lib/python3.4/test/test_quopri.py +208 -0
  2047. package/python3.4.2/lib/python3.4/test/test_raise.py +422 -0
  2048. package/python3.4.2/lib/python3.4/test/test_random.py +759 -0
  2049. package/python3.4.2/lib/python3.4/test/test_range.py +652 -0
  2050. package/python3.4.2/lib/python3.4/test/test_re.py +1451 -0
  2051. package/python3.4.2/lib/python3.4/test/test_readline.py +60 -0
  2052. package/python3.4.2/lib/python3.4/test/test_regrtest.py +275 -0
  2053. package/python3.4.2/lib/python3.4/test/test_reprlib.py +383 -0
  2054. package/python3.4.2/lib/python3.4/test/test_resource.py +166 -0
  2055. package/python3.4.2/lib/python3.4/test/test_richcmp.py +333 -0
  2056. package/python3.4.2/lib/python3.4/test/test_rlcompleter.py +73 -0
  2057. package/python3.4.2/lib/python3.4/test/test_robotparser.py +320 -0
  2058. package/python3.4.2/lib/python3.4/test/test_runpy.py +691 -0
  2059. package/python3.4.2/lib/python3.4/test/test_sax.py +1007 -0
  2060. package/python3.4.2/lib/python3.4/test/test_sched.py +199 -0
  2061. package/python3.4.2/lib/python3.4/test/test_scope.py +764 -0
  2062. package/python3.4.2/lib/python3.4/test/test_select.py +83 -0
  2063. package/python3.4.2/lib/python3.4/test/test_selectors.py +453 -0
  2064. package/python3.4.2/lib/python3.4/test/test_set.py +1839 -0
  2065. package/python3.4.2/lib/python3.4/test/test_setcomps.py +151 -0
  2066. package/python3.4.2/lib/python3.4/test/test_shelve.py +224 -0
  2067. package/python3.4.2/lib/python3.4/test/test_shlex.py +202 -0
  2068. package/python3.4.2/lib/python3.4/test/test_shutil.py +1766 -0
  2069. package/python3.4.2/lib/python3.4/test/test_signal.py +940 -0
  2070. package/python3.4.2/lib/python3.4/test/test_site.py +468 -0
  2071. package/python3.4.2/lib/python3.4/test/test_slice.py +247 -0
  2072. package/python3.4.2/lib/python3.4/test/test_smtpd.py +557 -0
  2073. package/python3.4.2/lib/python3.4/test/test_smtplib.py +950 -0
  2074. package/python3.4.2/lib/python3.4/test/test_smtpnet.py +86 -0
  2075. package/python3.4.2/lib/python3.4/test/test_sndhdr.py +23 -0
  2076. package/python3.4.2/lib/python3.4/test/test_socket.py +5163 -0
  2077. package/python3.4.2/lib/python3.4/test/test_socketserver.py +314 -0
  2078. package/python3.4.2/lib/python3.4/test/test_sort.py +285 -0
  2079. package/python3.4.2/lib/python3.4/test/test_source_encoding.py +145 -0
  2080. package/python3.4.2/lib/python3.4/test/test_spwd.py +60 -0
  2081. package/python3.4.2/lib/python3.4/test/test_sqlite.py +24 -0
  2082. package/python3.4.2/lib/python3.4/test/test_ssl.py +2908 -0
  2083. package/python3.4.2/lib/python3.4/test/test_startfile.py +37 -0
  2084. package/python3.4.2/lib/python3.4/test/test_stat.py +202 -0
  2085. package/python3.4.2/lib/python3.4/test/test_statistics.py +1574 -0
  2086. package/python3.4.2/lib/python3.4/test/test_strftime.py +204 -0
  2087. package/python3.4.2/lib/python3.4/test/test_string.py +174 -0
  2088. package/python3.4.2/lib/python3.4/test/test_stringprep.py +96 -0
  2089. package/python3.4.2/lib/python3.4/test/test_strlit.py +206 -0
  2090. package/python3.4.2/lib/python3.4/test/test_strptime.py +577 -0
  2091. package/python3.4.2/lib/python3.4/test/test_strtod.py +436 -0
  2092. package/python3.4.2/lib/python3.4/test/test_struct.py +667 -0
  2093. package/python3.4.2/lib/python3.4/test/test_structmembers.py +147 -0
  2094. package/python3.4.2/lib/python3.4/test/test_structseq.py +130 -0
  2095. package/python3.4.2/lib/python3.4/test/test_subprocess.py +2474 -0
  2096. package/python3.4.2/lib/python3.4/test/test_sunau.py +122 -0
  2097. package/python3.4.2/lib/python3.4/test/test_sundry.py +59 -0
  2098. package/python3.4.2/lib/python3.4/test/test_super.py +181 -0
  2099. package/python3.4.2/lib/python3.4/test/test_support.py +315 -0
  2100. package/python3.4.2/lib/python3.4/test/test_symtable.py +176 -0
  2101. package/python3.4.2/lib/python3.4/test/test_syntax.py +593 -0
  2102. package/python3.4.2/lib/python3.4/test/test_sys.py +1000 -0
  2103. package/python3.4.2/lib/python3.4/test/test_sys_setprofile.py +386 -0
  2104. package/python3.4.2/lib/python3.4/test/test_sys_settrace.py +834 -0
  2105. package/python3.4.2/lib/python3.4/test/test_sysconfig.py +423 -0
  2106. package/python3.4.2/lib/python3.4/test/test_syslog.py +43 -0
  2107. package/python3.4.2/lib/python3.4/test/test_tarfile.py +2180 -0
  2108. package/python3.4.2/lib/python3.4/test/test_tcl.py +642 -0
  2109. package/python3.4.2/lib/python3.4/test/test_telnetlib.py +401 -0
  2110. package/python3.4.2/lib/python3.4/test/test_tempfile.py +1248 -0
  2111. package/python3.4.2/lib/python3.4/test/test_textwrap.py +929 -0
  2112. package/python3.4.2/lib/python3.4/test/test_thread.py +260 -0
  2113. package/python3.4.2/lib/python3.4/test/test_threaded_import.py +244 -0
  2114. package/python3.4.2/lib/python3.4/test/test_threadedtempfile.py +78 -0
  2115. package/python3.4.2/lib/python3.4/test/test_threading.py +1021 -0
  2116. package/python3.4.2/lib/python3.4/test/test_threading_local.py +225 -0
  2117. package/python3.4.2/lib/python3.4/test/test_threadsignals.py +227 -0
  2118. package/python3.4.2/lib/python3.4/test/test_time.py +763 -0
  2119. package/python3.4.2/lib/python3.4/test/test_timeit.py +306 -0
  2120. package/python3.4.2/lib/python3.4/test/test_timeout.py +303 -0
  2121. package/python3.4.2/lib/python3.4/test/test_tk.py +18 -0
  2122. package/python3.4.2/lib/python3.4/test/test_tokenize.py +1233 -0
  2123. package/python3.4.2/lib/python3.4/test/test_trace.py +415 -0
  2124. package/python3.4.2/lib/python3.4/test/test_traceback.py +451 -0
  2125. package/python3.4.2/lib/python3.4/test/test_tracemalloc.py +826 -0
  2126. package/python3.4.2/lib/python3.4/test/test_ttk_guionly.py +37 -0
  2127. package/python3.4.2/lib/python3.4/test/test_ttk_textonly.py +17 -0
  2128. package/python3.4.2/lib/python3.4/test/test_tuple.py +208 -0
  2129. package/python3.4.2/lib/python3.4/test/test_typechecks.py +76 -0
  2130. package/python3.4.2/lib/python3.4/test/test_types.py +1178 -0
  2131. package/python3.4.2/lib/python3.4/test/test_ucn.py +240 -0
  2132. package/python3.4.2/lib/python3.4/test/test_unary.py +58 -0
  2133. package/python3.4.2/lib/python3.4/test/test_unicode.py +2596 -0
  2134. package/python3.4.2/lib/python3.4/test/test_unicode_file.py +144 -0
  2135. package/python3.4.2/lib/python3.4/test/test_unicodedata.py +323 -0
  2136. package/python3.4.2/lib/python3.4/test/test_unittest.py +16 -0
  2137. package/python3.4.2/lib/python3.4/test/test_univnewlines.py +123 -0
  2138. package/python3.4.2/lib/python3.4/test/test_unpack.py +130 -0
  2139. package/python3.4.2/lib/python3.4/test/test_unpack_ex.py +174 -0
  2140. package/python3.4.2/lib/python3.4/test/test_urllib.py +1486 -0
  2141. package/python3.4.2/lib/python3.4/test/test_urllib2.py +1646 -0
  2142. package/python3.4.2/lib/python3.4/test/test_urllib2_localnet.py +690 -0
  2143. package/python3.4.2/lib/python3.4/test/test_urllib2net.py +342 -0
  2144. package/python3.4.2/lib/python3.4/test/test_urllib_response.py +59 -0
  2145. package/python3.4.2/lib/python3.4/test/test_urllibnet.py +212 -0
  2146. package/python3.4.2/lib/python3.4/test/test_urlparse.py +879 -0
  2147. package/python3.4.2/lib/python3.4/test/test_userdict.py +199 -0
  2148. package/python3.4.2/lib/python3.4/test/test_userlist.py +65 -0
  2149. package/python3.4.2/lib/python3.4/test/test_userstring.py +47 -0
  2150. package/python3.4.2/lib/python3.4/test/test_uu.py +239 -0
  2151. package/python3.4.2/lib/python3.4/test/test_uuid.py +498 -0
  2152. package/python3.4.2/lib/python3.4/test/test_venv.py +406 -0
  2153. package/python3.4.2/lib/python3.4/test/test_wait3.py +38 -0
  2154. package/python3.4.2/lib/python3.4/test/test_wait4.py +38 -0
  2155. package/python3.4.2/lib/python3.4/test/test_warnings.py +873 -0
  2156. package/python3.4.2/lib/python3.4/test/test_wave.py +107 -0
  2157. package/python3.4.2/lib/python3.4/test/test_weakref.py +1801 -0
  2158. package/python3.4.2/lib/python3.4/test/test_weakset.py +450 -0
  2159. package/python3.4.2/lib/python3.4/test/test_webbrowser.py +192 -0
  2160. package/python3.4.2/lib/python3.4/test/test_winreg.py +485 -0
  2161. package/python3.4.2/lib/python3.4/test/test_winsound.py +253 -0
  2162. package/python3.4.2/lib/python3.4/test/test_with.py +750 -0
  2163. package/python3.4.2/lib/python3.4/test/test_wsgiref.py +640 -0
  2164. package/python3.4.2/lib/python3.4/test/test_xdrlib.py +58 -0
  2165. package/python3.4.2/lib/python3.4/test/test_xml_dom_minicompat.py +101 -0
  2166. package/python3.4.2/lib/python3.4/test/test_xml_etree.py +2587 -0
  2167. package/python3.4.2/lib/python3.4/test/test_xml_etree_c.py +94 -0
  2168. package/python3.4.2/lib/python3.4/test/test_xmlrpc.py +1114 -0
  2169. package/python3.4.2/lib/python3.4/test/test_xmlrpc_net.py +33 -0
  2170. package/python3.4.2/lib/python3.4/test/test_zipfile.py +1783 -0
  2171. package/python3.4.2/lib/python3.4/test/test_zipfile64.py +118 -0
  2172. package/python3.4.2/lib/python3.4/test/test_zipimport.py +507 -0
  2173. package/python3.4.2/lib/python3.4/test/test_zipimport_support.py +246 -0
  2174. package/python3.4.2/lib/python3.4/test/test_zlib.py +725 -0
  2175. package/python3.4.2/lib/python3.4/test/testcodec.py +48 -0
  2176. package/python3.4.2/lib/python3.4/test/testtar.tar +0 -0
  2177. package/python3.4.2/lib/python3.4/test/tf_inherit_check.py +25 -0
  2178. package/python3.4.2/lib/python3.4/test/threaded_import_hangers.py +45 -0
  2179. package/python3.4.2/lib/python3.4/test/time_hashlib.py +87 -0
  2180. package/python3.4.2/lib/python3.4/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
  2181. package/python3.4.2/lib/python3.4/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
  2182. package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
  2183. package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
  2184. package/python3.4.2/lib/python3.4/test/tokenize_tests.txt +189 -0
  2185. package/python3.4.2/lib/python3.4/test/tracedmodules/__init__.py +4 -0
  2186. package/python3.4.2/lib/python3.4/test/tracedmodules/testmod.py +9 -0
  2187. package/python3.4.2/lib/python3.4/test/warning_tests.py +9 -0
  2188. package/python3.4.2/lib/python3.4/test/win_console_handler.py +49 -0
  2189. package/python3.4.2/lib/python3.4/test/xmltestdata/simple-ns.xml +7 -0
  2190. package/python3.4.2/lib/python3.4/test/xmltestdata/simple.xml +6 -0
  2191. package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml +115 -0
  2192. package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml.out +115 -0
  2193. package/python3.4.2/lib/python3.4/test/xmltests.py +21 -0
  2194. package/python3.4.2/lib/python3.4/test/zip_cp437_header.zip +0 -0
  2195. package/python3.4.2/lib/python3.4/test/zipdir.zip +0 -0
  2196. package/python3.4.2/lib/python3.4/textwrap.py +470 -0
  2197. package/python3.4.2/lib/python3.4/this.py +28 -0
  2198. package/python3.4.2/lib/python3.4/threading.py +1359 -0
  2199. package/python3.4.2/lib/python3.4/timeit.py +322 -0
  2200. package/python3.4.2/lib/python3.4/tkinter/__init__.py +3898 -0
  2201. package/python3.4.2/lib/python3.4/tkinter/__main__.py +7 -0
  2202. package/python3.4.2/lib/python3.4/tkinter/_fix.py +78 -0
  2203. package/python3.4.2/lib/python3.4/tkinter/colorchooser.py +72 -0
  2204. package/python3.4.2/lib/python3.4/tkinter/commondialog.py +60 -0
  2205. package/python3.4.2/lib/python3.4/tkinter/constants.py +110 -0
  2206. package/python3.4.2/lib/python3.4/tkinter/dialog.py +49 -0
  2207. package/python3.4.2/lib/python3.4/tkinter/dnd.py +321 -0
  2208. package/python3.4.2/lib/python3.4/tkinter/filedialog.py +479 -0
  2209. package/python3.4.2/lib/python3.4/tkinter/font.py +234 -0
  2210. package/python3.4.2/lib/python3.4/tkinter/messagebox.py +134 -0
  2211. package/python3.4.2/lib/python3.4/tkinter/scrolledtext.py +54 -0
  2212. package/python3.4.2/lib/python3.4/tkinter/simpledialog.py +423 -0
  2213. package/python3.4.2/lib/python3.4/tkinter/test/README +14 -0
  2214. package/python3.4.2/lib/python3.4/tkinter/test/__init__.py +0 -0
  2215. package/python3.4.2/lib/python3.4/tkinter/test/runtktests.py +71 -0
  2216. package/python3.4.2/lib/python3.4/tkinter/test/support.py +104 -0
  2217. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/__init__.py +0 -0
  2218. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_font.py +27 -0
  2219. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_geometry_managers.py +900 -0
  2220. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_images.py +327 -0
  2221. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_loadtk.py +46 -0
  2222. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_misc.py +42 -0
  2223. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_text.py +47 -0
  2224. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_variables.py +186 -0
  2225. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py +1193 -0
  2226. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/__init__.py +0 -0
  2227. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_extensions.py +291 -0
  2228. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_functions.py +462 -0
  2229. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_style.py +92 -0
  2230. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_widgets.py +1598 -0
  2231. package/python3.4.2/lib/python3.4/tkinter/test/widget_tests.py +521 -0
  2232. package/python3.4.2/lib/python3.4/tkinter/tix.py +1944 -0
  2233. package/python3.4.2/lib/python3.4/tkinter/ttk.py +1616 -0
  2234. package/python3.4.2/lib/python3.4/token.py +140 -0
  2235. package/python3.4.2/lib/python3.4/tokenize.py +691 -0
  2236. package/python3.4.2/lib/python3.4/trace.py +858 -0
  2237. package/python3.4.2/lib/python3.4/traceback.py +313 -0
  2238. package/python3.4.2/lib/python3.4/tracemalloc.py +487 -0
  2239. package/python3.4.2/lib/python3.4/tty.py +36 -0
  2240. package/python3.4.2/lib/python3.4/turtle.py +4140 -0
  2241. package/python3.4.2/lib/python3.4/turtledemo/__init__.py +14 -0
  2242. package/python3.4.2/lib/python3.4/turtledemo/__main__.py +380 -0
  2243. package/python3.4.2/lib/python3.4/turtledemo/bytedesign.py +162 -0
  2244. package/python3.4.2/lib/python3.4/turtledemo/chaos.py +59 -0
  2245. package/python3.4.2/lib/python3.4/turtledemo/clock.py +132 -0
  2246. package/python3.4.2/lib/python3.4/turtledemo/colormixer.py +58 -0
  2247. package/python3.4.2/lib/python3.4/turtledemo/forest.py +108 -0
  2248. package/python3.4.2/lib/python3.4/turtledemo/fractalcurves.py +138 -0
  2249. package/python3.4.2/lib/python3.4/turtledemo/lindenmayer.py +119 -0
  2250. package/python3.4.2/lib/python3.4/turtledemo/minimal_hanoi.py +79 -0
  2251. package/python3.4.2/lib/python3.4/turtledemo/nim.py +226 -0
  2252. package/python3.4.2/lib/python3.4/turtledemo/paint.py +54 -0
  2253. package/python3.4.2/lib/python3.4/turtledemo/peace.py +61 -0
  2254. package/python3.4.2/lib/python3.4/turtledemo/penrose.py +181 -0
  2255. package/python3.4.2/lib/python3.4/turtledemo/planet_and_moon.py +112 -0
  2256. package/python3.4.2/lib/python3.4/turtledemo/round_dance.py +86 -0
  2257. package/python3.4.2/lib/python3.4/turtledemo/tree.py +63 -0
  2258. package/python3.4.2/lib/python3.4/turtledemo/turtle.cfg +10 -0
  2259. package/python3.4.2/lib/python3.4/turtledemo/two_canvases.py +54 -0
  2260. package/python3.4.2/lib/python3.4/turtledemo/wikipedia.py +65 -0
  2261. package/python3.4.2/lib/python3.4/turtledemo/yinyang.py +49 -0
  2262. package/python3.4.2/lib/python3.4/types.py +158 -0
  2263. package/python3.4.2/lib/python3.4/unittest/__init__.py +69 -0
  2264. package/python3.4.2/lib/python3.4/unittest/__main__.py +18 -0
  2265. package/python3.4.2/lib/python3.4/unittest/case.py +1400 -0
  2266. package/python3.4.2/lib/python3.4/unittest/loader.py +379 -0
  2267. package/python3.4.2/lib/python3.4/unittest/main.py +248 -0
  2268. package/python3.4.2/lib/python3.4/unittest/mock.py +2330 -0
  2269. package/python3.4.2/lib/python3.4/unittest/result.py +212 -0
  2270. package/python3.4.2/lib/python3.4/unittest/runner.py +213 -0
  2271. package/python3.4.2/lib/python3.4/unittest/signals.py +71 -0
  2272. package/python3.4.2/lib/python3.4/unittest/suite.py +324 -0
  2273. package/python3.4.2/lib/python3.4/unittest/test/__init__.py +22 -0
  2274. package/python3.4.2/lib/python3.4/unittest/test/__main__.py +18 -0
  2275. package/python3.4.2/lib/python3.4/unittest/test/_test_warnings.py +73 -0
  2276. package/python3.4.2/lib/python3.4/unittest/test/dummy.py +1 -0
  2277. package/python3.4.2/lib/python3.4/unittest/test/support.py +142 -0
  2278. package/python3.4.2/lib/python3.4/unittest/test/test_assertions.py +398 -0
  2279. package/python3.4.2/lib/python3.4/unittest/test/test_break.py +288 -0
  2280. package/python3.4.2/lib/python3.4/unittest/test/test_case.py +1574 -0
  2281. package/python3.4.2/lib/python3.4/unittest/test/test_discovery.py +527 -0
  2282. package/python3.4.2/lib/python3.4/unittest/test/test_functiontestcase.py +148 -0
  2283. package/python3.4.2/lib/python3.4/unittest/test/test_loader.py +1312 -0
  2284. package/python3.4.2/lib/python3.4/unittest/test/test_program.py +396 -0
  2285. package/python3.4.2/lib/python3.4/unittest/test/test_result.py +660 -0
  2286. package/python3.4.2/lib/python3.4/unittest/test/test_runner.py +346 -0
  2287. package/python3.4.2/lib/python3.4/unittest/test/test_setups.py +506 -0
  2288. package/python3.4.2/lib/python3.4/unittest/test/test_skipping.py +227 -0
  2289. package/python3.4.2/lib/python3.4/unittest/test/test_suite.py +447 -0
  2290. package/python3.4.2/lib/python3.4/unittest/test/testmock/__init__.py +17 -0
  2291. package/python3.4.2/lib/python3.4/unittest/test/testmock/__main__.py +18 -0
  2292. package/python3.4.2/lib/python3.4/unittest/test/testmock/support.py +23 -0
  2293. package/python3.4.2/lib/python3.4/unittest/test/testmock/testcallable.py +151 -0
  2294. package/python3.4.2/lib/python3.4/unittest/test/testmock/testhelpers.py +908 -0
  2295. package/python3.4.2/lib/python3.4/unittest/test/testmock/testmagicmethods.py +428 -0
  2296. package/python3.4.2/lib/python3.4/unittest/test/testmock/testmock.py +1412 -0
  2297. package/python3.4.2/lib/python3.4/unittest/test/testmock/testpatch.py +1801 -0
  2298. package/python3.4.2/lib/python3.4/unittest/test/testmock/testsentinel.py +28 -0
  2299. package/python3.4.2/lib/python3.4/unittest/test/testmock/testwith.py +259 -0
  2300. package/python3.4.2/lib/python3.4/unittest/util.py +177 -0
  2301. package/python3.4.2/lib/python3.4/urllib/__init__.py +0 -0
  2302. package/python3.4.2/lib/python3.4/urllib/error.py +76 -0
  2303. package/python3.4.2/lib/python3.4/urllib/parse.py +973 -0
  2304. package/python3.4.2/lib/python3.4/urllib/request.py +2559 -0
  2305. package/python3.4.2/lib/python3.4/urllib/response.py +76 -0
  2306. package/python3.4.2/lib/python3.4/urllib/robotparser.py +212 -0
  2307. package/python3.4.2/lib/python3.4/uu.py +199 -0
  2308. package/python3.4.2/lib/python3.4/uuid.py +591 -0
  2309. package/python3.4.2/lib/python3.4/venv/__init__.py +449 -0
  2310. package/python3.4.2/lib/python3.4/venv/__main__.py +10 -0
  2311. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate +76 -0
  2312. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.csh +37 -0
  2313. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.fish +74 -0
  2314. package/python3.4.2/lib/python3.4/warnings.py +407 -0
  2315. package/python3.4.2/lib/python3.4/wave.py +503 -0
  2316. package/python3.4.2/lib/python3.4/weakref.py +577 -0
  2317. package/python3.4.2/lib/python3.4/webbrowser.py +651 -0
  2318. package/python3.4.2/lib/python3.4/wsgiref/__init__.py +23 -0
  2319. package/python3.4.2/lib/python3.4/wsgiref/handlers.py +547 -0
  2320. package/python3.4.2/lib/python3.4/wsgiref/headers.py +184 -0
  2321. package/python3.4.2/lib/python3.4/wsgiref/simple_server.py +165 -0
  2322. package/python3.4.2/lib/python3.4/wsgiref/util.py +165 -0
  2323. package/python3.4.2/lib/python3.4/wsgiref/validate.py +443 -0
  2324. package/python3.4.2/lib/python3.4/xdrlib.py +224 -0
  2325. package/python3.4.2/lib/python3.4/xml/__init__.py +20 -0
  2326. package/python3.4.2/lib/python3.4/xml/dom/NodeFilter.py +27 -0
  2327. package/python3.4.2/lib/python3.4/xml/dom/__init__.py +140 -0
  2328. package/python3.4.2/lib/python3.4/xml/dom/domreg.py +97 -0
  2329. package/python3.4.2/lib/python3.4/xml/dom/expatbuilder.py +965 -0
  2330. package/python3.4.2/lib/python3.4/xml/dom/minicompat.py +109 -0
  2331. package/python3.4.2/lib/python3.4/xml/dom/minidom.py +1983 -0
  2332. package/python3.4.2/lib/python3.4/xml/dom/pulldom.py +342 -0
  2333. package/python3.4.2/lib/python3.4/xml/dom/xmlbuilder.py +386 -0
  2334. package/python3.4.2/lib/python3.4/xml/etree/ElementInclude.py +143 -0
  2335. package/python3.4.2/lib/python3.4/xml/etree/ElementPath.py +308 -0
  2336. package/python3.4.2/lib/python3.4/xml/etree/ElementTree.py +1667 -0
  2337. package/python3.4.2/lib/python3.4/xml/etree/__init__.py +33 -0
  2338. package/python3.4.2/lib/python3.4/xml/etree/cElementTree.py +3 -0
  2339. package/python3.4.2/lib/python3.4/xml/parsers/__init__.py +8 -0
  2340. package/python3.4.2/lib/python3.4/xml/parsers/expat.py +8 -0
  2341. package/python3.4.2/lib/python3.4/xml/sax/__init__.py +105 -0
  2342. package/python3.4.2/lib/python3.4/xml/sax/_exceptions.py +131 -0
  2343. package/python3.4.2/lib/python3.4/xml/sax/expatreader.py +417 -0
  2344. package/python3.4.2/lib/python3.4/xml/sax/handler.py +342 -0
  2345. package/python3.4.2/lib/python3.4/xml/sax/saxutils.py +365 -0
  2346. package/python3.4.2/lib/python3.4/xml/sax/xmlreader.py +378 -0
  2347. package/python3.4.2/lib/python3.4/xmlrpc/__init__.py +1 -0
  2348. package/python3.4.2/lib/python3.4/xmlrpc/client.py +1479 -0
  2349. package/python3.4.2/lib/python3.4/xmlrpc/server.py +986 -0
  2350. package/python3.4.2/lib/python3.4/zipfile.py +1788 -0
  2351. package/python3.4.2/share/man/man1/python3.1 +460 -0
  2352. package/python3.4.2/share/man/man1/python3.4.1 +460 -0
@@ -0,0 +1,2713 @@
1
+ from __future__ import absolute_import, division, unicode_literals
2
+ from pip._vendor.six import with_metaclass
3
+
4
+ import types
5
+
6
+ from . import inputstream
7
+ from . import tokenizer
8
+
9
+ from . import treebuilders
10
+ from .treebuilders._base import Marker
11
+
12
+ from . import utils
13
+ from . import constants
14
+ from .constants import spaceCharacters, asciiUpper2Lower
15
+ from .constants import specialElements
16
+ from .constants import headingElements
17
+ from .constants import cdataElements, rcdataElements
18
+ from .constants import tokenTypes, ReparseException, namespaces
19
+ from .constants import htmlIntegrationPointElements, mathmlTextIntegrationPointElements
20
+ from .constants import adjustForeignAttributes as adjustForeignAttributesMap
21
+
22
+
23
+ def parse(doc, treebuilder="etree", encoding=None,
24
+ namespaceHTMLElements=True):
25
+ """Parse a string or file-like object into a tree"""
26
+ tb = treebuilders.getTreeBuilder(treebuilder)
27
+ p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
28
+ return p.parse(doc, encoding=encoding)
29
+
30
+
31
+ def parseFragment(doc, container="div", treebuilder="etree", encoding=None,
32
+ namespaceHTMLElements=True):
33
+ tb = treebuilders.getTreeBuilder(treebuilder)
34
+ p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
35
+ return p.parseFragment(doc, container=container, encoding=encoding)
36
+
37
+
38
+ def method_decorator_metaclass(function):
39
+ class Decorated(type):
40
+ def __new__(meta, classname, bases, classDict):
41
+ for attributeName, attribute in classDict.items():
42
+ if isinstance(attribute, types.FunctionType):
43
+ attribute = function(attribute)
44
+
45
+ classDict[attributeName] = attribute
46
+ return type.__new__(meta, classname, bases, classDict)
47
+ return Decorated
48
+
49
+
50
+ class HTMLParser(object):
51
+ """HTML parser. Generates a tree structure from a stream of (possibly
52
+ malformed) HTML"""
53
+
54
+ def __init__(self, tree=None, tokenizer=tokenizer.HTMLTokenizer,
55
+ strict=False, namespaceHTMLElements=True, debug=False):
56
+ """
57
+ strict - raise an exception when a parse error is encountered
58
+
59
+ tree - a treebuilder class controlling the type of tree that will be
60
+ returned. Built in treebuilders can be accessed through
61
+ html5lib.treebuilders.getTreeBuilder(treeType)
62
+
63
+ tokenizer - a class that provides a stream of tokens to the treebuilder.
64
+ This may be replaced for e.g. a sanitizer which converts some tags to
65
+ text
66
+ """
67
+
68
+ # Raise an exception on the first error encountered
69
+ self.strict = strict
70
+
71
+ if tree is None:
72
+ tree = treebuilders.getTreeBuilder("etree")
73
+ self.tree = tree(namespaceHTMLElements)
74
+ self.tokenizer_class = tokenizer
75
+ self.errors = []
76
+
77
+ self.phases = dict([(name, cls(self, self.tree)) for name, cls in
78
+ getPhases(debug).items()])
79
+
80
+ def _parse(self, stream, innerHTML=False, container="div",
81
+ encoding=None, parseMeta=True, useChardet=True, **kwargs):
82
+
83
+ self.innerHTMLMode = innerHTML
84
+ self.container = container
85
+ self.tokenizer = self.tokenizer_class(stream, encoding=encoding,
86
+ parseMeta=parseMeta,
87
+ useChardet=useChardet,
88
+ parser=self, **kwargs)
89
+ self.reset()
90
+
91
+ while True:
92
+ try:
93
+ self.mainLoop()
94
+ break
95
+ except ReparseException:
96
+ self.reset()
97
+
98
+ def reset(self):
99
+ self.tree.reset()
100
+ self.firstStartTag = False
101
+ self.errors = []
102
+ self.log = [] # only used with debug mode
103
+ # "quirks" / "limited quirks" / "no quirks"
104
+ self.compatMode = "no quirks"
105
+
106
+ if self.innerHTMLMode:
107
+ self.innerHTML = self.container.lower()
108
+
109
+ if self.innerHTML in cdataElements:
110
+ self.tokenizer.state = self.tokenizer.rcdataState
111
+ elif self.innerHTML in rcdataElements:
112
+ self.tokenizer.state = self.tokenizer.rawtextState
113
+ elif self.innerHTML == 'plaintext':
114
+ self.tokenizer.state = self.tokenizer.plaintextState
115
+ else:
116
+ # state already is data state
117
+ # self.tokenizer.state = self.tokenizer.dataState
118
+ pass
119
+ self.phase = self.phases["beforeHtml"]
120
+ self.phase.insertHtmlElement()
121
+ self.resetInsertionMode()
122
+ else:
123
+ self.innerHTML = False
124
+ self.phase = self.phases["initial"]
125
+
126
+ self.lastPhase = None
127
+
128
+ self.beforeRCDataPhase = None
129
+
130
+ self.framesetOK = True
131
+
132
+ def isHTMLIntegrationPoint(self, element):
133
+ if (element.name == "annotation-xml" and
134
+ element.namespace == namespaces["mathml"]):
135
+ return ("encoding" in element.attributes and
136
+ element.attributes["encoding"].translate(
137
+ asciiUpper2Lower) in
138
+ ("text/html", "application/xhtml+xml"))
139
+ else:
140
+ return (element.namespace, element.name) in htmlIntegrationPointElements
141
+
142
+ def isMathMLTextIntegrationPoint(self, element):
143
+ return (element.namespace, element.name) in mathmlTextIntegrationPointElements
144
+
145
+ def mainLoop(self):
146
+ CharactersToken = tokenTypes["Characters"]
147
+ SpaceCharactersToken = tokenTypes["SpaceCharacters"]
148
+ StartTagToken = tokenTypes["StartTag"]
149
+ EndTagToken = tokenTypes["EndTag"]
150
+ CommentToken = tokenTypes["Comment"]
151
+ DoctypeToken = tokenTypes["Doctype"]
152
+ ParseErrorToken = tokenTypes["ParseError"]
153
+
154
+ for token in self.normalizedTokens():
155
+ new_token = token
156
+ while new_token is not None:
157
+ currentNode = self.tree.openElements[-1] if self.tree.openElements else None
158
+ currentNodeNamespace = currentNode.namespace if currentNode else None
159
+ currentNodeName = currentNode.name if currentNode else None
160
+
161
+ type = new_token["type"]
162
+
163
+ if type == ParseErrorToken:
164
+ self.parseError(new_token["data"], new_token.get("datavars", {}))
165
+ new_token = None
166
+ else:
167
+ if (len(self.tree.openElements) == 0 or
168
+ currentNodeNamespace == self.tree.defaultNamespace or
169
+ (self.isMathMLTextIntegrationPoint(currentNode) and
170
+ ((type == StartTagToken and
171
+ token["name"] not in frozenset(["mglyph", "malignmark"])) or
172
+ type in (CharactersToken, SpaceCharactersToken))) or
173
+ (currentNodeNamespace == namespaces["mathml"] and
174
+ currentNodeName == "annotation-xml" and
175
+ token["name"] == "svg") or
176
+ (self.isHTMLIntegrationPoint(currentNode) and
177
+ type in (StartTagToken, CharactersToken, SpaceCharactersToken))):
178
+ phase = self.phase
179
+ else:
180
+ phase = self.phases["inForeignContent"]
181
+
182
+ if type == CharactersToken:
183
+ new_token = phase.processCharacters(new_token)
184
+ elif type == SpaceCharactersToken:
185
+ new_token = phase.processSpaceCharacters(new_token)
186
+ elif type == StartTagToken:
187
+ new_token = phase.processStartTag(new_token)
188
+ elif type == EndTagToken:
189
+ new_token = phase.processEndTag(new_token)
190
+ elif type == CommentToken:
191
+ new_token = phase.processComment(new_token)
192
+ elif type == DoctypeToken:
193
+ new_token = phase.processDoctype(new_token)
194
+
195
+ if (type == StartTagToken and token["selfClosing"]
196
+ and not token["selfClosingAcknowledged"]):
197
+ self.parseError("non-void-element-with-trailing-solidus",
198
+ {"name": token["name"]})
199
+
200
+ # When the loop finishes it's EOF
201
+ reprocess = True
202
+ phases = []
203
+ while reprocess:
204
+ phases.append(self.phase)
205
+ reprocess = self.phase.processEOF()
206
+ if reprocess:
207
+ assert self.phase not in phases
208
+
209
+ def normalizedTokens(self):
210
+ for token in self.tokenizer:
211
+ yield self.normalizeToken(token)
212
+
213
+ def parse(self, stream, encoding=None, parseMeta=True, useChardet=True):
214
+ """Parse a HTML document into a well-formed tree
215
+
216
+ stream - a filelike object or string containing the HTML to be parsed
217
+
218
+ The optional encoding parameter must be a string that indicates
219
+ the encoding. If specified, that encoding will be used,
220
+ regardless of any BOM or later declaration (such as in a meta
221
+ element)
222
+ """
223
+ self._parse(stream, innerHTML=False, encoding=encoding,
224
+ parseMeta=parseMeta, useChardet=useChardet)
225
+ return self.tree.getDocument()
226
+
227
+ def parseFragment(self, stream, container="div", encoding=None,
228
+ parseMeta=False, useChardet=True):
229
+ """Parse a HTML fragment into a well-formed tree fragment
230
+
231
+ container - name of the element we're setting the innerHTML property
232
+ if set to None, default to 'div'
233
+
234
+ stream - a filelike object or string containing the HTML to be parsed
235
+
236
+ The optional encoding parameter must be a string that indicates
237
+ the encoding. If specified, that encoding will be used,
238
+ regardless of any BOM or later declaration (such as in a meta
239
+ element)
240
+ """
241
+ self._parse(stream, True, container=container, encoding=encoding)
242
+ return self.tree.getFragment()
243
+
244
+ def parseError(self, errorcode="XXX-undefined-error", datavars={}):
245
+ # XXX The idea is to make errorcode mandatory.
246
+ self.errors.append((self.tokenizer.stream.position(), errorcode, datavars))
247
+ if self.strict:
248
+ raise ParseError
249
+
250
+ def normalizeToken(self, token):
251
+ """ HTML5 specific normalizations to the token stream """
252
+
253
+ if token["type"] == tokenTypes["StartTag"]:
254
+ token["data"] = dict(token["data"][::-1])
255
+
256
+ return token
257
+
258
+ def adjustMathMLAttributes(self, token):
259
+ replacements = {"definitionurl": "definitionURL"}
260
+ for k, v in replacements.items():
261
+ if k in token["data"]:
262
+ token["data"][v] = token["data"][k]
263
+ del token["data"][k]
264
+
265
+ def adjustSVGAttributes(self, token):
266
+ replacements = {
267
+ "attributename": "attributeName",
268
+ "attributetype": "attributeType",
269
+ "basefrequency": "baseFrequency",
270
+ "baseprofile": "baseProfile",
271
+ "calcmode": "calcMode",
272
+ "clippathunits": "clipPathUnits",
273
+ "contentscripttype": "contentScriptType",
274
+ "contentstyletype": "contentStyleType",
275
+ "diffuseconstant": "diffuseConstant",
276
+ "edgemode": "edgeMode",
277
+ "externalresourcesrequired": "externalResourcesRequired",
278
+ "filterres": "filterRes",
279
+ "filterunits": "filterUnits",
280
+ "glyphref": "glyphRef",
281
+ "gradienttransform": "gradientTransform",
282
+ "gradientunits": "gradientUnits",
283
+ "kernelmatrix": "kernelMatrix",
284
+ "kernelunitlength": "kernelUnitLength",
285
+ "keypoints": "keyPoints",
286
+ "keysplines": "keySplines",
287
+ "keytimes": "keyTimes",
288
+ "lengthadjust": "lengthAdjust",
289
+ "limitingconeangle": "limitingConeAngle",
290
+ "markerheight": "markerHeight",
291
+ "markerunits": "markerUnits",
292
+ "markerwidth": "markerWidth",
293
+ "maskcontentunits": "maskContentUnits",
294
+ "maskunits": "maskUnits",
295
+ "numoctaves": "numOctaves",
296
+ "pathlength": "pathLength",
297
+ "patterncontentunits": "patternContentUnits",
298
+ "patterntransform": "patternTransform",
299
+ "patternunits": "patternUnits",
300
+ "pointsatx": "pointsAtX",
301
+ "pointsaty": "pointsAtY",
302
+ "pointsatz": "pointsAtZ",
303
+ "preservealpha": "preserveAlpha",
304
+ "preserveaspectratio": "preserveAspectRatio",
305
+ "primitiveunits": "primitiveUnits",
306
+ "refx": "refX",
307
+ "refy": "refY",
308
+ "repeatcount": "repeatCount",
309
+ "repeatdur": "repeatDur",
310
+ "requiredextensions": "requiredExtensions",
311
+ "requiredfeatures": "requiredFeatures",
312
+ "specularconstant": "specularConstant",
313
+ "specularexponent": "specularExponent",
314
+ "spreadmethod": "spreadMethod",
315
+ "startoffset": "startOffset",
316
+ "stddeviation": "stdDeviation",
317
+ "stitchtiles": "stitchTiles",
318
+ "surfacescale": "surfaceScale",
319
+ "systemlanguage": "systemLanguage",
320
+ "tablevalues": "tableValues",
321
+ "targetx": "targetX",
322
+ "targety": "targetY",
323
+ "textlength": "textLength",
324
+ "viewbox": "viewBox",
325
+ "viewtarget": "viewTarget",
326
+ "xchannelselector": "xChannelSelector",
327
+ "ychannelselector": "yChannelSelector",
328
+ "zoomandpan": "zoomAndPan"
329
+ }
330
+ for originalName in list(token["data"].keys()):
331
+ if originalName in replacements:
332
+ svgName = replacements[originalName]
333
+ token["data"][svgName] = token["data"][originalName]
334
+ del token["data"][originalName]
335
+
336
+ def adjustForeignAttributes(self, token):
337
+ replacements = adjustForeignAttributesMap
338
+
339
+ for originalName in token["data"].keys():
340
+ if originalName in replacements:
341
+ foreignName = replacements[originalName]
342
+ token["data"][foreignName] = token["data"][originalName]
343
+ del token["data"][originalName]
344
+
345
+ def reparseTokenNormal(self, token):
346
+ self.parser.phase()
347
+
348
+ def resetInsertionMode(self):
349
+ # The name of this method is mostly historical. (It's also used in the
350
+ # specification.)
351
+ last = False
352
+ newModes = {
353
+ "select": "inSelect",
354
+ "td": "inCell",
355
+ "th": "inCell",
356
+ "tr": "inRow",
357
+ "tbody": "inTableBody",
358
+ "thead": "inTableBody",
359
+ "tfoot": "inTableBody",
360
+ "caption": "inCaption",
361
+ "colgroup": "inColumnGroup",
362
+ "table": "inTable",
363
+ "head": "inBody",
364
+ "body": "inBody",
365
+ "frameset": "inFrameset",
366
+ "html": "beforeHead"
367
+ }
368
+ for node in self.tree.openElements[::-1]:
369
+ nodeName = node.name
370
+ new_phase = None
371
+ if node == self.tree.openElements[0]:
372
+ assert self.innerHTML
373
+ last = True
374
+ nodeName = self.innerHTML
375
+ # Check for conditions that should only happen in the innerHTML
376
+ # case
377
+ if nodeName in ("select", "colgroup", "head", "html"):
378
+ assert self.innerHTML
379
+
380
+ if not last and node.namespace != self.tree.defaultNamespace:
381
+ continue
382
+
383
+ if nodeName in newModes:
384
+ new_phase = self.phases[newModes[nodeName]]
385
+ break
386
+ elif last:
387
+ new_phase = self.phases["inBody"]
388
+ break
389
+
390
+ self.phase = new_phase
391
+
392
+ def parseRCDataRawtext(self, token, contentType):
393
+ """Generic RCDATA/RAWTEXT Parsing algorithm
394
+ contentType - RCDATA or RAWTEXT
395
+ """
396
+ assert contentType in ("RAWTEXT", "RCDATA")
397
+
398
+ self.tree.insertElement(token)
399
+
400
+ if contentType == "RAWTEXT":
401
+ self.tokenizer.state = self.tokenizer.rawtextState
402
+ else:
403
+ self.tokenizer.state = self.tokenizer.rcdataState
404
+
405
+ self.originalPhase = self.phase
406
+
407
+ self.phase = self.phases["text"]
408
+
409
+
410
+ def getPhases(debug):
411
+ def log(function):
412
+ """Logger that records which phase processes each token"""
413
+ type_names = dict((value, key) for key, value in
414
+ constants.tokenTypes.items())
415
+
416
+ def wrapped(self, *args, **kwargs):
417
+ if function.__name__.startswith("process") and len(args) > 0:
418
+ token = args[0]
419
+ try:
420
+ info = {"type": type_names[token['type']]}
421
+ except:
422
+ raise
423
+ if token['type'] in constants.tagTokenTypes:
424
+ info["name"] = token['name']
425
+
426
+ self.parser.log.append((self.parser.tokenizer.state.__name__,
427
+ self.parser.phase.__class__.__name__,
428
+ self.__class__.__name__,
429
+ function.__name__,
430
+ info))
431
+ return function(self, *args, **kwargs)
432
+ else:
433
+ return function(self, *args, **kwargs)
434
+ return wrapped
435
+
436
+ def getMetaclass(use_metaclass, metaclass_func):
437
+ if use_metaclass:
438
+ return method_decorator_metaclass(metaclass_func)
439
+ else:
440
+ return type
441
+
442
+ class Phase(with_metaclass(getMetaclass(debug, log))):
443
+ """Base class for helper object that implements each phase of processing
444
+ """
445
+
446
+ def __init__(self, parser, tree):
447
+ self.parser = parser
448
+ self.tree = tree
449
+
450
+ def processEOF(self):
451
+ raise NotImplementedError
452
+
453
+ def processComment(self, token):
454
+ # For most phases the following is correct. Where it's not it will be
455
+ # overridden.
456
+ self.tree.insertComment(token, self.tree.openElements[-1])
457
+
458
+ def processDoctype(self, token):
459
+ self.parser.parseError("unexpected-doctype")
460
+
461
+ def processCharacters(self, token):
462
+ self.tree.insertText(token["data"])
463
+
464
+ def processSpaceCharacters(self, token):
465
+ self.tree.insertText(token["data"])
466
+
467
+ def processStartTag(self, token):
468
+ return self.startTagHandler[token["name"]](token)
469
+
470
+ def startTagHtml(self, token):
471
+ if not self.parser.firstStartTag and token["name"] == "html":
472
+ self.parser.parseError("non-html-root")
473
+ # XXX Need a check here to see if the first start tag token emitted is
474
+ # this token... If it's not, invoke self.parser.parseError().
475
+ for attr, value in token["data"].items():
476
+ if attr not in self.tree.openElements[0].attributes:
477
+ self.tree.openElements[0].attributes[attr] = value
478
+ self.parser.firstStartTag = False
479
+
480
+ def processEndTag(self, token):
481
+ return self.endTagHandler[token["name"]](token)
482
+
483
+ class InitialPhase(Phase):
484
+ def processSpaceCharacters(self, token):
485
+ pass
486
+
487
+ def processComment(self, token):
488
+ self.tree.insertComment(token, self.tree.document)
489
+
490
+ def processDoctype(self, token):
491
+ name = token["name"]
492
+ publicId = token["publicId"]
493
+ systemId = token["systemId"]
494
+ correct = token["correct"]
495
+
496
+ if (name != "html" or publicId is not None or
497
+ systemId is not None and systemId != "about:legacy-compat"):
498
+ self.parser.parseError("unknown-doctype")
499
+
500
+ if publicId is None:
501
+ publicId = ""
502
+
503
+ self.tree.insertDoctype(token)
504
+
505
+ if publicId != "":
506
+ publicId = publicId.translate(asciiUpper2Lower)
507
+
508
+ if (not correct or token["name"] != "html"
509
+ or publicId.startswith(
510
+ ("+//silmaril//dtd html pro v0r11 19970101//",
511
+ "-//advasoft ltd//dtd html 3.0 aswedit + extensions//",
512
+ "-//as//dtd html 3.0 aswedit + extensions//",
513
+ "-//ietf//dtd html 2.0 level 1//",
514
+ "-//ietf//dtd html 2.0 level 2//",
515
+ "-//ietf//dtd html 2.0 strict level 1//",
516
+ "-//ietf//dtd html 2.0 strict level 2//",
517
+ "-//ietf//dtd html 2.0 strict//",
518
+ "-//ietf//dtd html 2.0//",
519
+ "-//ietf//dtd html 2.1e//",
520
+ "-//ietf//dtd html 3.0//",
521
+ "-//ietf//dtd html 3.2 final//",
522
+ "-//ietf//dtd html 3.2//",
523
+ "-//ietf//dtd html 3//",
524
+ "-//ietf//dtd html level 0//",
525
+ "-//ietf//dtd html level 1//",
526
+ "-//ietf//dtd html level 2//",
527
+ "-//ietf//dtd html level 3//",
528
+ "-//ietf//dtd html strict level 0//",
529
+ "-//ietf//dtd html strict level 1//",
530
+ "-//ietf//dtd html strict level 2//",
531
+ "-//ietf//dtd html strict level 3//",
532
+ "-//ietf//dtd html strict//",
533
+ "-//ietf//dtd html//",
534
+ "-//metrius//dtd metrius presentational//",
535
+ "-//microsoft//dtd internet explorer 2.0 html strict//",
536
+ "-//microsoft//dtd internet explorer 2.0 html//",
537
+ "-//microsoft//dtd internet explorer 2.0 tables//",
538
+ "-//microsoft//dtd internet explorer 3.0 html strict//",
539
+ "-//microsoft//dtd internet explorer 3.0 html//",
540
+ "-//microsoft//dtd internet explorer 3.0 tables//",
541
+ "-//netscape comm. corp.//dtd html//",
542
+ "-//netscape comm. corp.//dtd strict html//",
543
+ "-//o'reilly and associates//dtd html 2.0//",
544
+ "-//o'reilly and associates//dtd html extended 1.0//",
545
+ "-//o'reilly and associates//dtd html extended relaxed 1.0//",
546
+ "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//",
547
+ "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//",
548
+ "-//spyglass//dtd html 2.0 extended//",
549
+ "-//sq//dtd html 2.0 hotmetal + extensions//",
550
+ "-//sun microsystems corp.//dtd hotjava html//",
551
+ "-//sun microsystems corp.//dtd hotjava strict html//",
552
+ "-//w3c//dtd html 3 1995-03-24//",
553
+ "-//w3c//dtd html 3.2 draft//",
554
+ "-//w3c//dtd html 3.2 final//",
555
+ "-//w3c//dtd html 3.2//",
556
+ "-//w3c//dtd html 3.2s draft//",
557
+ "-//w3c//dtd html 4.0 frameset//",
558
+ "-//w3c//dtd html 4.0 transitional//",
559
+ "-//w3c//dtd html experimental 19960712//",
560
+ "-//w3c//dtd html experimental 970421//",
561
+ "-//w3c//dtd w3 html//",
562
+ "-//w3o//dtd w3 html 3.0//",
563
+ "-//webtechs//dtd mozilla html 2.0//",
564
+ "-//webtechs//dtd mozilla html//"))
565
+ or publicId in
566
+ ("-//w3o//dtd w3 html strict 3.0//en//",
567
+ "-/w3c/dtd html 4.0 transitional/en",
568
+ "html")
569
+ or publicId.startswith(
570
+ ("-//w3c//dtd html 4.01 frameset//",
571
+ "-//w3c//dtd html 4.01 transitional//")) and
572
+ systemId is None
573
+ or systemId and systemId.lower() == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"):
574
+ self.parser.compatMode = "quirks"
575
+ elif (publicId.startswith(
576
+ ("-//w3c//dtd xhtml 1.0 frameset//",
577
+ "-//w3c//dtd xhtml 1.0 transitional//"))
578
+ or publicId.startswith(
579
+ ("-//w3c//dtd html 4.01 frameset//",
580
+ "-//w3c//dtd html 4.01 transitional//")) and
581
+ systemId is not None):
582
+ self.parser.compatMode = "limited quirks"
583
+
584
+ self.parser.phase = self.parser.phases["beforeHtml"]
585
+
586
+ def anythingElse(self):
587
+ self.parser.compatMode = "quirks"
588
+ self.parser.phase = self.parser.phases["beforeHtml"]
589
+
590
+ def processCharacters(self, token):
591
+ self.parser.parseError("expected-doctype-but-got-chars")
592
+ self.anythingElse()
593
+ return token
594
+
595
+ def processStartTag(self, token):
596
+ self.parser.parseError("expected-doctype-but-got-start-tag",
597
+ {"name": token["name"]})
598
+ self.anythingElse()
599
+ return token
600
+
601
+ def processEndTag(self, token):
602
+ self.parser.parseError("expected-doctype-but-got-end-tag",
603
+ {"name": token["name"]})
604
+ self.anythingElse()
605
+ return token
606
+
607
+ def processEOF(self):
608
+ self.parser.parseError("expected-doctype-but-got-eof")
609
+ self.anythingElse()
610
+ return True
611
+
612
+ class BeforeHtmlPhase(Phase):
613
+ # helper methods
614
+ def insertHtmlElement(self):
615
+ self.tree.insertRoot(impliedTagToken("html", "StartTag"))
616
+ self.parser.phase = self.parser.phases["beforeHead"]
617
+
618
+ # other
619
+ def processEOF(self):
620
+ self.insertHtmlElement()
621
+ return True
622
+
623
+ def processComment(self, token):
624
+ self.tree.insertComment(token, self.tree.document)
625
+
626
+ def processSpaceCharacters(self, token):
627
+ pass
628
+
629
+ def processCharacters(self, token):
630
+ self.insertHtmlElement()
631
+ return token
632
+
633
+ def processStartTag(self, token):
634
+ if token["name"] == "html":
635
+ self.parser.firstStartTag = True
636
+ self.insertHtmlElement()
637
+ return token
638
+
639
+ def processEndTag(self, token):
640
+ if token["name"] not in ("head", "body", "html", "br"):
641
+ self.parser.parseError("unexpected-end-tag-before-html",
642
+ {"name": token["name"]})
643
+ else:
644
+ self.insertHtmlElement()
645
+ return token
646
+
647
+ class BeforeHeadPhase(Phase):
648
+ def __init__(self, parser, tree):
649
+ Phase.__init__(self, parser, tree)
650
+
651
+ self.startTagHandler = utils.MethodDispatcher([
652
+ ("html", self.startTagHtml),
653
+ ("head", self.startTagHead)
654
+ ])
655
+ self.startTagHandler.default = self.startTagOther
656
+
657
+ self.endTagHandler = utils.MethodDispatcher([
658
+ (("head", "body", "html", "br"), self.endTagImplyHead)
659
+ ])
660
+ self.endTagHandler.default = self.endTagOther
661
+
662
+ def processEOF(self):
663
+ self.startTagHead(impliedTagToken("head", "StartTag"))
664
+ return True
665
+
666
+ def processSpaceCharacters(self, token):
667
+ pass
668
+
669
+ def processCharacters(self, token):
670
+ self.startTagHead(impliedTagToken("head", "StartTag"))
671
+ return token
672
+
673
+ def startTagHtml(self, token):
674
+ return self.parser.phases["inBody"].processStartTag(token)
675
+
676
+ def startTagHead(self, token):
677
+ self.tree.insertElement(token)
678
+ self.tree.headPointer = self.tree.openElements[-1]
679
+ self.parser.phase = self.parser.phases["inHead"]
680
+
681
+ def startTagOther(self, token):
682
+ self.startTagHead(impliedTagToken("head", "StartTag"))
683
+ return token
684
+
685
+ def endTagImplyHead(self, token):
686
+ self.startTagHead(impliedTagToken("head", "StartTag"))
687
+ return token
688
+
689
+ def endTagOther(self, token):
690
+ self.parser.parseError("end-tag-after-implied-root",
691
+ {"name": token["name"]})
692
+
693
+ class InHeadPhase(Phase):
694
+ def __init__(self, parser, tree):
695
+ Phase.__init__(self, parser, tree)
696
+
697
+ self.startTagHandler = utils.MethodDispatcher([
698
+ ("html", self.startTagHtml),
699
+ ("title", self.startTagTitle),
700
+ (("noscript", "noframes", "style"), self.startTagNoScriptNoFramesStyle),
701
+ ("script", self.startTagScript),
702
+ (("base", "basefont", "bgsound", "command", "link"),
703
+ self.startTagBaseLinkCommand),
704
+ ("meta", self.startTagMeta),
705
+ ("head", self.startTagHead)
706
+ ])
707
+ self.startTagHandler.default = self.startTagOther
708
+
709
+ self. endTagHandler = utils.MethodDispatcher([
710
+ ("head", self.endTagHead),
711
+ (("br", "html", "body"), self.endTagHtmlBodyBr)
712
+ ])
713
+ self.endTagHandler.default = self.endTagOther
714
+
715
+ # the real thing
716
+ def processEOF(self):
717
+ self.anythingElse()
718
+ return True
719
+
720
+ def processCharacters(self, token):
721
+ self.anythingElse()
722
+ return token
723
+
724
+ def startTagHtml(self, token):
725
+ return self.parser.phases["inBody"].processStartTag(token)
726
+
727
+ def startTagHead(self, token):
728
+ self.parser.parseError("two-heads-are-not-better-than-one")
729
+
730
+ def startTagBaseLinkCommand(self, token):
731
+ self.tree.insertElement(token)
732
+ self.tree.openElements.pop()
733
+ token["selfClosingAcknowledged"] = True
734
+
735
+ def startTagMeta(self, token):
736
+ self.tree.insertElement(token)
737
+ self.tree.openElements.pop()
738
+ token["selfClosingAcknowledged"] = True
739
+
740
+ attributes = token["data"]
741
+ if self.parser.tokenizer.stream.charEncoding[1] == "tentative":
742
+ if "charset" in attributes:
743
+ self.parser.tokenizer.stream.changeEncoding(attributes["charset"])
744
+ elif ("content" in attributes and
745
+ "http-equiv" in attributes and
746
+ attributes["http-equiv"].lower() == "content-type"):
747
+ # Encoding it as UTF-8 here is a hack, as really we should pass
748
+ # the abstract Unicode string, and just use the
749
+ # ContentAttrParser on that, but using UTF-8 allows all chars
750
+ # to be encoded and as a ASCII-superset works.
751
+ data = inputstream.EncodingBytes(attributes["content"].encode("utf-8"))
752
+ parser = inputstream.ContentAttrParser(data)
753
+ codec = parser.parse()
754
+ self.parser.tokenizer.stream.changeEncoding(codec)
755
+
756
+ def startTagTitle(self, token):
757
+ self.parser.parseRCDataRawtext(token, "RCDATA")
758
+
759
+ def startTagNoScriptNoFramesStyle(self, token):
760
+ # Need to decide whether to implement the scripting-disabled case
761
+ self.parser.parseRCDataRawtext(token, "RAWTEXT")
762
+
763
+ def startTagScript(self, token):
764
+ self.tree.insertElement(token)
765
+ self.parser.tokenizer.state = self.parser.tokenizer.scriptDataState
766
+ self.parser.originalPhase = self.parser.phase
767
+ self.parser.phase = self.parser.phases["text"]
768
+
769
+ def startTagOther(self, token):
770
+ self.anythingElse()
771
+ return token
772
+
773
+ def endTagHead(self, token):
774
+ node = self.parser.tree.openElements.pop()
775
+ assert node.name == "head", "Expected head got %s" % node.name
776
+ self.parser.phase = self.parser.phases["afterHead"]
777
+
778
+ def endTagHtmlBodyBr(self, token):
779
+ self.anythingElse()
780
+ return token
781
+
782
+ def endTagOther(self, token):
783
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
784
+
785
+ def anythingElse(self):
786
+ self.endTagHead(impliedTagToken("head"))
787
+
788
+ # XXX If we implement a parser for which scripting is disabled we need to
789
+ # implement this phase.
790
+ #
791
+ # class InHeadNoScriptPhase(Phase):
792
+ class AfterHeadPhase(Phase):
793
+ def __init__(self, parser, tree):
794
+ Phase.__init__(self, parser, tree)
795
+
796
+ self.startTagHandler = utils.MethodDispatcher([
797
+ ("html", self.startTagHtml),
798
+ ("body", self.startTagBody),
799
+ ("frameset", self.startTagFrameset),
800
+ (("base", "basefont", "bgsound", "link", "meta", "noframes", "script",
801
+ "style", "title"),
802
+ self.startTagFromHead),
803
+ ("head", self.startTagHead)
804
+ ])
805
+ self.startTagHandler.default = self.startTagOther
806
+ self.endTagHandler = utils.MethodDispatcher([(("body", "html", "br"),
807
+ self.endTagHtmlBodyBr)])
808
+ self.endTagHandler.default = self.endTagOther
809
+
810
+ def processEOF(self):
811
+ self.anythingElse()
812
+ return True
813
+
814
+ def processCharacters(self, token):
815
+ self.anythingElse()
816
+ return token
817
+
818
+ def startTagHtml(self, token):
819
+ return self.parser.phases["inBody"].processStartTag(token)
820
+
821
+ def startTagBody(self, token):
822
+ self.parser.framesetOK = False
823
+ self.tree.insertElement(token)
824
+ self.parser.phase = self.parser.phases["inBody"]
825
+
826
+ def startTagFrameset(self, token):
827
+ self.tree.insertElement(token)
828
+ self.parser.phase = self.parser.phases["inFrameset"]
829
+
830
+ def startTagFromHead(self, token):
831
+ self.parser.parseError("unexpected-start-tag-out-of-my-head",
832
+ {"name": token["name"]})
833
+ self.tree.openElements.append(self.tree.headPointer)
834
+ self.parser.phases["inHead"].processStartTag(token)
835
+ for node in self.tree.openElements[::-1]:
836
+ if node.name == "head":
837
+ self.tree.openElements.remove(node)
838
+ break
839
+
840
+ def startTagHead(self, token):
841
+ self.parser.parseError("unexpected-start-tag", {"name": token["name"]})
842
+
843
+ def startTagOther(self, token):
844
+ self.anythingElse()
845
+ return token
846
+
847
+ def endTagHtmlBodyBr(self, token):
848
+ self.anythingElse()
849
+ return token
850
+
851
+ def endTagOther(self, token):
852
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
853
+
854
+ def anythingElse(self):
855
+ self.tree.insertElement(impliedTagToken("body", "StartTag"))
856
+ self.parser.phase = self.parser.phases["inBody"]
857
+ self.parser.framesetOK = True
858
+
859
+ class InBodyPhase(Phase):
860
+ # http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inbody
861
+ # the really-really-really-very crazy mode
862
+ def __init__(self, parser, tree):
863
+ Phase.__init__(self, parser, tree)
864
+
865
+ # Keep a ref to this for special handling of whitespace in <pre>
866
+ self.processSpaceCharactersNonPre = self.processSpaceCharacters
867
+
868
+ self.startTagHandler = utils.MethodDispatcher([
869
+ ("html", self.startTagHtml),
870
+ (("base", "basefont", "bgsound", "command", "link", "meta",
871
+ "noframes", "script", "style", "title"),
872
+ self.startTagProcessInHead),
873
+ ("body", self.startTagBody),
874
+ ("frameset", self.startTagFrameset),
875
+ (("address", "article", "aside", "blockquote", "center", "details",
876
+ "details", "dir", "div", "dl", "fieldset", "figcaption", "figure",
877
+ "footer", "header", "hgroup", "main", "menu", "nav", "ol", "p",
878
+ "section", "summary", "ul"),
879
+ self.startTagCloseP),
880
+ (headingElements, self.startTagHeading),
881
+ (("pre", "listing"), self.startTagPreListing),
882
+ ("form", self.startTagForm),
883
+ (("li", "dd", "dt"), self.startTagListItem),
884
+ ("plaintext", self.startTagPlaintext),
885
+ ("a", self.startTagA),
886
+ (("b", "big", "code", "em", "font", "i", "s", "small", "strike",
887
+ "strong", "tt", "u"), self.startTagFormatting),
888
+ ("nobr", self.startTagNobr),
889
+ ("button", self.startTagButton),
890
+ (("applet", "marquee", "object"), self.startTagAppletMarqueeObject),
891
+ ("xmp", self.startTagXmp),
892
+ ("table", self.startTagTable),
893
+ (("area", "br", "embed", "img", "keygen", "wbr"),
894
+ self.startTagVoidFormatting),
895
+ (("param", "source", "track"), self.startTagParamSource),
896
+ ("input", self.startTagInput),
897
+ ("hr", self.startTagHr),
898
+ ("image", self.startTagImage),
899
+ ("isindex", self.startTagIsIndex),
900
+ ("textarea", self.startTagTextarea),
901
+ ("iframe", self.startTagIFrame),
902
+ (("noembed", "noframes", "noscript"), self.startTagRawtext),
903
+ ("select", self.startTagSelect),
904
+ (("rp", "rt"), self.startTagRpRt),
905
+ (("option", "optgroup"), self.startTagOpt),
906
+ (("math"), self.startTagMath),
907
+ (("svg"), self.startTagSvg),
908
+ (("caption", "col", "colgroup", "frame", "head",
909
+ "tbody", "td", "tfoot", "th", "thead",
910
+ "tr"), self.startTagMisplaced)
911
+ ])
912
+ self.startTagHandler.default = self.startTagOther
913
+
914
+ self.endTagHandler = utils.MethodDispatcher([
915
+ ("body", self.endTagBody),
916
+ ("html", self.endTagHtml),
917
+ (("address", "article", "aside", "blockquote", "button", "center",
918
+ "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure",
919
+ "footer", "header", "hgroup", "listing", "main", "menu", "nav", "ol", "pre",
920
+ "section", "summary", "ul"), self.endTagBlock),
921
+ ("form", self.endTagForm),
922
+ ("p", self.endTagP),
923
+ (("dd", "dt", "li"), self.endTagListItem),
924
+ (headingElements, self.endTagHeading),
925
+ (("a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small",
926
+ "strike", "strong", "tt", "u"), self.endTagFormatting),
927
+ (("applet", "marquee", "object"), self.endTagAppletMarqueeObject),
928
+ ("br", self.endTagBr),
929
+ ])
930
+ self.endTagHandler.default = self.endTagOther
931
+
932
+ def isMatchingFormattingElement(self, node1, node2):
933
+ if node1.name != node2.name or node1.namespace != node2.namespace:
934
+ return False
935
+ elif len(node1.attributes) != len(node2.attributes):
936
+ return False
937
+ else:
938
+ attributes1 = sorted(node1.attributes.items())
939
+ attributes2 = sorted(node2.attributes.items())
940
+ for attr1, attr2 in zip(attributes1, attributes2):
941
+ if attr1 != attr2:
942
+ return False
943
+ return True
944
+
945
+ # helper
946
+ def addFormattingElement(self, token):
947
+ self.tree.insertElement(token)
948
+ element = self.tree.openElements[-1]
949
+
950
+ matchingElements = []
951
+ for node in self.tree.activeFormattingElements[::-1]:
952
+ if node is Marker:
953
+ break
954
+ elif self.isMatchingFormattingElement(node, element):
955
+ matchingElements.append(node)
956
+
957
+ assert len(matchingElements) <= 3
958
+ if len(matchingElements) == 3:
959
+ self.tree.activeFormattingElements.remove(matchingElements[-1])
960
+ self.tree.activeFormattingElements.append(element)
961
+
962
+ # the real deal
963
+ def processEOF(self):
964
+ allowed_elements = frozenset(("dd", "dt", "li", "p", "tbody", "td",
965
+ "tfoot", "th", "thead", "tr", "body",
966
+ "html"))
967
+ for node in self.tree.openElements[::-1]:
968
+ if node.name not in allowed_elements:
969
+ self.parser.parseError("expected-closing-tag-but-got-eof")
970
+ break
971
+ # Stop parsing
972
+
973
+ def processSpaceCharactersDropNewline(self, token):
974
+ # Sometimes (start of <pre>, <listing>, and <textarea> blocks) we
975
+ # want to drop leading newlines
976
+ data = token["data"]
977
+ self.processSpaceCharacters = self.processSpaceCharactersNonPre
978
+ if (data.startswith("\n") and
979
+ self.tree.openElements[-1].name in ("pre", "listing", "textarea")
980
+ and not self.tree.openElements[-1].hasContent()):
981
+ data = data[1:]
982
+ if data:
983
+ self.tree.reconstructActiveFormattingElements()
984
+ self.tree.insertText(data)
985
+
986
+ def processCharacters(self, token):
987
+ if token["data"] == "\u0000":
988
+ # The tokenizer should always emit null on its own
989
+ return
990
+ self.tree.reconstructActiveFormattingElements()
991
+ self.tree.insertText(token["data"])
992
+ # This must be bad for performance
993
+ if (self.parser.framesetOK and
994
+ any([char not in spaceCharacters
995
+ for char in token["data"]])):
996
+ self.parser.framesetOK = False
997
+
998
+ def processSpaceCharacters(self, token):
999
+ self.tree.reconstructActiveFormattingElements()
1000
+ self.tree.insertText(token["data"])
1001
+
1002
+ def startTagProcessInHead(self, token):
1003
+ return self.parser.phases["inHead"].processStartTag(token)
1004
+
1005
+ def startTagBody(self, token):
1006
+ self.parser.parseError("unexpected-start-tag", {"name": "body"})
1007
+ if (len(self.tree.openElements) == 1
1008
+ or self.tree.openElements[1].name != "body"):
1009
+ assert self.parser.innerHTML
1010
+ else:
1011
+ self.parser.framesetOK = False
1012
+ for attr, value in token["data"].items():
1013
+ if attr not in self.tree.openElements[1].attributes:
1014
+ self.tree.openElements[1].attributes[attr] = value
1015
+
1016
+ def startTagFrameset(self, token):
1017
+ self.parser.parseError("unexpected-start-tag", {"name": "frameset"})
1018
+ if (len(self.tree.openElements) == 1 or self.tree.openElements[1].name != "body"):
1019
+ assert self.parser.innerHTML
1020
+ elif not self.parser.framesetOK:
1021
+ pass
1022
+ else:
1023
+ if self.tree.openElements[1].parent:
1024
+ self.tree.openElements[1].parent.removeChild(self.tree.openElements[1])
1025
+ while self.tree.openElements[-1].name != "html":
1026
+ self.tree.openElements.pop()
1027
+ self.tree.insertElement(token)
1028
+ self.parser.phase = self.parser.phases["inFrameset"]
1029
+
1030
+ def startTagCloseP(self, token):
1031
+ if self.tree.elementInScope("p", variant="button"):
1032
+ self.endTagP(impliedTagToken("p"))
1033
+ self.tree.insertElement(token)
1034
+
1035
+ def startTagPreListing(self, token):
1036
+ if self.tree.elementInScope("p", variant="button"):
1037
+ self.endTagP(impliedTagToken("p"))
1038
+ self.tree.insertElement(token)
1039
+ self.parser.framesetOK = False
1040
+ self.processSpaceCharacters = self.processSpaceCharactersDropNewline
1041
+
1042
+ def startTagForm(self, token):
1043
+ if self.tree.formPointer:
1044
+ self.parser.parseError("unexpected-start-tag", {"name": "form"})
1045
+ else:
1046
+ if self.tree.elementInScope("p", variant="button"):
1047
+ self.endTagP(impliedTagToken("p"))
1048
+ self.tree.insertElement(token)
1049
+ self.tree.formPointer = self.tree.openElements[-1]
1050
+
1051
+ def startTagListItem(self, token):
1052
+ self.parser.framesetOK = False
1053
+
1054
+ stopNamesMap = {"li": ["li"],
1055
+ "dt": ["dt", "dd"],
1056
+ "dd": ["dt", "dd"]}
1057
+ stopNames = stopNamesMap[token["name"]]
1058
+ for node in reversed(self.tree.openElements):
1059
+ if node.name in stopNames:
1060
+ self.parser.phase.processEndTag(
1061
+ impliedTagToken(node.name, "EndTag"))
1062
+ break
1063
+ if (node.nameTuple in specialElements and
1064
+ node.name not in ("address", "div", "p")):
1065
+ break
1066
+
1067
+ if self.tree.elementInScope("p", variant="button"):
1068
+ self.parser.phase.processEndTag(
1069
+ impliedTagToken("p", "EndTag"))
1070
+
1071
+ self.tree.insertElement(token)
1072
+
1073
+ def startTagPlaintext(self, token):
1074
+ if self.tree.elementInScope("p", variant="button"):
1075
+ self.endTagP(impliedTagToken("p"))
1076
+ self.tree.insertElement(token)
1077
+ self.parser.tokenizer.state = self.parser.tokenizer.plaintextState
1078
+
1079
+ def startTagHeading(self, token):
1080
+ if self.tree.elementInScope("p", variant="button"):
1081
+ self.endTagP(impliedTagToken("p"))
1082
+ if self.tree.openElements[-1].name in headingElements:
1083
+ self.parser.parseError("unexpected-start-tag", {"name": token["name"]})
1084
+ self.tree.openElements.pop()
1085
+ self.tree.insertElement(token)
1086
+
1087
+ def startTagA(self, token):
1088
+ afeAElement = self.tree.elementInActiveFormattingElements("a")
1089
+ if afeAElement:
1090
+ self.parser.parseError("unexpected-start-tag-implies-end-tag",
1091
+ {"startName": "a", "endName": "a"})
1092
+ self.endTagFormatting(impliedTagToken("a"))
1093
+ if afeAElement in self.tree.openElements:
1094
+ self.tree.openElements.remove(afeAElement)
1095
+ if afeAElement in self.tree.activeFormattingElements:
1096
+ self.tree.activeFormattingElements.remove(afeAElement)
1097
+ self.tree.reconstructActiveFormattingElements()
1098
+ self.addFormattingElement(token)
1099
+
1100
+ def startTagFormatting(self, token):
1101
+ self.tree.reconstructActiveFormattingElements()
1102
+ self.addFormattingElement(token)
1103
+
1104
+ def startTagNobr(self, token):
1105
+ self.tree.reconstructActiveFormattingElements()
1106
+ if self.tree.elementInScope("nobr"):
1107
+ self.parser.parseError("unexpected-start-tag-implies-end-tag",
1108
+ {"startName": "nobr", "endName": "nobr"})
1109
+ self.processEndTag(impliedTagToken("nobr"))
1110
+ # XXX Need tests that trigger the following
1111
+ self.tree.reconstructActiveFormattingElements()
1112
+ self.addFormattingElement(token)
1113
+
1114
+ def startTagButton(self, token):
1115
+ if self.tree.elementInScope("button"):
1116
+ self.parser.parseError("unexpected-start-tag-implies-end-tag",
1117
+ {"startName": "button", "endName": "button"})
1118
+ self.processEndTag(impliedTagToken("button"))
1119
+ return token
1120
+ else:
1121
+ self.tree.reconstructActiveFormattingElements()
1122
+ self.tree.insertElement(token)
1123
+ self.parser.framesetOK = False
1124
+
1125
+ def startTagAppletMarqueeObject(self, token):
1126
+ self.tree.reconstructActiveFormattingElements()
1127
+ self.tree.insertElement(token)
1128
+ self.tree.activeFormattingElements.append(Marker)
1129
+ self.parser.framesetOK = False
1130
+
1131
+ def startTagXmp(self, token):
1132
+ if self.tree.elementInScope("p", variant="button"):
1133
+ self.endTagP(impliedTagToken("p"))
1134
+ self.tree.reconstructActiveFormattingElements()
1135
+ self.parser.framesetOK = False
1136
+ self.parser.parseRCDataRawtext(token, "RAWTEXT")
1137
+
1138
+ def startTagTable(self, token):
1139
+ if self.parser.compatMode != "quirks":
1140
+ if self.tree.elementInScope("p", variant="button"):
1141
+ self.processEndTag(impliedTagToken("p"))
1142
+ self.tree.insertElement(token)
1143
+ self.parser.framesetOK = False
1144
+ self.parser.phase = self.parser.phases["inTable"]
1145
+
1146
+ def startTagVoidFormatting(self, token):
1147
+ self.tree.reconstructActiveFormattingElements()
1148
+ self.tree.insertElement(token)
1149
+ self.tree.openElements.pop()
1150
+ token["selfClosingAcknowledged"] = True
1151
+ self.parser.framesetOK = False
1152
+
1153
+ def startTagInput(self, token):
1154
+ framesetOK = self.parser.framesetOK
1155
+ self.startTagVoidFormatting(token)
1156
+ if ("type" in token["data"] and
1157
+ token["data"]["type"].translate(asciiUpper2Lower) == "hidden"):
1158
+ # input type=hidden doesn't change framesetOK
1159
+ self.parser.framesetOK = framesetOK
1160
+
1161
+ def startTagParamSource(self, token):
1162
+ self.tree.insertElement(token)
1163
+ self.tree.openElements.pop()
1164
+ token["selfClosingAcknowledged"] = True
1165
+
1166
+ def startTagHr(self, token):
1167
+ if self.tree.elementInScope("p", variant="button"):
1168
+ self.endTagP(impliedTagToken("p"))
1169
+ self.tree.insertElement(token)
1170
+ self.tree.openElements.pop()
1171
+ token["selfClosingAcknowledged"] = True
1172
+ self.parser.framesetOK = False
1173
+
1174
+ def startTagImage(self, token):
1175
+ # No really...
1176
+ self.parser.parseError("unexpected-start-tag-treated-as",
1177
+ {"originalName": "image", "newName": "img"})
1178
+ self.processStartTag(impliedTagToken("img", "StartTag",
1179
+ attributes=token["data"],
1180
+ selfClosing=token["selfClosing"]))
1181
+
1182
+ def startTagIsIndex(self, token):
1183
+ self.parser.parseError("deprecated-tag", {"name": "isindex"})
1184
+ if self.tree.formPointer:
1185
+ return
1186
+ form_attrs = {}
1187
+ if "action" in token["data"]:
1188
+ form_attrs["action"] = token["data"]["action"]
1189
+ self.processStartTag(impliedTagToken("form", "StartTag",
1190
+ attributes=form_attrs))
1191
+ self.processStartTag(impliedTagToken("hr", "StartTag"))
1192
+ self.processStartTag(impliedTagToken("label", "StartTag"))
1193
+ # XXX Localization ...
1194
+ if "prompt" in token["data"]:
1195
+ prompt = token["data"]["prompt"]
1196
+ else:
1197
+ prompt = "This is a searchable index. Enter search keywords: "
1198
+ self.processCharacters(
1199
+ {"type": tokenTypes["Characters"], "data": prompt})
1200
+ attributes = token["data"].copy()
1201
+ if "action" in attributes:
1202
+ del attributes["action"]
1203
+ if "prompt" in attributes:
1204
+ del attributes["prompt"]
1205
+ attributes["name"] = "isindex"
1206
+ self.processStartTag(impliedTagToken("input", "StartTag",
1207
+ attributes=attributes,
1208
+ selfClosing=
1209
+ token["selfClosing"]))
1210
+ self.processEndTag(impliedTagToken("label"))
1211
+ self.processStartTag(impliedTagToken("hr", "StartTag"))
1212
+ self.processEndTag(impliedTagToken("form"))
1213
+
1214
+ def startTagTextarea(self, token):
1215
+ self.tree.insertElement(token)
1216
+ self.parser.tokenizer.state = self.parser.tokenizer.rcdataState
1217
+ self.processSpaceCharacters = self.processSpaceCharactersDropNewline
1218
+ self.parser.framesetOK = False
1219
+
1220
+ def startTagIFrame(self, token):
1221
+ self.parser.framesetOK = False
1222
+ self.startTagRawtext(token)
1223
+
1224
+ def startTagRawtext(self, token):
1225
+ """iframe, noembed noframes, noscript(if scripting enabled)"""
1226
+ self.parser.parseRCDataRawtext(token, "RAWTEXT")
1227
+
1228
+ def startTagOpt(self, token):
1229
+ if self.tree.openElements[-1].name == "option":
1230
+ self.parser.phase.processEndTag(impliedTagToken("option"))
1231
+ self.tree.reconstructActiveFormattingElements()
1232
+ self.parser.tree.insertElement(token)
1233
+
1234
+ def startTagSelect(self, token):
1235
+ self.tree.reconstructActiveFormattingElements()
1236
+ self.tree.insertElement(token)
1237
+ self.parser.framesetOK = False
1238
+ if self.parser.phase in (self.parser.phases["inTable"],
1239
+ self.parser.phases["inCaption"],
1240
+ self.parser.phases["inColumnGroup"],
1241
+ self.parser.phases["inTableBody"],
1242
+ self.parser.phases["inRow"],
1243
+ self.parser.phases["inCell"]):
1244
+ self.parser.phase = self.parser.phases["inSelectInTable"]
1245
+ else:
1246
+ self.parser.phase = self.parser.phases["inSelect"]
1247
+
1248
+ def startTagRpRt(self, token):
1249
+ if self.tree.elementInScope("ruby"):
1250
+ self.tree.generateImpliedEndTags()
1251
+ if self.tree.openElements[-1].name != "ruby":
1252
+ self.parser.parseError()
1253
+ self.tree.insertElement(token)
1254
+
1255
+ def startTagMath(self, token):
1256
+ self.tree.reconstructActiveFormattingElements()
1257
+ self.parser.adjustMathMLAttributes(token)
1258
+ self.parser.adjustForeignAttributes(token)
1259
+ token["namespace"] = namespaces["mathml"]
1260
+ self.tree.insertElement(token)
1261
+ # Need to get the parse error right for the case where the token
1262
+ # has a namespace not equal to the xmlns attribute
1263
+ if token["selfClosing"]:
1264
+ self.tree.openElements.pop()
1265
+ token["selfClosingAcknowledged"] = True
1266
+
1267
+ def startTagSvg(self, token):
1268
+ self.tree.reconstructActiveFormattingElements()
1269
+ self.parser.adjustSVGAttributes(token)
1270
+ self.parser.adjustForeignAttributes(token)
1271
+ token["namespace"] = namespaces["svg"]
1272
+ self.tree.insertElement(token)
1273
+ # Need to get the parse error right for the case where the token
1274
+ # has a namespace not equal to the xmlns attribute
1275
+ if token["selfClosing"]:
1276
+ self.tree.openElements.pop()
1277
+ token["selfClosingAcknowledged"] = True
1278
+
1279
+ def startTagMisplaced(self, token):
1280
+ """ Elements that should be children of other elements that have a
1281
+ different insertion mode; here they are ignored
1282
+ "caption", "col", "colgroup", "frame", "frameset", "head",
1283
+ "option", "optgroup", "tbody", "td", "tfoot", "th", "thead",
1284
+ "tr", "noscript"
1285
+ """
1286
+ self.parser.parseError("unexpected-start-tag-ignored", {"name": token["name"]})
1287
+
1288
+ def startTagOther(self, token):
1289
+ self.tree.reconstructActiveFormattingElements()
1290
+ self.tree.insertElement(token)
1291
+
1292
+ def endTagP(self, token):
1293
+ if not self.tree.elementInScope("p", variant="button"):
1294
+ self.startTagCloseP(impliedTagToken("p", "StartTag"))
1295
+ self.parser.parseError("unexpected-end-tag", {"name": "p"})
1296
+ self.endTagP(impliedTagToken("p", "EndTag"))
1297
+ else:
1298
+ self.tree.generateImpliedEndTags("p")
1299
+ if self.tree.openElements[-1].name != "p":
1300
+ self.parser.parseError("unexpected-end-tag", {"name": "p"})
1301
+ node = self.tree.openElements.pop()
1302
+ while node.name != "p":
1303
+ node = self.tree.openElements.pop()
1304
+
1305
+ def endTagBody(self, token):
1306
+ if not self.tree.elementInScope("body"):
1307
+ self.parser.parseError()
1308
+ return
1309
+ elif self.tree.openElements[-1].name != "body":
1310
+ for node in self.tree.openElements[2:]:
1311
+ if node.name not in frozenset(("dd", "dt", "li", "optgroup",
1312
+ "option", "p", "rp", "rt",
1313
+ "tbody", "td", "tfoot",
1314
+ "th", "thead", "tr", "body",
1315
+ "html")):
1316
+ # Not sure this is the correct name for the parse error
1317
+ self.parser.parseError(
1318
+ "expected-one-end-tag-but-got-another",
1319
+ {"expectedName": "body", "gotName": node.name})
1320
+ break
1321
+ self.parser.phase = self.parser.phases["afterBody"]
1322
+
1323
+ def endTagHtml(self, token):
1324
+ # We repeat the test for the body end tag token being ignored here
1325
+ if self.tree.elementInScope("body"):
1326
+ self.endTagBody(impliedTagToken("body"))
1327
+ return token
1328
+
1329
+ def endTagBlock(self, token):
1330
+ # Put us back in the right whitespace handling mode
1331
+ if token["name"] == "pre":
1332
+ self.processSpaceCharacters = self.processSpaceCharactersNonPre
1333
+ inScope = self.tree.elementInScope(token["name"])
1334
+ if inScope:
1335
+ self.tree.generateImpliedEndTags()
1336
+ if self.tree.openElements[-1].name != token["name"]:
1337
+ self.parser.parseError("end-tag-too-early", {"name": token["name"]})
1338
+ if inScope:
1339
+ node = self.tree.openElements.pop()
1340
+ while node.name != token["name"]:
1341
+ node = self.tree.openElements.pop()
1342
+
1343
+ def endTagForm(self, token):
1344
+ node = self.tree.formPointer
1345
+ self.tree.formPointer = None
1346
+ if node is None or not self.tree.elementInScope(node):
1347
+ self.parser.parseError("unexpected-end-tag",
1348
+ {"name": "form"})
1349
+ else:
1350
+ self.tree.generateImpliedEndTags()
1351
+ if self.tree.openElements[-1] != node:
1352
+ self.parser.parseError("end-tag-too-early-ignored",
1353
+ {"name": "form"})
1354
+ self.tree.openElements.remove(node)
1355
+
1356
+ def endTagListItem(self, token):
1357
+ if token["name"] == "li":
1358
+ variant = "list"
1359
+ else:
1360
+ variant = None
1361
+ if not self.tree.elementInScope(token["name"], variant=variant):
1362
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
1363
+ else:
1364
+ self.tree.generateImpliedEndTags(exclude=token["name"])
1365
+ if self.tree.openElements[-1].name != token["name"]:
1366
+ self.parser.parseError(
1367
+ "end-tag-too-early",
1368
+ {"name": token["name"]})
1369
+ node = self.tree.openElements.pop()
1370
+ while node.name != token["name"]:
1371
+ node = self.tree.openElements.pop()
1372
+
1373
+ def endTagHeading(self, token):
1374
+ for item in headingElements:
1375
+ if self.tree.elementInScope(item):
1376
+ self.tree.generateImpliedEndTags()
1377
+ break
1378
+ if self.tree.openElements[-1].name != token["name"]:
1379
+ self.parser.parseError("end-tag-too-early", {"name": token["name"]})
1380
+
1381
+ for item in headingElements:
1382
+ if self.tree.elementInScope(item):
1383
+ item = self.tree.openElements.pop()
1384
+ while item.name not in headingElements:
1385
+ item = self.tree.openElements.pop()
1386
+ break
1387
+
1388
+ def endTagFormatting(self, token):
1389
+ """The much-feared adoption agency algorithm"""
1390
+ # http://svn.whatwg.org/webapps/complete.html#adoptionAgency revision 7867
1391
+ # XXX Better parseError messages appreciated.
1392
+
1393
+ # Step 1
1394
+ outerLoopCounter = 0
1395
+
1396
+ # Step 2
1397
+ while outerLoopCounter < 8:
1398
+
1399
+ # Step 3
1400
+ outerLoopCounter += 1
1401
+
1402
+ # Step 4:
1403
+
1404
+ # Let the formatting element be the last element in
1405
+ # the list of active formatting elements that:
1406
+ # - is between the end of the list and the last scope
1407
+ # marker in the list, if any, or the start of the list
1408
+ # otherwise, and
1409
+ # - has the same tag name as the token.
1410
+ formattingElement = self.tree.elementInActiveFormattingElements(
1411
+ token["name"])
1412
+ if (not formattingElement or
1413
+ (formattingElement in self.tree.openElements and
1414
+ not self.tree.elementInScope(formattingElement.name))):
1415
+ # If there is no such node, then abort these steps
1416
+ # and instead act as described in the "any other
1417
+ # end tag" entry below.
1418
+ self.endTagOther(token)
1419
+ return
1420
+
1421
+ # Otherwise, if there is such a node, but that node is
1422
+ # not in the stack of open elements, then this is a
1423
+ # parse error; remove the element from the list, and
1424
+ # abort these steps.
1425
+ elif formattingElement not in self.tree.openElements:
1426
+ self.parser.parseError("adoption-agency-1.2", {"name": token["name"]})
1427
+ self.tree.activeFormattingElements.remove(formattingElement)
1428
+ return
1429
+
1430
+ # Otherwise, if there is such a node, and that node is
1431
+ # also in the stack of open elements, but the element
1432
+ # is not in scope, then this is a parse error; ignore
1433
+ # the token, and abort these steps.
1434
+ elif not self.tree.elementInScope(formattingElement.name):
1435
+ self.parser.parseError("adoption-agency-4.4", {"name": token["name"]})
1436
+ return
1437
+
1438
+ # Otherwise, there is a formatting element and that
1439
+ # element is in the stack and is in scope. If the
1440
+ # element is not the current node, this is a parse
1441
+ # error. In any case, proceed with the algorithm as
1442
+ # written in the following steps.
1443
+ else:
1444
+ if formattingElement != self.tree.openElements[-1]:
1445
+ self.parser.parseError("adoption-agency-1.3", {"name": token["name"]})
1446
+
1447
+ # Step 5:
1448
+
1449
+ # Let the furthest block be the topmost node in the
1450
+ # stack of open elements that is lower in the stack
1451
+ # than the formatting element, and is an element in
1452
+ # the special category. There might not be one.
1453
+ afeIndex = self.tree.openElements.index(formattingElement)
1454
+ furthestBlock = None
1455
+ for element in self.tree.openElements[afeIndex:]:
1456
+ if element.nameTuple in specialElements:
1457
+ furthestBlock = element
1458
+ break
1459
+
1460
+ # Step 6:
1461
+
1462
+ # If there is no furthest block, then the UA must
1463
+ # first pop all the nodes from the bottom of the stack
1464
+ # of open elements, from the current node up to and
1465
+ # including the formatting element, then remove the
1466
+ # formatting element from the list of active
1467
+ # formatting elements, and finally abort these steps.
1468
+ if furthestBlock is None:
1469
+ element = self.tree.openElements.pop()
1470
+ while element != formattingElement:
1471
+ element = self.tree.openElements.pop()
1472
+ self.tree.activeFormattingElements.remove(element)
1473
+ return
1474
+
1475
+ # Step 7
1476
+ commonAncestor = self.tree.openElements[afeIndex - 1]
1477
+
1478
+ # Step 8:
1479
+ # The bookmark is supposed to help us identify where to reinsert
1480
+ # nodes in step 15. We have to ensure that we reinsert nodes after
1481
+ # the node before the active formatting element. Note the bookmark
1482
+ # can move in step 9.7
1483
+ bookmark = self.tree.activeFormattingElements.index(formattingElement)
1484
+
1485
+ # Step 9
1486
+ lastNode = node = furthestBlock
1487
+ innerLoopCounter = 0
1488
+
1489
+ index = self.tree.openElements.index(node)
1490
+ while innerLoopCounter < 3:
1491
+ innerLoopCounter += 1
1492
+ # Node is element before node in open elements
1493
+ index -= 1
1494
+ node = self.tree.openElements[index]
1495
+ if node not in self.tree.activeFormattingElements:
1496
+ self.tree.openElements.remove(node)
1497
+ continue
1498
+ # Step 9.6
1499
+ if node == formattingElement:
1500
+ break
1501
+ # Step 9.7
1502
+ if lastNode == furthestBlock:
1503
+ bookmark = self.tree.activeFormattingElements.index(node) + 1
1504
+ # Step 9.8
1505
+ clone = node.cloneNode()
1506
+ # Replace node with clone
1507
+ self.tree.activeFormattingElements[
1508
+ self.tree.activeFormattingElements.index(node)] = clone
1509
+ self.tree.openElements[
1510
+ self.tree.openElements.index(node)] = clone
1511
+ node = clone
1512
+ # Step 9.9
1513
+ # Remove lastNode from its parents, if any
1514
+ if lastNode.parent:
1515
+ lastNode.parent.removeChild(lastNode)
1516
+ node.appendChild(lastNode)
1517
+ # Step 9.10
1518
+ lastNode = node
1519
+
1520
+ # Step 10
1521
+ # Foster parent lastNode if commonAncestor is a
1522
+ # table, tbody, tfoot, thead, or tr we need to foster
1523
+ # parent the lastNode
1524
+ if lastNode.parent:
1525
+ lastNode.parent.removeChild(lastNode)
1526
+
1527
+ if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")):
1528
+ parent, insertBefore = self.tree.getTableMisnestedNodePosition()
1529
+ parent.insertBefore(lastNode, insertBefore)
1530
+ else:
1531
+ commonAncestor.appendChild(lastNode)
1532
+
1533
+ # Step 11
1534
+ clone = formattingElement.cloneNode()
1535
+
1536
+ # Step 12
1537
+ furthestBlock.reparentChildren(clone)
1538
+
1539
+ # Step 13
1540
+ furthestBlock.appendChild(clone)
1541
+
1542
+ # Step 14
1543
+ self.tree.activeFormattingElements.remove(formattingElement)
1544
+ self.tree.activeFormattingElements.insert(bookmark, clone)
1545
+
1546
+ # Step 15
1547
+ self.tree.openElements.remove(formattingElement)
1548
+ self.tree.openElements.insert(
1549
+ self.tree.openElements.index(furthestBlock) + 1, clone)
1550
+
1551
+ def endTagAppletMarqueeObject(self, token):
1552
+ if self.tree.elementInScope(token["name"]):
1553
+ self.tree.generateImpliedEndTags()
1554
+ if self.tree.openElements[-1].name != token["name"]:
1555
+ self.parser.parseError("end-tag-too-early", {"name": token["name"]})
1556
+
1557
+ if self.tree.elementInScope(token["name"]):
1558
+ element = self.tree.openElements.pop()
1559
+ while element.name != token["name"]:
1560
+ element = self.tree.openElements.pop()
1561
+ self.tree.clearActiveFormattingElements()
1562
+
1563
+ def endTagBr(self, token):
1564
+ self.parser.parseError("unexpected-end-tag-treated-as",
1565
+ {"originalName": "br", "newName": "br element"})
1566
+ self.tree.reconstructActiveFormattingElements()
1567
+ self.tree.insertElement(impliedTagToken("br", "StartTag"))
1568
+ self.tree.openElements.pop()
1569
+
1570
+ def endTagOther(self, token):
1571
+ for node in self.tree.openElements[::-1]:
1572
+ if node.name == token["name"]:
1573
+ self.tree.generateImpliedEndTags(exclude=token["name"])
1574
+ if self.tree.openElements[-1].name != token["name"]:
1575
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
1576
+ while self.tree.openElements.pop() != node:
1577
+ pass
1578
+ break
1579
+ else:
1580
+ if node.nameTuple in specialElements:
1581
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
1582
+ break
1583
+
1584
+ class TextPhase(Phase):
1585
+ def __init__(self, parser, tree):
1586
+ Phase.__init__(self, parser, tree)
1587
+ self.startTagHandler = utils.MethodDispatcher([])
1588
+ self.startTagHandler.default = self.startTagOther
1589
+ self.endTagHandler = utils.MethodDispatcher([
1590
+ ("script", self.endTagScript)])
1591
+ self.endTagHandler.default = self.endTagOther
1592
+
1593
+ def processCharacters(self, token):
1594
+ self.tree.insertText(token["data"])
1595
+
1596
+ def processEOF(self):
1597
+ self.parser.parseError("expected-named-closing-tag-but-got-eof",
1598
+ {"name": self.tree.openElements[-1].name})
1599
+ self.tree.openElements.pop()
1600
+ self.parser.phase = self.parser.originalPhase
1601
+ return True
1602
+
1603
+ def startTagOther(self, token):
1604
+ assert False, "Tried to process start tag %s in RCDATA/RAWTEXT mode" % token['name']
1605
+
1606
+ def endTagScript(self, token):
1607
+ node = self.tree.openElements.pop()
1608
+ assert node.name == "script"
1609
+ self.parser.phase = self.parser.originalPhase
1610
+ # The rest of this method is all stuff that only happens if
1611
+ # document.write works
1612
+
1613
+ def endTagOther(self, token):
1614
+ self.tree.openElements.pop()
1615
+ self.parser.phase = self.parser.originalPhase
1616
+
1617
+ class InTablePhase(Phase):
1618
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-table
1619
+ def __init__(self, parser, tree):
1620
+ Phase.__init__(self, parser, tree)
1621
+ self.startTagHandler = utils.MethodDispatcher([
1622
+ ("html", self.startTagHtml),
1623
+ ("caption", self.startTagCaption),
1624
+ ("colgroup", self.startTagColgroup),
1625
+ ("col", self.startTagCol),
1626
+ (("tbody", "tfoot", "thead"), self.startTagRowGroup),
1627
+ (("td", "th", "tr"), self.startTagImplyTbody),
1628
+ ("table", self.startTagTable),
1629
+ (("style", "script"), self.startTagStyleScript),
1630
+ ("input", self.startTagInput),
1631
+ ("form", self.startTagForm)
1632
+ ])
1633
+ self.startTagHandler.default = self.startTagOther
1634
+
1635
+ self.endTagHandler = utils.MethodDispatcher([
1636
+ ("table", self.endTagTable),
1637
+ (("body", "caption", "col", "colgroup", "html", "tbody", "td",
1638
+ "tfoot", "th", "thead", "tr"), self.endTagIgnore)
1639
+ ])
1640
+ self.endTagHandler.default = self.endTagOther
1641
+
1642
+ # helper methods
1643
+ def clearStackToTableContext(self):
1644
+ # "clear the stack back to a table context"
1645
+ while self.tree.openElements[-1].name not in ("table", "html"):
1646
+ # self.parser.parseError("unexpected-implied-end-tag-in-table",
1647
+ # {"name": self.tree.openElements[-1].name})
1648
+ self.tree.openElements.pop()
1649
+ # When the current node is <html> it's an innerHTML case
1650
+
1651
+ # processing methods
1652
+ def processEOF(self):
1653
+ if self.tree.openElements[-1].name != "html":
1654
+ self.parser.parseError("eof-in-table")
1655
+ else:
1656
+ assert self.parser.innerHTML
1657
+ # Stop parsing
1658
+
1659
+ def processSpaceCharacters(self, token):
1660
+ originalPhase = self.parser.phase
1661
+ self.parser.phase = self.parser.phases["inTableText"]
1662
+ self.parser.phase.originalPhase = originalPhase
1663
+ self.parser.phase.processSpaceCharacters(token)
1664
+
1665
+ def processCharacters(self, token):
1666
+ originalPhase = self.parser.phase
1667
+ self.parser.phase = self.parser.phases["inTableText"]
1668
+ self.parser.phase.originalPhase = originalPhase
1669
+ self.parser.phase.processCharacters(token)
1670
+
1671
+ def insertText(self, token):
1672
+ # If we get here there must be at least one non-whitespace character
1673
+ # Do the table magic!
1674
+ self.tree.insertFromTable = True
1675
+ self.parser.phases["inBody"].processCharacters(token)
1676
+ self.tree.insertFromTable = False
1677
+
1678
+ def startTagCaption(self, token):
1679
+ self.clearStackToTableContext()
1680
+ self.tree.activeFormattingElements.append(Marker)
1681
+ self.tree.insertElement(token)
1682
+ self.parser.phase = self.parser.phases["inCaption"]
1683
+
1684
+ def startTagColgroup(self, token):
1685
+ self.clearStackToTableContext()
1686
+ self.tree.insertElement(token)
1687
+ self.parser.phase = self.parser.phases["inColumnGroup"]
1688
+
1689
+ def startTagCol(self, token):
1690
+ self.startTagColgroup(impliedTagToken("colgroup", "StartTag"))
1691
+ return token
1692
+
1693
+ def startTagRowGroup(self, token):
1694
+ self.clearStackToTableContext()
1695
+ self.tree.insertElement(token)
1696
+ self.parser.phase = self.parser.phases["inTableBody"]
1697
+
1698
+ def startTagImplyTbody(self, token):
1699
+ self.startTagRowGroup(impliedTagToken("tbody", "StartTag"))
1700
+ return token
1701
+
1702
+ def startTagTable(self, token):
1703
+ self.parser.parseError("unexpected-start-tag-implies-end-tag",
1704
+ {"startName": "table", "endName": "table"})
1705
+ self.parser.phase.processEndTag(impliedTagToken("table"))
1706
+ if not self.parser.innerHTML:
1707
+ return token
1708
+
1709
+ def startTagStyleScript(self, token):
1710
+ return self.parser.phases["inHead"].processStartTag(token)
1711
+
1712
+ def startTagInput(self, token):
1713
+ if ("type" in token["data"] and
1714
+ token["data"]["type"].translate(asciiUpper2Lower) == "hidden"):
1715
+ self.parser.parseError("unexpected-hidden-input-in-table")
1716
+ self.tree.insertElement(token)
1717
+ # XXX associate with form
1718
+ self.tree.openElements.pop()
1719
+ else:
1720
+ self.startTagOther(token)
1721
+
1722
+ def startTagForm(self, token):
1723
+ self.parser.parseError("unexpected-form-in-table")
1724
+ if self.tree.formPointer is None:
1725
+ self.tree.insertElement(token)
1726
+ self.tree.formPointer = self.tree.openElements[-1]
1727
+ self.tree.openElements.pop()
1728
+
1729
+ def startTagOther(self, token):
1730
+ self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]})
1731
+ # Do the table magic!
1732
+ self.tree.insertFromTable = True
1733
+ self.parser.phases["inBody"].processStartTag(token)
1734
+ self.tree.insertFromTable = False
1735
+
1736
+ def endTagTable(self, token):
1737
+ if self.tree.elementInScope("table", variant="table"):
1738
+ self.tree.generateImpliedEndTags()
1739
+ if self.tree.openElements[-1].name != "table":
1740
+ self.parser.parseError("end-tag-too-early-named",
1741
+ {"gotName": "table",
1742
+ "expectedName": self.tree.openElements[-1].name})
1743
+ while self.tree.openElements[-1].name != "table":
1744
+ self.tree.openElements.pop()
1745
+ self.tree.openElements.pop()
1746
+ self.parser.resetInsertionMode()
1747
+ else:
1748
+ # innerHTML case
1749
+ assert self.parser.innerHTML
1750
+ self.parser.parseError()
1751
+
1752
+ def endTagIgnore(self, token):
1753
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
1754
+
1755
+ def endTagOther(self, token):
1756
+ self.parser.parseError("unexpected-end-tag-implies-table-voodoo", {"name": token["name"]})
1757
+ # Do the table magic!
1758
+ self.tree.insertFromTable = True
1759
+ self.parser.phases["inBody"].processEndTag(token)
1760
+ self.tree.insertFromTable = False
1761
+
1762
+ class InTableTextPhase(Phase):
1763
+ def __init__(self, parser, tree):
1764
+ Phase.__init__(self, parser, tree)
1765
+ self.originalPhase = None
1766
+ self.characterTokens = []
1767
+
1768
+ def flushCharacters(self):
1769
+ data = "".join([item["data"] for item in self.characterTokens])
1770
+ if any([item not in spaceCharacters for item in data]):
1771
+ token = {"type": tokenTypes["Characters"], "data": data}
1772
+ self.parser.phases["inTable"].insertText(token)
1773
+ elif data:
1774
+ self.tree.insertText(data)
1775
+ self.characterTokens = []
1776
+
1777
+ def processComment(self, token):
1778
+ self.flushCharacters()
1779
+ self.parser.phase = self.originalPhase
1780
+ return token
1781
+
1782
+ def processEOF(self):
1783
+ self.flushCharacters()
1784
+ self.parser.phase = self.originalPhase
1785
+ return True
1786
+
1787
+ def processCharacters(self, token):
1788
+ if token["data"] == "\u0000":
1789
+ return
1790
+ self.characterTokens.append(token)
1791
+
1792
+ def processSpaceCharacters(self, token):
1793
+ # pretty sure we should never reach here
1794
+ self.characterTokens.append(token)
1795
+ # assert False
1796
+
1797
+ def processStartTag(self, token):
1798
+ self.flushCharacters()
1799
+ self.parser.phase = self.originalPhase
1800
+ return token
1801
+
1802
+ def processEndTag(self, token):
1803
+ self.flushCharacters()
1804
+ self.parser.phase = self.originalPhase
1805
+ return token
1806
+
1807
+ class InCaptionPhase(Phase):
1808
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-caption
1809
+ def __init__(self, parser, tree):
1810
+ Phase.__init__(self, parser, tree)
1811
+
1812
+ self.startTagHandler = utils.MethodDispatcher([
1813
+ ("html", self.startTagHtml),
1814
+ (("caption", "col", "colgroup", "tbody", "td", "tfoot", "th",
1815
+ "thead", "tr"), self.startTagTableElement)
1816
+ ])
1817
+ self.startTagHandler.default = self.startTagOther
1818
+
1819
+ self.endTagHandler = utils.MethodDispatcher([
1820
+ ("caption", self.endTagCaption),
1821
+ ("table", self.endTagTable),
1822
+ (("body", "col", "colgroup", "html", "tbody", "td", "tfoot", "th",
1823
+ "thead", "tr"), self.endTagIgnore)
1824
+ ])
1825
+ self.endTagHandler.default = self.endTagOther
1826
+
1827
+ def ignoreEndTagCaption(self):
1828
+ return not self.tree.elementInScope("caption", variant="table")
1829
+
1830
+ def processEOF(self):
1831
+ self.parser.phases["inBody"].processEOF()
1832
+
1833
+ def processCharacters(self, token):
1834
+ return self.parser.phases["inBody"].processCharacters(token)
1835
+
1836
+ def startTagTableElement(self, token):
1837
+ self.parser.parseError()
1838
+ # XXX Have to duplicate logic here to find out if the tag is ignored
1839
+ ignoreEndTag = self.ignoreEndTagCaption()
1840
+ self.parser.phase.processEndTag(impliedTagToken("caption"))
1841
+ if not ignoreEndTag:
1842
+ return token
1843
+
1844
+ def startTagOther(self, token):
1845
+ return self.parser.phases["inBody"].processStartTag(token)
1846
+
1847
+ def endTagCaption(self, token):
1848
+ if not self.ignoreEndTagCaption():
1849
+ # AT this code is quite similar to endTagTable in "InTable"
1850
+ self.tree.generateImpliedEndTags()
1851
+ if self.tree.openElements[-1].name != "caption":
1852
+ self.parser.parseError("expected-one-end-tag-but-got-another",
1853
+ {"gotName": "caption",
1854
+ "expectedName": self.tree.openElements[-1].name})
1855
+ while self.tree.openElements[-1].name != "caption":
1856
+ self.tree.openElements.pop()
1857
+ self.tree.openElements.pop()
1858
+ self.tree.clearActiveFormattingElements()
1859
+ self.parser.phase = self.parser.phases["inTable"]
1860
+ else:
1861
+ # innerHTML case
1862
+ assert self.parser.innerHTML
1863
+ self.parser.parseError()
1864
+
1865
+ def endTagTable(self, token):
1866
+ self.parser.parseError()
1867
+ ignoreEndTag = self.ignoreEndTagCaption()
1868
+ self.parser.phase.processEndTag(impliedTagToken("caption"))
1869
+ if not ignoreEndTag:
1870
+ return token
1871
+
1872
+ def endTagIgnore(self, token):
1873
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
1874
+
1875
+ def endTagOther(self, token):
1876
+ return self.parser.phases["inBody"].processEndTag(token)
1877
+
1878
+ class InColumnGroupPhase(Phase):
1879
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-column
1880
+
1881
+ def __init__(self, parser, tree):
1882
+ Phase.__init__(self, parser, tree)
1883
+
1884
+ self.startTagHandler = utils.MethodDispatcher([
1885
+ ("html", self.startTagHtml),
1886
+ ("col", self.startTagCol)
1887
+ ])
1888
+ self.startTagHandler.default = self.startTagOther
1889
+
1890
+ self.endTagHandler = utils.MethodDispatcher([
1891
+ ("colgroup", self.endTagColgroup),
1892
+ ("col", self.endTagCol)
1893
+ ])
1894
+ self.endTagHandler.default = self.endTagOther
1895
+
1896
+ def ignoreEndTagColgroup(self):
1897
+ return self.tree.openElements[-1].name == "html"
1898
+
1899
+ def processEOF(self):
1900
+ if self.tree.openElements[-1].name == "html":
1901
+ assert self.parser.innerHTML
1902
+ return
1903
+ else:
1904
+ ignoreEndTag = self.ignoreEndTagColgroup()
1905
+ self.endTagColgroup(impliedTagToken("colgroup"))
1906
+ if not ignoreEndTag:
1907
+ return True
1908
+
1909
+ def processCharacters(self, token):
1910
+ ignoreEndTag = self.ignoreEndTagColgroup()
1911
+ self.endTagColgroup(impliedTagToken("colgroup"))
1912
+ if not ignoreEndTag:
1913
+ return token
1914
+
1915
+ def startTagCol(self, token):
1916
+ self.tree.insertElement(token)
1917
+ self.tree.openElements.pop()
1918
+
1919
+ def startTagOther(self, token):
1920
+ ignoreEndTag = self.ignoreEndTagColgroup()
1921
+ self.endTagColgroup(impliedTagToken("colgroup"))
1922
+ if not ignoreEndTag:
1923
+ return token
1924
+
1925
+ def endTagColgroup(self, token):
1926
+ if self.ignoreEndTagColgroup():
1927
+ # innerHTML case
1928
+ assert self.parser.innerHTML
1929
+ self.parser.parseError()
1930
+ else:
1931
+ self.tree.openElements.pop()
1932
+ self.parser.phase = self.parser.phases["inTable"]
1933
+
1934
+ def endTagCol(self, token):
1935
+ self.parser.parseError("no-end-tag", {"name": "col"})
1936
+
1937
+ def endTagOther(self, token):
1938
+ ignoreEndTag = self.ignoreEndTagColgroup()
1939
+ self.endTagColgroup(impliedTagToken("colgroup"))
1940
+ if not ignoreEndTag:
1941
+ return token
1942
+
1943
+ class InTableBodyPhase(Phase):
1944
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-table0
1945
+ def __init__(self, parser, tree):
1946
+ Phase.__init__(self, parser, tree)
1947
+ self.startTagHandler = utils.MethodDispatcher([
1948
+ ("html", self.startTagHtml),
1949
+ ("tr", self.startTagTr),
1950
+ (("td", "th"), self.startTagTableCell),
1951
+ (("caption", "col", "colgroup", "tbody", "tfoot", "thead"),
1952
+ self.startTagTableOther)
1953
+ ])
1954
+ self.startTagHandler.default = self.startTagOther
1955
+
1956
+ self.endTagHandler = utils.MethodDispatcher([
1957
+ (("tbody", "tfoot", "thead"), self.endTagTableRowGroup),
1958
+ ("table", self.endTagTable),
1959
+ (("body", "caption", "col", "colgroup", "html", "td", "th",
1960
+ "tr"), self.endTagIgnore)
1961
+ ])
1962
+ self.endTagHandler.default = self.endTagOther
1963
+
1964
+ # helper methods
1965
+ def clearStackToTableBodyContext(self):
1966
+ while self.tree.openElements[-1].name not in ("tbody", "tfoot",
1967
+ "thead", "html"):
1968
+ # self.parser.parseError("unexpected-implied-end-tag-in-table",
1969
+ # {"name": self.tree.openElements[-1].name})
1970
+ self.tree.openElements.pop()
1971
+ if self.tree.openElements[-1].name == "html":
1972
+ assert self.parser.innerHTML
1973
+
1974
+ # the rest
1975
+ def processEOF(self):
1976
+ self.parser.phases["inTable"].processEOF()
1977
+
1978
+ def processSpaceCharacters(self, token):
1979
+ return self.parser.phases["inTable"].processSpaceCharacters(token)
1980
+
1981
+ def processCharacters(self, token):
1982
+ return self.parser.phases["inTable"].processCharacters(token)
1983
+
1984
+ def startTagTr(self, token):
1985
+ self.clearStackToTableBodyContext()
1986
+ self.tree.insertElement(token)
1987
+ self.parser.phase = self.parser.phases["inRow"]
1988
+
1989
+ def startTagTableCell(self, token):
1990
+ self.parser.parseError("unexpected-cell-in-table-body",
1991
+ {"name": token["name"]})
1992
+ self.startTagTr(impliedTagToken("tr", "StartTag"))
1993
+ return token
1994
+
1995
+ def startTagTableOther(self, token):
1996
+ # XXX AT Any ideas on how to share this with endTagTable?
1997
+ if (self.tree.elementInScope("tbody", variant="table") or
1998
+ self.tree.elementInScope("thead", variant="table") or
1999
+ self.tree.elementInScope("tfoot", variant="table")):
2000
+ self.clearStackToTableBodyContext()
2001
+ self.endTagTableRowGroup(
2002
+ impliedTagToken(self.tree.openElements[-1].name))
2003
+ return token
2004
+ else:
2005
+ # innerHTML case
2006
+ assert self.parser.innerHTML
2007
+ self.parser.parseError()
2008
+
2009
+ def startTagOther(self, token):
2010
+ return self.parser.phases["inTable"].processStartTag(token)
2011
+
2012
+ def endTagTableRowGroup(self, token):
2013
+ if self.tree.elementInScope(token["name"], variant="table"):
2014
+ self.clearStackToTableBodyContext()
2015
+ self.tree.openElements.pop()
2016
+ self.parser.phase = self.parser.phases["inTable"]
2017
+ else:
2018
+ self.parser.parseError("unexpected-end-tag-in-table-body",
2019
+ {"name": token["name"]})
2020
+
2021
+ def endTagTable(self, token):
2022
+ if (self.tree.elementInScope("tbody", variant="table") or
2023
+ self.tree.elementInScope("thead", variant="table") or
2024
+ self.tree.elementInScope("tfoot", variant="table")):
2025
+ self.clearStackToTableBodyContext()
2026
+ self.endTagTableRowGroup(
2027
+ impliedTagToken(self.tree.openElements[-1].name))
2028
+ return token
2029
+ else:
2030
+ # innerHTML case
2031
+ assert self.parser.innerHTML
2032
+ self.parser.parseError()
2033
+
2034
+ def endTagIgnore(self, token):
2035
+ self.parser.parseError("unexpected-end-tag-in-table-body",
2036
+ {"name": token["name"]})
2037
+
2038
+ def endTagOther(self, token):
2039
+ return self.parser.phases["inTable"].processEndTag(token)
2040
+
2041
+ class InRowPhase(Phase):
2042
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-row
2043
+ def __init__(self, parser, tree):
2044
+ Phase.__init__(self, parser, tree)
2045
+ self.startTagHandler = utils.MethodDispatcher([
2046
+ ("html", self.startTagHtml),
2047
+ (("td", "th"), self.startTagTableCell),
2048
+ (("caption", "col", "colgroup", "tbody", "tfoot", "thead",
2049
+ "tr"), self.startTagTableOther)
2050
+ ])
2051
+ self.startTagHandler.default = self.startTagOther
2052
+
2053
+ self.endTagHandler = utils.MethodDispatcher([
2054
+ ("tr", self.endTagTr),
2055
+ ("table", self.endTagTable),
2056
+ (("tbody", "tfoot", "thead"), self.endTagTableRowGroup),
2057
+ (("body", "caption", "col", "colgroup", "html", "td", "th"),
2058
+ self.endTagIgnore)
2059
+ ])
2060
+ self.endTagHandler.default = self.endTagOther
2061
+
2062
+ # helper methods (XXX unify this with other table helper methods)
2063
+ def clearStackToTableRowContext(self):
2064
+ while self.tree.openElements[-1].name not in ("tr", "html"):
2065
+ self.parser.parseError("unexpected-implied-end-tag-in-table-row",
2066
+ {"name": self.tree.openElements[-1].name})
2067
+ self.tree.openElements.pop()
2068
+
2069
+ def ignoreEndTagTr(self):
2070
+ return not self.tree.elementInScope("tr", variant="table")
2071
+
2072
+ # the rest
2073
+ def processEOF(self):
2074
+ self.parser.phases["inTable"].processEOF()
2075
+
2076
+ def processSpaceCharacters(self, token):
2077
+ return self.parser.phases["inTable"].processSpaceCharacters(token)
2078
+
2079
+ def processCharacters(self, token):
2080
+ return self.parser.phases["inTable"].processCharacters(token)
2081
+
2082
+ def startTagTableCell(self, token):
2083
+ self.clearStackToTableRowContext()
2084
+ self.tree.insertElement(token)
2085
+ self.parser.phase = self.parser.phases["inCell"]
2086
+ self.tree.activeFormattingElements.append(Marker)
2087
+
2088
+ def startTagTableOther(self, token):
2089
+ ignoreEndTag = self.ignoreEndTagTr()
2090
+ self.endTagTr(impliedTagToken("tr"))
2091
+ # XXX how are we sure it's always ignored in the innerHTML case?
2092
+ if not ignoreEndTag:
2093
+ return token
2094
+
2095
+ def startTagOther(self, token):
2096
+ return self.parser.phases["inTable"].processStartTag(token)
2097
+
2098
+ def endTagTr(self, token):
2099
+ if not self.ignoreEndTagTr():
2100
+ self.clearStackToTableRowContext()
2101
+ self.tree.openElements.pop()
2102
+ self.parser.phase = self.parser.phases["inTableBody"]
2103
+ else:
2104
+ # innerHTML case
2105
+ assert self.parser.innerHTML
2106
+ self.parser.parseError()
2107
+
2108
+ def endTagTable(self, token):
2109
+ ignoreEndTag = self.ignoreEndTagTr()
2110
+ self.endTagTr(impliedTagToken("tr"))
2111
+ # Reprocess the current tag if the tr end tag was not ignored
2112
+ # XXX how are we sure it's always ignored in the innerHTML case?
2113
+ if not ignoreEndTag:
2114
+ return token
2115
+
2116
+ def endTagTableRowGroup(self, token):
2117
+ if self.tree.elementInScope(token["name"], variant="table"):
2118
+ self.endTagTr(impliedTagToken("tr"))
2119
+ return token
2120
+ else:
2121
+ self.parser.parseError()
2122
+
2123
+ def endTagIgnore(self, token):
2124
+ self.parser.parseError("unexpected-end-tag-in-table-row",
2125
+ {"name": token["name"]})
2126
+
2127
+ def endTagOther(self, token):
2128
+ return self.parser.phases["inTable"].processEndTag(token)
2129
+
2130
+ class InCellPhase(Phase):
2131
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-cell
2132
+ def __init__(self, parser, tree):
2133
+ Phase.__init__(self, parser, tree)
2134
+ self.startTagHandler = utils.MethodDispatcher([
2135
+ ("html", self.startTagHtml),
2136
+ (("caption", "col", "colgroup", "tbody", "td", "tfoot", "th",
2137
+ "thead", "tr"), self.startTagTableOther)
2138
+ ])
2139
+ self.startTagHandler.default = self.startTagOther
2140
+
2141
+ self.endTagHandler = utils.MethodDispatcher([
2142
+ (("td", "th"), self.endTagTableCell),
2143
+ (("body", "caption", "col", "colgroup", "html"), self.endTagIgnore),
2144
+ (("table", "tbody", "tfoot", "thead", "tr"), self.endTagImply)
2145
+ ])
2146
+ self.endTagHandler.default = self.endTagOther
2147
+
2148
+ # helper
2149
+ def closeCell(self):
2150
+ if self.tree.elementInScope("td", variant="table"):
2151
+ self.endTagTableCell(impliedTagToken("td"))
2152
+ elif self.tree.elementInScope("th", variant="table"):
2153
+ self.endTagTableCell(impliedTagToken("th"))
2154
+
2155
+ # the rest
2156
+ def processEOF(self):
2157
+ self.parser.phases["inBody"].processEOF()
2158
+
2159
+ def processCharacters(self, token):
2160
+ return self.parser.phases["inBody"].processCharacters(token)
2161
+
2162
+ def startTagTableOther(self, token):
2163
+ if (self.tree.elementInScope("td", variant="table") or
2164
+ self.tree.elementInScope("th", variant="table")):
2165
+ self.closeCell()
2166
+ return token
2167
+ else:
2168
+ # innerHTML case
2169
+ assert self.parser.innerHTML
2170
+ self.parser.parseError()
2171
+
2172
+ def startTagOther(self, token):
2173
+ return self.parser.phases["inBody"].processStartTag(token)
2174
+
2175
+ def endTagTableCell(self, token):
2176
+ if self.tree.elementInScope(token["name"], variant="table"):
2177
+ self.tree.generateImpliedEndTags(token["name"])
2178
+ if self.tree.openElements[-1].name != token["name"]:
2179
+ self.parser.parseError("unexpected-cell-end-tag",
2180
+ {"name": token["name"]})
2181
+ while True:
2182
+ node = self.tree.openElements.pop()
2183
+ if node.name == token["name"]:
2184
+ break
2185
+ else:
2186
+ self.tree.openElements.pop()
2187
+ self.tree.clearActiveFormattingElements()
2188
+ self.parser.phase = self.parser.phases["inRow"]
2189
+ else:
2190
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
2191
+
2192
+ def endTagIgnore(self, token):
2193
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
2194
+
2195
+ def endTagImply(self, token):
2196
+ if self.tree.elementInScope(token["name"], variant="table"):
2197
+ self.closeCell()
2198
+ return token
2199
+ else:
2200
+ # sometimes innerHTML case
2201
+ self.parser.parseError()
2202
+
2203
+ def endTagOther(self, token):
2204
+ return self.parser.phases["inBody"].processEndTag(token)
2205
+
2206
+ class InSelectPhase(Phase):
2207
+ def __init__(self, parser, tree):
2208
+ Phase.__init__(self, parser, tree)
2209
+
2210
+ self.startTagHandler = utils.MethodDispatcher([
2211
+ ("html", self.startTagHtml),
2212
+ ("option", self.startTagOption),
2213
+ ("optgroup", self.startTagOptgroup),
2214
+ ("select", self.startTagSelect),
2215
+ (("input", "keygen", "textarea"), self.startTagInput),
2216
+ ("script", self.startTagScript)
2217
+ ])
2218
+ self.startTagHandler.default = self.startTagOther
2219
+
2220
+ self.endTagHandler = utils.MethodDispatcher([
2221
+ ("option", self.endTagOption),
2222
+ ("optgroup", self.endTagOptgroup),
2223
+ ("select", self.endTagSelect)
2224
+ ])
2225
+ self.endTagHandler.default = self.endTagOther
2226
+
2227
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-select
2228
+ def processEOF(self):
2229
+ if self.tree.openElements[-1].name != "html":
2230
+ self.parser.parseError("eof-in-select")
2231
+ else:
2232
+ assert self.parser.innerHTML
2233
+
2234
+ def processCharacters(self, token):
2235
+ if token["data"] == "\u0000":
2236
+ return
2237
+ self.tree.insertText(token["data"])
2238
+
2239
+ def startTagOption(self, token):
2240
+ # We need to imply </option> if <option> is the current node.
2241
+ if self.tree.openElements[-1].name == "option":
2242
+ self.tree.openElements.pop()
2243
+ self.tree.insertElement(token)
2244
+
2245
+ def startTagOptgroup(self, token):
2246
+ if self.tree.openElements[-1].name == "option":
2247
+ self.tree.openElements.pop()
2248
+ if self.tree.openElements[-1].name == "optgroup":
2249
+ self.tree.openElements.pop()
2250
+ self.tree.insertElement(token)
2251
+
2252
+ def startTagSelect(self, token):
2253
+ self.parser.parseError("unexpected-select-in-select")
2254
+ self.endTagSelect(impliedTagToken("select"))
2255
+
2256
+ def startTagInput(self, token):
2257
+ self.parser.parseError("unexpected-input-in-select")
2258
+ if self.tree.elementInScope("select", variant="select"):
2259
+ self.endTagSelect(impliedTagToken("select"))
2260
+ return token
2261
+ else:
2262
+ assert self.parser.innerHTML
2263
+
2264
+ def startTagScript(self, token):
2265
+ return self.parser.phases["inHead"].processStartTag(token)
2266
+
2267
+ def startTagOther(self, token):
2268
+ self.parser.parseError("unexpected-start-tag-in-select",
2269
+ {"name": token["name"]})
2270
+
2271
+ def endTagOption(self, token):
2272
+ if self.tree.openElements[-1].name == "option":
2273
+ self.tree.openElements.pop()
2274
+ else:
2275
+ self.parser.parseError("unexpected-end-tag-in-select",
2276
+ {"name": "option"})
2277
+
2278
+ def endTagOptgroup(self, token):
2279
+ # </optgroup> implicitly closes <option>
2280
+ if (self.tree.openElements[-1].name == "option" and
2281
+ self.tree.openElements[-2].name == "optgroup"):
2282
+ self.tree.openElements.pop()
2283
+ # It also closes </optgroup>
2284
+ if self.tree.openElements[-1].name == "optgroup":
2285
+ self.tree.openElements.pop()
2286
+ # But nothing else
2287
+ else:
2288
+ self.parser.parseError("unexpected-end-tag-in-select",
2289
+ {"name": "optgroup"})
2290
+
2291
+ def endTagSelect(self, token):
2292
+ if self.tree.elementInScope("select", variant="select"):
2293
+ node = self.tree.openElements.pop()
2294
+ while node.name != "select":
2295
+ node = self.tree.openElements.pop()
2296
+ self.parser.resetInsertionMode()
2297
+ else:
2298
+ # innerHTML case
2299
+ assert self.parser.innerHTML
2300
+ self.parser.parseError()
2301
+
2302
+ def endTagOther(self, token):
2303
+ self.parser.parseError("unexpected-end-tag-in-select",
2304
+ {"name": token["name"]})
2305
+
2306
+ class InSelectInTablePhase(Phase):
2307
+ def __init__(self, parser, tree):
2308
+ Phase.__init__(self, parser, tree)
2309
+
2310
+ self.startTagHandler = utils.MethodDispatcher([
2311
+ (("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"),
2312
+ self.startTagTable)
2313
+ ])
2314
+ self.startTagHandler.default = self.startTagOther
2315
+
2316
+ self.endTagHandler = utils.MethodDispatcher([
2317
+ (("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"),
2318
+ self.endTagTable)
2319
+ ])
2320
+ self.endTagHandler.default = self.endTagOther
2321
+
2322
+ def processEOF(self):
2323
+ self.parser.phases["inSelect"].processEOF()
2324
+
2325
+ def processCharacters(self, token):
2326
+ return self.parser.phases["inSelect"].processCharacters(token)
2327
+
2328
+ def startTagTable(self, token):
2329
+ self.parser.parseError("unexpected-table-element-start-tag-in-select-in-table", {"name": token["name"]})
2330
+ self.endTagOther(impliedTagToken("select"))
2331
+ return token
2332
+
2333
+ def startTagOther(self, token):
2334
+ return self.parser.phases["inSelect"].processStartTag(token)
2335
+
2336
+ def endTagTable(self, token):
2337
+ self.parser.parseError("unexpected-table-element-end-tag-in-select-in-table", {"name": token["name"]})
2338
+ if self.tree.elementInScope(token["name"], variant="table"):
2339
+ self.endTagOther(impliedTagToken("select"))
2340
+ return token
2341
+
2342
+ def endTagOther(self, token):
2343
+ return self.parser.phases["inSelect"].processEndTag(token)
2344
+
2345
+ class InForeignContentPhase(Phase):
2346
+ breakoutElements = frozenset(["b", "big", "blockquote", "body", "br",
2347
+ "center", "code", "dd", "div", "dl", "dt",
2348
+ "em", "embed", "h1", "h2", "h3",
2349
+ "h4", "h5", "h6", "head", "hr", "i", "img",
2350
+ "li", "listing", "menu", "meta", "nobr",
2351
+ "ol", "p", "pre", "ruby", "s", "small",
2352
+ "span", "strong", "strike", "sub", "sup",
2353
+ "table", "tt", "u", "ul", "var"])
2354
+
2355
+ def __init__(self, parser, tree):
2356
+ Phase.__init__(self, parser, tree)
2357
+
2358
+ def adjustSVGTagNames(self, token):
2359
+ replacements = {"altglyph": "altGlyph",
2360
+ "altglyphdef": "altGlyphDef",
2361
+ "altglyphitem": "altGlyphItem",
2362
+ "animatecolor": "animateColor",
2363
+ "animatemotion": "animateMotion",
2364
+ "animatetransform": "animateTransform",
2365
+ "clippath": "clipPath",
2366
+ "feblend": "feBlend",
2367
+ "fecolormatrix": "feColorMatrix",
2368
+ "fecomponenttransfer": "feComponentTransfer",
2369
+ "fecomposite": "feComposite",
2370
+ "feconvolvematrix": "feConvolveMatrix",
2371
+ "fediffuselighting": "feDiffuseLighting",
2372
+ "fedisplacementmap": "feDisplacementMap",
2373
+ "fedistantlight": "feDistantLight",
2374
+ "feflood": "feFlood",
2375
+ "fefunca": "feFuncA",
2376
+ "fefuncb": "feFuncB",
2377
+ "fefuncg": "feFuncG",
2378
+ "fefuncr": "feFuncR",
2379
+ "fegaussianblur": "feGaussianBlur",
2380
+ "feimage": "feImage",
2381
+ "femerge": "feMerge",
2382
+ "femergenode": "feMergeNode",
2383
+ "femorphology": "feMorphology",
2384
+ "feoffset": "feOffset",
2385
+ "fepointlight": "fePointLight",
2386
+ "fespecularlighting": "feSpecularLighting",
2387
+ "fespotlight": "feSpotLight",
2388
+ "fetile": "feTile",
2389
+ "feturbulence": "feTurbulence",
2390
+ "foreignobject": "foreignObject",
2391
+ "glyphref": "glyphRef",
2392
+ "lineargradient": "linearGradient",
2393
+ "radialgradient": "radialGradient",
2394
+ "textpath": "textPath"}
2395
+
2396
+ if token["name"] in replacements:
2397
+ token["name"] = replacements[token["name"]]
2398
+
2399
+ def processCharacters(self, token):
2400
+ if token["data"] == "\u0000":
2401
+ token["data"] = "\uFFFD"
2402
+ elif (self.parser.framesetOK and
2403
+ any(char not in spaceCharacters for char in token["data"])):
2404
+ self.parser.framesetOK = False
2405
+ Phase.processCharacters(self, token)
2406
+
2407
+ def processStartTag(self, token):
2408
+ currentNode = self.tree.openElements[-1]
2409
+ if (token["name"] in self.breakoutElements or
2410
+ (token["name"] == "font" and
2411
+ set(token["data"].keys()) & set(["color", "face", "size"]))):
2412
+ self.parser.parseError("unexpected-html-element-in-foreign-content",
2413
+ {"name": token["name"]})
2414
+ while (self.tree.openElements[-1].namespace !=
2415
+ self.tree.defaultNamespace and
2416
+ not self.parser.isHTMLIntegrationPoint(self.tree.openElements[-1]) and
2417
+ not self.parser.isMathMLTextIntegrationPoint(self.tree.openElements[-1])):
2418
+ self.tree.openElements.pop()
2419
+ return token
2420
+
2421
+ else:
2422
+ if currentNode.namespace == namespaces["mathml"]:
2423
+ self.parser.adjustMathMLAttributes(token)
2424
+ elif currentNode.namespace == namespaces["svg"]:
2425
+ self.adjustSVGTagNames(token)
2426
+ self.parser.adjustSVGAttributes(token)
2427
+ self.parser.adjustForeignAttributes(token)
2428
+ token["namespace"] = currentNode.namespace
2429
+ self.tree.insertElement(token)
2430
+ if token["selfClosing"]:
2431
+ self.tree.openElements.pop()
2432
+ token["selfClosingAcknowledged"] = True
2433
+
2434
+ def processEndTag(self, token):
2435
+ nodeIndex = len(self.tree.openElements) - 1
2436
+ node = self.tree.openElements[-1]
2437
+ if node.name != token["name"]:
2438
+ self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
2439
+
2440
+ while True:
2441
+ if node.name.translate(asciiUpper2Lower) == token["name"]:
2442
+ # XXX this isn't in the spec but it seems necessary
2443
+ if self.parser.phase == self.parser.phases["inTableText"]:
2444
+ self.parser.phase.flushCharacters()
2445
+ self.parser.phase = self.parser.phase.originalPhase
2446
+ while self.tree.openElements.pop() != node:
2447
+ assert self.tree.openElements
2448
+ new_token = None
2449
+ break
2450
+ nodeIndex -= 1
2451
+
2452
+ node = self.tree.openElements[nodeIndex]
2453
+ if node.namespace != self.tree.defaultNamespace:
2454
+ continue
2455
+ else:
2456
+ new_token = self.parser.phase.processEndTag(token)
2457
+ break
2458
+ return new_token
2459
+
2460
+ class AfterBodyPhase(Phase):
2461
+ def __init__(self, parser, tree):
2462
+ Phase.__init__(self, parser, tree)
2463
+
2464
+ self.startTagHandler = utils.MethodDispatcher([
2465
+ ("html", self.startTagHtml)
2466
+ ])
2467
+ self.startTagHandler.default = self.startTagOther
2468
+
2469
+ self.endTagHandler = utils.MethodDispatcher([("html", self.endTagHtml)])
2470
+ self.endTagHandler.default = self.endTagOther
2471
+
2472
+ def processEOF(self):
2473
+ # Stop parsing
2474
+ pass
2475
+
2476
+ def processComment(self, token):
2477
+ # This is needed because data is to be appended to the <html> element
2478
+ # here and not to whatever is currently open.
2479
+ self.tree.insertComment(token, self.tree.openElements[0])
2480
+
2481
+ def processCharacters(self, token):
2482
+ self.parser.parseError("unexpected-char-after-body")
2483
+ self.parser.phase = self.parser.phases["inBody"]
2484
+ return token
2485
+
2486
+ def startTagHtml(self, token):
2487
+ return self.parser.phases["inBody"].processStartTag(token)
2488
+
2489
+ def startTagOther(self, token):
2490
+ self.parser.parseError("unexpected-start-tag-after-body",
2491
+ {"name": token["name"]})
2492
+ self.parser.phase = self.parser.phases["inBody"]
2493
+ return token
2494
+
2495
+ def endTagHtml(self, name):
2496
+ if self.parser.innerHTML:
2497
+ self.parser.parseError("unexpected-end-tag-after-body-innerhtml")
2498
+ else:
2499
+ self.parser.phase = self.parser.phases["afterAfterBody"]
2500
+
2501
+ def endTagOther(self, token):
2502
+ self.parser.parseError("unexpected-end-tag-after-body",
2503
+ {"name": token["name"]})
2504
+ self.parser.phase = self.parser.phases["inBody"]
2505
+ return token
2506
+
2507
+ class InFramesetPhase(Phase):
2508
+ # http://www.whatwg.org/specs/web-apps/current-work/#in-frameset
2509
+ def __init__(self, parser, tree):
2510
+ Phase.__init__(self, parser, tree)
2511
+
2512
+ self.startTagHandler = utils.MethodDispatcher([
2513
+ ("html", self.startTagHtml),
2514
+ ("frameset", self.startTagFrameset),
2515
+ ("frame", self.startTagFrame),
2516
+ ("noframes", self.startTagNoframes)
2517
+ ])
2518
+ self.startTagHandler.default = self.startTagOther
2519
+
2520
+ self.endTagHandler = utils.MethodDispatcher([
2521
+ ("frameset", self.endTagFrameset)
2522
+ ])
2523
+ self.endTagHandler.default = self.endTagOther
2524
+
2525
+ def processEOF(self):
2526
+ if self.tree.openElements[-1].name != "html":
2527
+ self.parser.parseError("eof-in-frameset")
2528
+ else:
2529
+ assert self.parser.innerHTML
2530
+
2531
+ def processCharacters(self, token):
2532
+ self.parser.parseError("unexpected-char-in-frameset")
2533
+
2534
+ def startTagFrameset(self, token):
2535
+ self.tree.insertElement(token)
2536
+
2537
+ def startTagFrame(self, token):
2538
+ self.tree.insertElement(token)
2539
+ self.tree.openElements.pop()
2540
+
2541
+ def startTagNoframes(self, token):
2542
+ return self.parser.phases["inBody"].processStartTag(token)
2543
+
2544
+ def startTagOther(self, token):
2545
+ self.parser.parseError("unexpected-start-tag-in-frameset",
2546
+ {"name": token["name"]})
2547
+
2548
+ def endTagFrameset(self, token):
2549
+ if self.tree.openElements[-1].name == "html":
2550
+ # innerHTML case
2551
+ self.parser.parseError("unexpected-frameset-in-frameset-innerhtml")
2552
+ else:
2553
+ self.tree.openElements.pop()
2554
+ if (not self.parser.innerHTML and
2555
+ self.tree.openElements[-1].name != "frameset"):
2556
+ # If we're not in innerHTML mode and the the current node is not a
2557
+ # "frameset" element (anymore) then switch.
2558
+ self.parser.phase = self.parser.phases["afterFrameset"]
2559
+
2560
+ def endTagOther(self, token):
2561
+ self.parser.parseError("unexpected-end-tag-in-frameset",
2562
+ {"name": token["name"]})
2563
+
2564
+ class AfterFramesetPhase(Phase):
2565
+ # http://www.whatwg.org/specs/web-apps/current-work/#after3
2566
+ def __init__(self, parser, tree):
2567
+ Phase.__init__(self, parser, tree)
2568
+
2569
+ self.startTagHandler = utils.MethodDispatcher([
2570
+ ("html", self.startTagHtml),
2571
+ ("noframes", self.startTagNoframes)
2572
+ ])
2573
+ self.startTagHandler.default = self.startTagOther
2574
+
2575
+ self.endTagHandler = utils.MethodDispatcher([
2576
+ ("html", self.endTagHtml)
2577
+ ])
2578
+ self.endTagHandler.default = self.endTagOther
2579
+
2580
+ def processEOF(self):
2581
+ # Stop parsing
2582
+ pass
2583
+
2584
+ def processCharacters(self, token):
2585
+ self.parser.parseError("unexpected-char-after-frameset")
2586
+
2587
+ def startTagNoframes(self, token):
2588
+ return self.parser.phases["inHead"].processStartTag(token)
2589
+
2590
+ def startTagOther(self, token):
2591
+ self.parser.parseError("unexpected-start-tag-after-frameset",
2592
+ {"name": token["name"]})
2593
+
2594
+ def endTagHtml(self, token):
2595
+ self.parser.phase = self.parser.phases["afterAfterFrameset"]
2596
+
2597
+ def endTagOther(self, token):
2598
+ self.parser.parseError("unexpected-end-tag-after-frameset",
2599
+ {"name": token["name"]})
2600
+
2601
+ class AfterAfterBodyPhase(Phase):
2602
+ def __init__(self, parser, tree):
2603
+ Phase.__init__(self, parser, tree)
2604
+
2605
+ self.startTagHandler = utils.MethodDispatcher([
2606
+ ("html", self.startTagHtml)
2607
+ ])
2608
+ self.startTagHandler.default = self.startTagOther
2609
+
2610
+ def processEOF(self):
2611
+ pass
2612
+
2613
+ def processComment(self, token):
2614
+ self.tree.insertComment(token, self.tree.document)
2615
+
2616
+ def processSpaceCharacters(self, token):
2617
+ return self.parser.phases["inBody"].processSpaceCharacters(token)
2618
+
2619
+ def processCharacters(self, token):
2620
+ self.parser.parseError("expected-eof-but-got-char")
2621
+ self.parser.phase = self.parser.phases["inBody"]
2622
+ return token
2623
+
2624
+ def startTagHtml(self, token):
2625
+ return self.parser.phases["inBody"].processStartTag(token)
2626
+
2627
+ def startTagOther(self, token):
2628
+ self.parser.parseError("expected-eof-but-got-start-tag",
2629
+ {"name": token["name"]})
2630
+ self.parser.phase = self.parser.phases["inBody"]
2631
+ return token
2632
+
2633
+ def processEndTag(self, token):
2634
+ self.parser.parseError("expected-eof-but-got-end-tag",
2635
+ {"name": token["name"]})
2636
+ self.parser.phase = self.parser.phases["inBody"]
2637
+ return token
2638
+
2639
+ class AfterAfterFramesetPhase(Phase):
2640
+ def __init__(self, parser, tree):
2641
+ Phase.__init__(self, parser, tree)
2642
+
2643
+ self.startTagHandler = utils.MethodDispatcher([
2644
+ ("html", self.startTagHtml),
2645
+ ("noframes", self.startTagNoFrames)
2646
+ ])
2647
+ self.startTagHandler.default = self.startTagOther
2648
+
2649
+ def processEOF(self):
2650
+ pass
2651
+
2652
+ def processComment(self, token):
2653
+ self.tree.insertComment(token, self.tree.document)
2654
+
2655
+ def processSpaceCharacters(self, token):
2656
+ return self.parser.phases["inBody"].processSpaceCharacters(token)
2657
+
2658
+ def processCharacters(self, token):
2659
+ self.parser.parseError("expected-eof-but-got-char")
2660
+
2661
+ def startTagHtml(self, token):
2662
+ return self.parser.phases["inBody"].processStartTag(token)
2663
+
2664
+ def startTagNoFrames(self, token):
2665
+ return self.parser.phases["inHead"].processStartTag(token)
2666
+
2667
+ def startTagOther(self, token):
2668
+ self.parser.parseError("expected-eof-but-got-start-tag",
2669
+ {"name": token["name"]})
2670
+
2671
+ def processEndTag(self, token):
2672
+ self.parser.parseError("expected-eof-but-got-end-tag",
2673
+ {"name": token["name"]})
2674
+
2675
+ return {
2676
+ "initial": InitialPhase,
2677
+ "beforeHtml": BeforeHtmlPhase,
2678
+ "beforeHead": BeforeHeadPhase,
2679
+ "inHead": InHeadPhase,
2680
+ # XXX "inHeadNoscript": InHeadNoScriptPhase,
2681
+ "afterHead": AfterHeadPhase,
2682
+ "inBody": InBodyPhase,
2683
+ "text": TextPhase,
2684
+ "inTable": InTablePhase,
2685
+ "inTableText": InTableTextPhase,
2686
+ "inCaption": InCaptionPhase,
2687
+ "inColumnGroup": InColumnGroupPhase,
2688
+ "inTableBody": InTableBodyPhase,
2689
+ "inRow": InRowPhase,
2690
+ "inCell": InCellPhase,
2691
+ "inSelect": InSelectPhase,
2692
+ "inSelectInTable": InSelectInTablePhase,
2693
+ "inForeignContent": InForeignContentPhase,
2694
+ "afterBody": AfterBodyPhase,
2695
+ "inFrameset": InFramesetPhase,
2696
+ "afterFrameset": AfterFramesetPhase,
2697
+ "afterAfterBody": AfterAfterBodyPhase,
2698
+ "afterAfterFrameset": AfterAfterFramesetPhase,
2699
+ # XXX after after frameset
2700
+ }
2701
+
2702
+
2703
+ def impliedTagToken(name, type="EndTag", attributes=None,
2704
+ selfClosing=False):
2705
+ if attributes is None:
2706
+ attributes = {}
2707
+ return {"type": tokenTypes[type], "name": name, "data": attributes,
2708
+ "selfClosing": selfClosing}
2709
+
2710
+
2711
+ class ParseError(Exception):
2712
+ """Error in parsed document"""
2713
+ pass