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,2947 @@
1
+ """Header value parser implementing various email-related RFC parsing rules.
2
+
3
+ The parsing methods defined in this module implement various email related
4
+ parsing rules. Principal among them is RFC 5322, which is the followon
5
+ to RFC 2822 and primarily a clarification of the former. It also implements
6
+ RFC 2047 encoded word decoding.
7
+
8
+ RFC 5322 goes to considerable trouble to maintain backward compatibility with
9
+ RFC 822 in the parse phase, while cleaning up the structure on the generation
10
+ phase. This parser supports correct RFC 5322 generation by tagging white space
11
+ as folding white space only when folding is allowed in the non-obsolete rule
12
+ sets. Actually, the parser is even more generous when accepting input than RFC
13
+ 5322 mandates, following the spirit of Postel's Law, which RFC 5322 encourages.
14
+ Where possible deviations from the standard are annotated on the 'defects'
15
+ attribute of tokens that deviate.
16
+
17
+ The general structure of the parser follows RFC 5322, and uses its terminology
18
+ where there is a direct correspondence. Where the implementation requires a
19
+ somewhat different structure than that used by the formal grammar, new terms
20
+ that mimic the closest existing terms are used. Thus, it really helps to have
21
+ a copy of RFC 5322 handy when studying this code.
22
+
23
+ Input to the parser is a string that has already been unfolded according to
24
+ RFC 5322 rules. According to the RFC this unfolding is the very first step, and
25
+ this parser leaves the unfolding step to a higher level message parser, which
26
+ will have already detected the line breaks that need unfolding while
27
+ determining the beginning and end of each header.
28
+
29
+ The output of the parser is a TokenList object, which is a list subclass. A
30
+ TokenList is a recursive data structure. The terminal nodes of the structure
31
+ are Terminal objects, which are subclasses of str. These do not correspond
32
+ directly to terminal objects in the formal grammar, but are instead more
33
+ practical higher level combinations of true terminals.
34
+
35
+ All TokenList and Terminal objects have a 'value' attribute, which produces the
36
+ semantically meaningful value of that part of the parse subtree. The value of
37
+ all whitespace tokens (no matter how many sub-tokens they may contain) is a
38
+ single space, as per the RFC rules. This includes 'CFWS', which is herein
39
+ included in the general class of whitespace tokens. There is one exception to
40
+ the rule that whitespace tokens are collapsed into single spaces in values: in
41
+ the value of a 'bare-quoted-string' (a quoted-string with no leading or
42
+ trailing whitespace), any whitespace that appeared between the quotation marks
43
+ is preserved in the returned value. Note that in all Terminal strings quoted
44
+ pairs are turned into their unquoted values.
45
+
46
+ All TokenList and Terminal objects also have a string value, which attempts to
47
+ be a "canonical" representation of the RFC-compliant form of the substring that
48
+ produced the parsed subtree, including minimal use of quoted pair quoting.
49
+ Whitespace runs are not collapsed.
50
+
51
+ Comment tokens also have a 'content' attribute providing the string found
52
+ between the parens (including any nested comments) with whitespace preserved.
53
+
54
+ All TokenList and Terminal objects have a 'defects' attribute which is a
55
+ possibly empty list all of the defects found while creating the token. Defects
56
+ may appear on any token in the tree, and a composite list of all defects in the
57
+ subtree is available through the 'all_defects' attribute of any node. (For
58
+ Terminal notes x.defects == x.all_defects.)
59
+
60
+ Each object in a parse tree is called a 'token', and each has a 'token_type'
61
+ attribute that gives the name from the RFC 5322 grammar that it represents.
62
+ Not all RFC 5322 nodes are produced, and there is one non-RFC 5322 node that
63
+ may be produced: 'ptext'. A 'ptext' is a string of printable ascii characters.
64
+ It is returned in place of lists of (ctext/quoted-pair) and
65
+ (qtext/quoted-pair).
66
+
67
+ XXX: provide complete list of token types.
68
+ """
69
+
70
+ import re
71
+ import urllib # For urllib.parse.unquote
72
+ from string import hexdigits
73
+ from collections import OrderedDict
74
+ from email import _encoded_words as _ew
75
+ from email import errors
76
+ from email import utils
77
+
78
+ #
79
+ # Useful constants and functions
80
+ #
81
+
82
+ WSP = set(' \t')
83
+ CFWS_LEADER = WSP | set('(')
84
+ SPECIALS = set(r'()<>@,:;.\"[]')
85
+ ATOM_ENDS = SPECIALS | WSP
86
+ DOT_ATOM_ENDS = ATOM_ENDS - set('.')
87
+ # '.', '"', and '(' do not end phrases in order to support obs-phrase
88
+ PHRASE_ENDS = SPECIALS - set('."(')
89
+ TSPECIALS = (SPECIALS | set('/?=')) - set('.')
90
+ TOKEN_ENDS = TSPECIALS | WSP
91
+ ASPECIALS = TSPECIALS | set("*'%")
92
+ ATTRIBUTE_ENDS = ASPECIALS | WSP
93
+ EXTENDED_ATTRIBUTE_ENDS = ATTRIBUTE_ENDS - set('%')
94
+
95
+ def quote_string(value):
96
+ return '"'+str(value).replace('\\', '\\\\').replace('"', r'\"')+'"'
97
+
98
+ #
99
+ # Accumulator for header folding
100
+ #
101
+
102
+ class _Folded:
103
+
104
+ def __init__(self, maxlen, policy):
105
+ self.maxlen = maxlen
106
+ self.policy = policy
107
+ self.lastlen = 0
108
+ self.stickyspace = None
109
+ self.firstline = True
110
+ self.done = []
111
+ self.current = []
112
+
113
+ def newline(self):
114
+ self.done.extend(self.current)
115
+ self.done.append(self.policy.linesep)
116
+ self.current.clear()
117
+ self.lastlen = 0
118
+
119
+ def finalize(self):
120
+ if self.current:
121
+ self.newline()
122
+
123
+ def __str__(self):
124
+ return ''.join(self.done)
125
+
126
+ def append(self, stoken):
127
+ self.current.append(stoken)
128
+
129
+ def append_if_fits(self, token, stoken=None):
130
+ if stoken is None:
131
+ stoken = str(token)
132
+ l = len(stoken)
133
+ if self.stickyspace is not None:
134
+ stickyspace_len = len(self.stickyspace)
135
+ if self.lastlen + stickyspace_len + l <= self.maxlen:
136
+ self.current.append(self.stickyspace)
137
+ self.lastlen += stickyspace_len
138
+ self.current.append(stoken)
139
+ self.lastlen += l
140
+ self.stickyspace = None
141
+ self.firstline = False
142
+ return True
143
+ if token.has_fws:
144
+ ws = token.pop_leading_fws()
145
+ if ws is not None:
146
+ self.stickyspace += str(ws)
147
+ stickyspace_len += len(ws)
148
+ token._fold(self)
149
+ return True
150
+ if stickyspace_len and l + 1 <= self.maxlen:
151
+ margin = self.maxlen - l
152
+ if 0 < margin < stickyspace_len:
153
+ trim = stickyspace_len - margin
154
+ self.current.append(self.stickyspace[:trim])
155
+ self.stickyspace = self.stickyspace[trim:]
156
+ stickyspace_len = trim
157
+ self.newline()
158
+ self.current.append(self.stickyspace)
159
+ self.current.append(stoken)
160
+ self.lastlen = l + stickyspace_len
161
+ self.stickyspace = None
162
+ self.firstline = False
163
+ return True
164
+ if not self.firstline:
165
+ self.newline()
166
+ self.current.append(self.stickyspace)
167
+ self.current.append(stoken)
168
+ self.stickyspace = None
169
+ self.firstline = False
170
+ return True
171
+ if self.lastlen + l <= self.maxlen:
172
+ self.current.append(stoken)
173
+ self.lastlen += l
174
+ return True
175
+ if l < self.maxlen:
176
+ self.newline()
177
+ self.current.append(stoken)
178
+ self.lastlen = l
179
+ return True
180
+ return False
181
+
182
+ #
183
+ # TokenList and its subclasses
184
+ #
185
+
186
+ class TokenList(list):
187
+
188
+ token_type = None
189
+
190
+ def __init__(self, *args, **kw):
191
+ super().__init__(*args, **kw)
192
+ self.defects = []
193
+
194
+ def __str__(self):
195
+ return ''.join(str(x) for x in self)
196
+
197
+ def __repr__(self):
198
+ return '{}({})'.format(self.__class__.__name__,
199
+ super().__repr__())
200
+
201
+ @property
202
+ def value(self):
203
+ return ''.join(x.value for x in self if x.value)
204
+
205
+ @property
206
+ def all_defects(self):
207
+ return sum((x.all_defects for x in self), self.defects)
208
+
209
+ #
210
+ # Folding API
211
+ #
212
+ # parts():
213
+ #
214
+ # return a list of objects that constitute the "higher level syntactic
215
+ # objects" specified by the RFC as the best places to fold a header line.
216
+ # The returned objects must include leading folding white space, even if
217
+ # this means mutating the underlying parse tree of the object. Each object
218
+ # is only responsible for returning *its* parts, and should not drill down
219
+ # to any lower level except as required to meet the leading folding white
220
+ # space constraint.
221
+ #
222
+ # _fold(folded):
223
+ #
224
+ # folded: the result accumulator. This is an instance of _Folded.
225
+ # (XXX: I haven't finished factoring this out yet, the folding code
226
+ # pretty much uses this as a state object.) When the folded.current
227
+ # contains as much text as will fit, the _fold method should call
228
+ # folded.newline.
229
+ # folded.lastlen: the current length of the test stored in folded.current.
230
+ # folded.maxlen: The maximum number of characters that may appear on a
231
+ # folded line. Differs from the policy setting in that "no limit" is
232
+ # represented by +inf, which means it can be used in the trivially
233
+ # logical fashion in comparisons.
234
+ #
235
+ # Currently no subclasses implement parts, and I think this will remain
236
+ # true. A subclass only needs to implement _fold when the generic version
237
+ # isn't sufficient. _fold will need to be implemented primarily when it is
238
+ # possible for encoded words to appear in the specialized token-list, since
239
+ # there is no generic algorithm that can know where exactly the encoded
240
+ # words are allowed. A _fold implementation is responsible for filling
241
+ # lines in the same general way that the top level _fold does. It may, and
242
+ # should, call the _fold method of sub-objects in a similar fashion to that
243
+ # of the top level _fold.
244
+ #
245
+ # XXX: I'm hoping it will be possible to factor the existing code further
246
+ # to reduce redundancy and make the logic clearer.
247
+
248
+ @property
249
+ def parts(self):
250
+ klass = self.__class__
251
+ this = []
252
+ for token in self:
253
+ if token.startswith_fws():
254
+ if this:
255
+ yield this[0] if len(this)==1 else klass(this)
256
+ this.clear()
257
+ end_ws = token.pop_trailing_ws()
258
+ this.append(token)
259
+ if end_ws:
260
+ yield klass(this)
261
+ this = [end_ws]
262
+ if this:
263
+ yield this[0] if len(this)==1 else klass(this)
264
+
265
+ def startswith_fws(self):
266
+ return self[0].startswith_fws()
267
+
268
+ def pop_leading_fws(self):
269
+ if self[0].token_type == 'fws':
270
+ return self.pop(0)
271
+ return self[0].pop_leading_fws()
272
+
273
+ def pop_trailing_ws(self):
274
+ if self[-1].token_type == 'cfws':
275
+ return self.pop(-1)
276
+ return self[-1].pop_trailing_ws()
277
+
278
+ @property
279
+ def has_fws(self):
280
+ for part in self:
281
+ if part.has_fws:
282
+ return True
283
+ return False
284
+
285
+ def has_leading_comment(self):
286
+ return self[0].has_leading_comment()
287
+
288
+ @property
289
+ def comments(self):
290
+ comments = []
291
+ for token in self:
292
+ comments.extend(token.comments)
293
+ return comments
294
+
295
+ def fold(self, *, policy):
296
+ # max_line_length 0/None means no limit, ie: infinitely long.
297
+ maxlen = policy.max_line_length or float("+inf")
298
+ folded = _Folded(maxlen, policy)
299
+ self._fold(folded)
300
+ folded.finalize()
301
+ return str(folded)
302
+
303
+ def as_encoded_word(self, charset):
304
+ # This works only for things returned by 'parts', which include
305
+ # the leading fws, if any, that should be used.
306
+ res = []
307
+ ws = self.pop_leading_fws()
308
+ if ws:
309
+ res.append(ws)
310
+ trailer = self.pop(-1) if self[-1].token_type=='fws' else ''
311
+ res.append(_ew.encode(str(self), charset))
312
+ res.append(trailer)
313
+ return ''.join(res)
314
+
315
+ def cte_encode(self, charset, policy):
316
+ res = []
317
+ for part in self:
318
+ res.append(part.cte_encode(charset, policy))
319
+ return ''.join(res)
320
+
321
+ def _fold(self, folded):
322
+ for part in self.parts:
323
+ tstr = str(part)
324
+ tlen = len(tstr)
325
+ try:
326
+ str(part).encode('us-ascii')
327
+ except UnicodeEncodeError:
328
+ if any(isinstance(x, errors.UndecodableBytesDefect)
329
+ for x in part.all_defects):
330
+ charset = 'unknown-8bit'
331
+ else:
332
+ # XXX: this should be a policy setting
333
+ charset = 'utf-8'
334
+ tstr = part.cte_encode(charset, folded.policy)
335
+ tlen = len(tstr)
336
+ if folded.append_if_fits(part, tstr):
337
+ continue
338
+ # Peel off the leading whitespace if any and make it sticky, to
339
+ # avoid infinite recursion.
340
+ ws = part.pop_leading_fws()
341
+ if ws is not None:
342
+ # Peel off the leading whitespace and make it sticky, to
343
+ # avoid infinite recursion.
344
+ folded.stickyspace = str(part.pop(0))
345
+ if folded.append_if_fits(part):
346
+ continue
347
+ if part.has_fws:
348
+ part._fold(folded)
349
+ continue
350
+ # There are no fold points in this one; it is too long for a single
351
+ # line and can't be split...we just have to put it on its own line.
352
+ folded.append(tstr)
353
+ folded.newline()
354
+
355
+ def pprint(self, indent=''):
356
+ print('\n'.join(self._pp(indent='')))
357
+
358
+ def ppstr(self, indent=''):
359
+ return '\n'.join(self._pp(indent=''))
360
+
361
+ def _pp(self, indent=''):
362
+ yield '{}{}/{}('.format(
363
+ indent,
364
+ self.__class__.__name__,
365
+ self.token_type)
366
+ for token in self:
367
+ if not hasattr(token, '_pp'):
368
+ yield (indent + ' !! invalid element in token '
369
+ 'list: {!r}'.format(token))
370
+ else:
371
+ yield from token._pp(indent+' ')
372
+ if self.defects:
373
+ extra = ' Defects: {}'.format(self.defects)
374
+ else:
375
+ extra = ''
376
+ yield '{}){}'.format(indent, extra)
377
+
378
+
379
+ class WhiteSpaceTokenList(TokenList):
380
+
381
+ @property
382
+ def value(self):
383
+ return ' '
384
+
385
+ @property
386
+ def comments(self):
387
+ return [x.content for x in self if x.token_type=='comment']
388
+
389
+
390
+ class UnstructuredTokenList(TokenList):
391
+
392
+ token_type = 'unstructured'
393
+
394
+ def _fold(self, folded):
395
+ last_ew = None
396
+ for part in self.parts:
397
+ tstr = str(part)
398
+ is_ew = False
399
+ try:
400
+ str(part).encode('us-ascii')
401
+ except UnicodeEncodeError:
402
+ if any(isinstance(x, errors.UndecodableBytesDefect)
403
+ for x in part.all_defects):
404
+ charset = 'unknown-8bit'
405
+ else:
406
+ charset = 'utf-8'
407
+ if last_ew is not None:
408
+ # We've already done an EW, combine this one with it
409
+ # if there's room.
410
+ chunk = get_unstructured(
411
+ ''.join(folded.current[last_ew:]+[tstr])).as_encoded_word(charset)
412
+ oldlastlen = sum(len(x) for x in folded.current[:last_ew])
413
+ schunk = str(chunk)
414
+ lchunk = len(schunk)
415
+ if oldlastlen + lchunk <= folded.maxlen:
416
+ del folded.current[last_ew:]
417
+ folded.append(schunk)
418
+ folded.lastlen = oldlastlen + lchunk
419
+ continue
420
+ tstr = part.as_encoded_word(charset)
421
+ is_ew = True
422
+ if folded.append_if_fits(part, tstr):
423
+ if is_ew:
424
+ last_ew = len(folded.current) - 1
425
+ continue
426
+ if is_ew or last_ew:
427
+ # It's too big to fit on the line, but since we've
428
+ # got encoded words we can use encoded word folding.
429
+ part._fold_as_ew(folded)
430
+ continue
431
+ # Peel off the leading whitespace if any and make it sticky, to
432
+ # avoid infinite recursion.
433
+ ws = part.pop_leading_fws()
434
+ if ws is not None:
435
+ folded.stickyspace = str(ws)
436
+ if folded.append_if_fits(part):
437
+ continue
438
+ if part.has_fws:
439
+ part.fold(folded)
440
+ continue
441
+ # It can't be split...we just have to put it on its own line.
442
+ folded.append(tstr)
443
+ folded.newline()
444
+ last_ew = None
445
+
446
+ def cte_encode(self, charset, policy):
447
+ res = []
448
+ last_ew = None
449
+ for part in self:
450
+ spart = str(part)
451
+ try:
452
+ spart.encode('us-ascii')
453
+ res.append(spart)
454
+ except UnicodeEncodeError:
455
+ if last_ew is None:
456
+ res.append(part.cte_encode(charset, policy))
457
+ last_ew = len(res)
458
+ else:
459
+ tl = get_unstructured(''.join(res[last_ew:] + [spart]))
460
+ res.append(tl.as_encoded_word())
461
+ return ''.join(res)
462
+
463
+
464
+ class Phrase(TokenList):
465
+
466
+ token_type = 'phrase'
467
+
468
+ def _fold(self, folded):
469
+ # As with Unstructured, we can have pure ASCII with or without
470
+ # surrogateescape encoded bytes, or we could have unicode. But this
471
+ # case is more complicated, since we have to deal with the various
472
+ # sub-token types and how they can be composed in the face of
473
+ # unicode-that-needs-CTE-encoding, and the fact that if a token a
474
+ # comment that becomes a barrier across which we can't compose encoded
475
+ # words.
476
+ last_ew = None
477
+ for part in self.parts:
478
+ tstr = str(part)
479
+ tlen = len(tstr)
480
+ has_ew = False
481
+ try:
482
+ str(part).encode('us-ascii')
483
+ except UnicodeEncodeError:
484
+ if any(isinstance(x, errors.UndecodableBytesDefect)
485
+ for x in part.all_defects):
486
+ charset = 'unknown-8bit'
487
+ else:
488
+ charset = 'utf-8'
489
+ if last_ew is not None and not part.has_leading_comment():
490
+ # We've already done an EW, let's see if we can combine
491
+ # this one with it. The last_ew logic ensures that all we
492
+ # have at this point is atoms, no comments or quoted
493
+ # strings. So we can treat the text between the last
494
+ # encoded word and the content of this token as
495
+ # unstructured text, and things will work correctly. But
496
+ # we have to strip off any trailing comment on this token
497
+ # first, and if it is a quoted string we have to pull out
498
+ # the content (we're encoding it, so it no longer needs to
499
+ # be quoted).
500
+ if part[-1].token_type == 'cfws' and part.comments:
501
+ remainder = part.pop(-1)
502
+ else:
503
+ remainder = ''
504
+ for i, token in enumerate(part):
505
+ if token.token_type == 'bare-quoted-string':
506
+ part[i] = UnstructuredTokenList(token[:])
507
+ chunk = get_unstructured(
508
+ ''.join(folded.current[last_ew:]+[tstr])).as_encoded_word(charset)
509
+ schunk = str(chunk)
510
+ lchunk = len(schunk)
511
+ if last_ew + lchunk <= folded.maxlen:
512
+ del folded.current[last_ew:]
513
+ folded.append(schunk)
514
+ folded.lastlen = sum(len(x) for x in folded.current)
515
+ continue
516
+ tstr = part.as_encoded_word(charset)
517
+ tlen = len(tstr)
518
+ has_ew = True
519
+ if folded.append_if_fits(part, tstr):
520
+ if has_ew and not part.comments:
521
+ last_ew = len(folded.current) - 1
522
+ elif part.comments or part.token_type == 'quoted-string':
523
+ # If a comment is involved we can't combine EWs. And if a
524
+ # quoted string is involved, it's not worth the effort to
525
+ # try to combine them.
526
+ last_ew = None
527
+ continue
528
+ part._fold(folded)
529
+
530
+ def cte_encode(self, charset, policy):
531
+ res = []
532
+ last_ew = None
533
+ is_ew = False
534
+ for part in self:
535
+ spart = str(part)
536
+ try:
537
+ spart.encode('us-ascii')
538
+ res.append(spart)
539
+ except UnicodeEncodeError:
540
+ is_ew = True
541
+ if last_ew is None:
542
+ if not part.comments:
543
+ last_ew = len(res)
544
+ res.append(part.cte_encode(charset, policy))
545
+ elif not part.has_leading_comment():
546
+ if part[-1].token_type == 'cfws' and part.comments:
547
+ remainder = part.pop(-1)
548
+ else:
549
+ remainder = ''
550
+ for i, token in enumerate(part):
551
+ if token.token_type == 'bare-quoted-string':
552
+ part[i] = UnstructuredTokenList(token[:])
553
+ tl = get_unstructured(''.join(res[last_ew:] + [spart]))
554
+ res[last_ew:] = [tl.as_encoded_word(charset)]
555
+ if part.comments or (not is_ew and part.token_type == 'quoted-string'):
556
+ last_ew = None
557
+ return ''.join(res)
558
+
559
+ class Word(TokenList):
560
+
561
+ token_type = 'word'
562
+
563
+
564
+ class CFWSList(WhiteSpaceTokenList):
565
+
566
+ token_type = 'cfws'
567
+
568
+ def has_leading_comment(self):
569
+ return bool(self.comments)
570
+
571
+
572
+ class Atom(TokenList):
573
+
574
+ token_type = 'atom'
575
+
576
+
577
+ class Token(TokenList):
578
+
579
+ token_type = 'token'
580
+
581
+
582
+ class EncodedWord(TokenList):
583
+
584
+ token_type = 'encoded-word'
585
+ cte = None
586
+ charset = None
587
+ lang = None
588
+
589
+ @property
590
+ def encoded(self):
591
+ if self.cte is not None:
592
+ return self.cte
593
+ _ew.encode(str(self), self.charset)
594
+
595
+
596
+
597
+ class QuotedString(TokenList):
598
+
599
+ token_type = 'quoted-string'
600
+
601
+ @property
602
+ def content(self):
603
+ for x in self:
604
+ if x.token_type == 'bare-quoted-string':
605
+ return x.value
606
+
607
+ @property
608
+ def quoted_value(self):
609
+ res = []
610
+ for x in self:
611
+ if x.token_type == 'bare-quoted-string':
612
+ res.append(str(x))
613
+ else:
614
+ res.append(x.value)
615
+ return ''.join(res)
616
+
617
+ @property
618
+ def stripped_value(self):
619
+ for token in self:
620
+ if token.token_type == 'bare-quoted-string':
621
+ return token.value
622
+
623
+
624
+ class BareQuotedString(QuotedString):
625
+
626
+ token_type = 'bare-quoted-string'
627
+
628
+ def __str__(self):
629
+ return quote_string(''.join(str(x) for x in self))
630
+
631
+ @property
632
+ def value(self):
633
+ return ''.join(str(x) for x in self)
634
+
635
+
636
+ class Comment(WhiteSpaceTokenList):
637
+
638
+ token_type = 'comment'
639
+
640
+ def __str__(self):
641
+ return ''.join(sum([
642
+ ["("],
643
+ [self.quote(x) for x in self],
644
+ [")"],
645
+ ], []))
646
+
647
+ def quote(self, value):
648
+ if value.token_type == 'comment':
649
+ return str(value)
650
+ return str(value).replace('\\', '\\\\').replace(
651
+ '(', '\(').replace(
652
+ ')', '\)')
653
+
654
+ @property
655
+ def content(self):
656
+ return ''.join(str(x) for x in self)
657
+
658
+ @property
659
+ def comments(self):
660
+ return [self.content]
661
+
662
+ class AddressList(TokenList):
663
+
664
+ token_type = 'address-list'
665
+
666
+ @property
667
+ def addresses(self):
668
+ return [x for x in self if x.token_type=='address']
669
+
670
+ @property
671
+ def mailboxes(self):
672
+ return sum((x.mailboxes
673
+ for x in self if x.token_type=='address'), [])
674
+
675
+ @property
676
+ def all_mailboxes(self):
677
+ return sum((x.all_mailboxes
678
+ for x in self if x.token_type=='address'), [])
679
+
680
+
681
+ class Address(TokenList):
682
+
683
+ token_type = 'address'
684
+
685
+ @property
686
+ def display_name(self):
687
+ if self[0].token_type == 'group':
688
+ return self[0].display_name
689
+
690
+ @property
691
+ def mailboxes(self):
692
+ if self[0].token_type == 'mailbox':
693
+ return [self[0]]
694
+ elif self[0].token_type == 'invalid-mailbox':
695
+ return []
696
+ return self[0].mailboxes
697
+
698
+ @property
699
+ def all_mailboxes(self):
700
+ if self[0].token_type == 'mailbox':
701
+ return [self[0]]
702
+ elif self[0].token_type == 'invalid-mailbox':
703
+ return [self[0]]
704
+ return self[0].all_mailboxes
705
+
706
+ class MailboxList(TokenList):
707
+
708
+ token_type = 'mailbox-list'
709
+
710
+ @property
711
+ def mailboxes(self):
712
+ return [x for x in self if x.token_type=='mailbox']
713
+
714
+ @property
715
+ def all_mailboxes(self):
716
+ return [x for x in self
717
+ if x.token_type in ('mailbox', 'invalid-mailbox')]
718
+
719
+
720
+ class GroupList(TokenList):
721
+
722
+ token_type = 'group-list'
723
+
724
+ @property
725
+ def mailboxes(self):
726
+ if not self or self[0].token_type != 'mailbox-list':
727
+ return []
728
+ return self[0].mailboxes
729
+
730
+ @property
731
+ def all_mailboxes(self):
732
+ if not self or self[0].token_type != 'mailbox-list':
733
+ return []
734
+ return self[0].all_mailboxes
735
+
736
+
737
+ class Group(TokenList):
738
+
739
+ token_type = "group"
740
+
741
+ @property
742
+ def mailboxes(self):
743
+ if self[2].token_type != 'group-list':
744
+ return []
745
+ return self[2].mailboxes
746
+
747
+ @property
748
+ def all_mailboxes(self):
749
+ if self[2].token_type != 'group-list':
750
+ return []
751
+ return self[2].all_mailboxes
752
+
753
+ @property
754
+ def display_name(self):
755
+ return self[0].display_name
756
+
757
+
758
+ class NameAddr(TokenList):
759
+
760
+ token_type = 'name-addr'
761
+
762
+ @property
763
+ def display_name(self):
764
+ if len(self) == 1:
765
+ return None
766
+ return self[0].display_name
767
+
768
+ @property
769
+ def local_part(self):
770
+ return self[-1].local_part
771
+
772
+ @property
773
+ def domain(self):
774
+ return self[-1].domain
775
+
776
+ @property
777
+ def route(self):
778
+ return self[-1].route
779
+
780
+ @property
781
+ def addr_spec(self):
782
+ return self[-1].addr_spec
783
+
784
+
785
+ class AngleAddr(TokenList):
786
+
787
+ token_type = 'angle-addr'
788
+
789
+ @property
790
+ def local_part(self):
791
+ for x in self:
792
+ if x.token_type == 'addr-spec':
793
+ return x.local_part
794
+
795
+ @property
796
+ def domain(self):
797
+ for x in self:
798
+ if x.token_type == 'addr-spec':
799
+ return x.domain
800
+
801
+ @property
802
+ def route(self):
803
+ for x in self:
804
+ if x.token_type == 'obs-route':
805
+ return x.domains
806
+
807
+ @property
808
+ def addr_spec(self):
809
+ for x in self:
810
+ if x.token_type == 'addr-spec':
811
+ return x.addr_spec
812
+ else:
813
+ return '<>'
814
+
815
+
816
+ class ObsRoute(TokenList):
817
+
818
+ token_type = 'obs-route'
819
+
820
+ @property
821
+ def domains(self):
822
+ return [x.domain for x in self if x.token_type == 'domain']
823
+
824
+
825
+ class Mailbox(TokenList):
826
+
827
+ token_type = 'mailbox'
828
+
829
+ @property
830
+ def display_name(self):
831
+ if self[0].token_type == 'name-addr':
832
+ return self[0].display_name
833
+
834
+ @property
835
+ def local_part(self):
836
+ return self[0].local_part
837
+
838
+ @property
839
+ def domain(self):
840
+ return self[0].domain
841
+
842
+ @property
843
+ def route(self):
844
+ if self[0].token_type == 'name-addr':
845
+ return self[0].route
846
+
847
+ @property
848
+ def addr_spec(self):
849
+ return self[0].addr_spec
850
+
851
+
852
+ class InvalidMailbox(TokenList):
853
+
854
+ token_type = 'invalid-mailbox'
855
+
856
+ @property
857
+ def display_name(self):
858
+ return None
859
+
860
+ local_part = domain = route = addr_spec = display_name
861
+
862
+
863
+ class Domain(TokenList):
864
+
865
+ token_type = 'domain'
866
+
867
+ @property
868
+ def domain(self):
869
+ return ''.join(super().value.split())
870
+
871
+
872
+ class DotAtom(TokenList):
873
+
874
+ token_type = 'dot-atom'
875
+
876
+
877
+ class DotAtomText(TokenList):
878
+
879
+ token_type = 'dot-atom-text'
880
+
881
+
882
+ class AddrSpec(TokenList):
883
+
884
+ token_type = 'addr-spec'
885
+
886
+ @property
887
+ def local_part(self):
888
+ return self[0].local_part
889
+
890
+ @property
891
+ def domain(self):
892
+ if len(self) < 3:
893
+ return None
894
+ return self[-1].domain
895
+
896
+ @property
897
+ def value(self):
898
+ if len(self) < 3:
899
+ return self[0].value
900
+ return self[0].value.rstrip()+self[1].value+self[2].value.lstrip()
901
+
902
+ @property
903
+ def addr_spec(self):
904
+ nameset = set(self.local_part)
905
+ if len(nameset) > len(nameset-DOT_ATOM_ENDS):
906
+ lp = quote_string(self.local_part)
907
+ else:
908
+ lp = self.local_part
909
+ if self.domain is not None:
910
+ return lp + '@' + self.domain
911
+ return lp
912
+
913
+
914
+ class ObsLocalPart(TokenList):
915
+
916
+ token_type = 'obs-local-part'
917
+
918
+
919
+ class DisplayName(Phrase):
920
+
921
+ token_type = 'display-name'
922
+
923
+ @property
924
+ def display_name(self):
925
+ res = TokenList(self)
926
+ if res[0].token_type == 'cfws':
927
+ res.pop(0)
928
+ else:
929
+ if res[0][0].token_type == 'cfws':
930
+ res[0] = TokenList(res[0][1:])
931
+ if res[-1].token_type == 'cfws':
932
+ res.pop()
933
+ else:
934
+ if res[-1][-1].token_type == 'cfws':
935
+ res[-1] = TokenList(res[-1][:-1])
936
+ return res.value
937
+
938
+ @property
939
+ def value(self):
940
+ quote = False
941
+ if self.defects:
942
+ quote = True
943
+ else:
944
+ for x in self:
945
+ if x.token_type == 'quoted-string':
946
+ quote = True
947
+ if quote:
948
+ pre = post = ''
949
+ if self[0].token_type=='cfws' or self[0][0].token_type=='cfws':
950
+ pre = ' '
951
+ if self[-1].token_type=='cfws' or self[-1][-1].token_type=='cfws':
952
+ post = ' '
953
+ return pre+quote_string(self.display_name)+post
954
+ else:
955
+ return super().value
956
+
957
+
958
+ class LocalPart(TokenList):
959
+
960
+ token_type = 'local-part'
961
+
962
+ @property
963
+ def value(self):
964
+ if self[0].token_type == "quoted-string":
965
+ return self[0].quoted_value
966
+ else:
967
+ return self[0].value
968
+
969
+ @property
970
+ def local_part(self):
971
+ # Strip whitespace from front, back, and around dots.
972
+ res = [DOT]
973
+ last = DOT
974
+ last_is_tl = False
975
+ for tok in self[0] + [DOT]:
976
+ if tok.token_type == 'cfws':
977
+ continue
978
+ if (last_is_tl and tok.token_type == 'dot' and
979
+ last[-1].token_type == 'cfws'):
980
+ res[-1] = TokenList(last[:-1])
981
+ is_tl = isinstance(tok, TokenList)
982
+ if (is_tl and last.token_type == 'dot' and
983
+ tok[0].token_type == 'cfws'):
984
+ res.append(TokenList(tok[1:]))
985
+ else:
986
+ res.append(tok)
987
+ last = res[-1]
988
+ last_is_tl = is_tl
989
+ res = TokenList(res[1:-1])
990
+ return res.value
991
+
992
+
993
+ class DomainLiteral(TokenList):
994
+
995
+ token_type = 'domain-literal'
996
+
997
+ @property
998
+ def domain(self):
999
+ return ''.join(super().value.split())
1000
+
1001
+ @property
1002
+ def ip(self):
1003
+ for x in self:
1004
+ if x.token_type == 'ptext':
1005
+ return x.value
1006
+
1007
+
1008
+ class MIMEVersion(TokenList):
1009
+
1010
+ token_type = 'mime-version'
1011
+ major = None
1012
+ minor = None
1013
+
1014
+
1015
+ class Parameter(TokenList):
1016
+
1017
+ token_type = 'parameter'
1018
+ sectioned = False
1019
+ extended = False
1020
+ charset = 'us-ascii'
1021
+
1022
+ @property
1023
+ def section_number(self):
1024
+ # Because the first token, the attribute (name) eats CFWS, the second
1025
+ # token is always the section if there is one.
1026
+ return self[1].number if self.sectioned else 0
1027
+
1028
+ @property
1029
+ def param_value(self):
1030
+ # This is part of the "handle quoted extended parameters" hack.
1031
+ for token in self:
1032
+ if token.token_type == 'value':
1033
+ return token.stripped_value
1034
+ if token.token_type == 'quoted-string':
1035
+ for token in token:
1036
+ if token.token_type == 'bare-quoted-string':
1037
+ for token in token:
1038
+ if token.token_type == 'value':
1039
+ return token.stripped_value
1040
+ return ''
1041
+
1042
+
1043
+ class InvalidParameter(Parameter):
1044
+
1045
+ token_type = 'invalid-parameter'
1046
+
1047
+
1048
+ class Attribute(TokenList):
1049
+
1050
+ token_type = 'attribute'
1051
+
1052
+ @property
1053
+ def stripped_value(self):
1054
+ for token in self:
1055
+ if token.token_type.endswith('attrtext'):
1056
+ return token.value
1057
+
1058
+ class Section(TokenList):
1059
+
1060
+ token_type = 'section'
1061
+ number = None
1062
+
1063
+
1064
+ class Value(TokenList):
1065
+
1066
+ token_type = 'value'
1067
+
1068
+ @property
1069
+ def stripped_value(self):
1070
+ token = self[0]
1071
+ if token.token_type == 'cfws':
1072
+ token = self[1]
1073
+ if token.token_type.endswith(
1074
+ ('quoted-string', 'attribute', 'extended-attribute')):
1075
+ return token.stripped_value
1076
+ return self.value
1077
+
1078
+
1079
+ class MimeParameters(TokenList):
1080
+
1081
+ token_type = 'mime-parameters'
1082
+
1083
+ @property
1084
+ def params(self):
1085
+ # The RFC specifically states that the ordering of parameters is not
1086
+ # guaranteed and may be reordered by the transport layer. So we have
1087
+ # to assume the RFC 2231 pieces can come in any order. However, we
1088
+ # output them in the order that we first see a given name, which gives
1089
+ # us a stable __str__.
1090
+ params = OrderedDict()
1091
+ for token in self:
1092
+ if not token.token_type.endswith('parameter'):
1093
+ continue
1094
+ if token[0].token_type != 'attribute':
1095
+ continue
1096
+ name = token[0].value.strip()
1097
+ if name not in params:
1098
+ params[name] = []
1099
+ params[name].append((token.section_number, token))
1100
+ for name, parts in params.items():
1101
+ parts = sorted(parts)
1102
+ # XXX: there might be more recovery we could do here if, for
1103
+ # example, this is really a case of a duplicate attribute name.
1104
+ value_parts = []
1105
+ charset = parts[0][1].charset
1106
+ for i, (section_number, param) in enumerate(parts):
1107
+ if section_number != i:
1108
+ param.defects.append(errors.InvalidHeaderDefect(
1109
+ "inconsistent multipart parameter numbering"))
1110
+ value = param.param_value
1111
+ if param.extended:
1112
+ try:
1113
+ value = urllib.parse.unquote_to_bytes(value)
1114
+ except UnicodeEncodeError:
1115
+ # source had surrogate escaped bytes. What we do now
1116
+ # is a bit of an open question. I'm not sure this is
1117
+ # the best choice, but it is what the old algorithm did
1118
+ value = urllib.parse.unquote(value, encoding='latin-1')
1119
+ else:
1120
+ try:
1121
+ value = value.decode(charset, 'surrogateescape')
1122
+ except LookupError:
1123
+ # XXX: there should really be a custom defect for
1124
+ # unknown character set to make it easy to find,
1125
+ # because otherwise unknown charset is a silent
1126
+ # failure.
1127
+ value = value.decode('us-ascii', 'surrogateescape')
1128
+ if utils._has_surrogates(value):
1129
+ param.defects.append(errors.UndecodableBytesDefect())
1130
+ value_parts.append(value)
1131
+ value = ''.join(value_parts)
1132
+ yield name, value
1133
+
1134
+ def __str__(self):
1135
+ params = []
1136
+ for name, value in self.params:
1137
+ if value:
1138
+ params.append('{}={}'.format(name, quote_string(value)))
1139
+ else:
1140
+ params.append(name)
1141
+ params = '; '.join(params)
1142
+ return ' ' + params if params else ''
1143
+
1144
+
1145
+ class ParameterizedHeaderValue(TokenList):
1146
+
1147
+ @property
1148
+ def params(self):
1149
+ for token in reversed(self):
1150
+ if token.token_type == 'mime-parameters':
1151
+ return token.params
1152
+ return {}
1153
+
1154
+ @property
1155
+ def parts(self):
1156
+ if self and self[-1].token_type == 'mime-parameters':
1157
+ # We don't want to start a new line if all of the params don't fit
1158
+ # after the value, so unwrap the parameter list.
1159
+ return TokenList(self[:-1] + self[-1])
1160
+ return TokenList(self).parts
1161
+
1162
+
1163
+ class ContentType(ParameterizedHeaderValue):
1164
+
1165
+ token_type = 'content-type'
1166
+ maintype = 'text'
1167
+ subtype = 'plain'
1168
+
1169
+
1170
+ class ContentDisposition(ParameterizedHeaderValue):
1171
+
1172
+ token_type = 'content-disposition'
1173
+ content_disposition = None
1174
+
1175
+
1176
+ class ContentTransferEncoding(TokenList):
1177
+
1178
+ token_type = 'content-transfer-encoding'
1179
+ cte = '7bit'
1180
+
1181
+
1182
+ class HeaderLabel(TokenList):
1183
+
1184
+ token_type = 'header-label'
1185
+
1186
+
1187
+ class Header(TokenList):
1188
+
1189
+ token_type = 'header'
1190
+
1191
+ def _fold(self, folded):
1192
+ folded.append(str(self.pop(0)))
1193
+ folded.lastlen = len(folded.current[0])
1194
+ # The first line of the header is different from all others: we don't
1195
+ # want to start a new object on a new line if it has any fold points in
1196
+ # it that would allow part of it to be on the first header line.
1197
+ # Further, if the first fold point would fit on the new line, we want
1198
+ # to do that, but if it doesn't we want to put it on the first line.
1199
+ # Folded supports this via the stickyspace attribute. If this
1200
+ # attribute is not None, it does the special handling.
1201
+ folded.stickyspace = str(self.pop(0)) if self[0].token_type == 'cfws' else ''
1202
+ rest = self.pop(0)
1203
+ if self:
1204
+ raise ValueError("Malformed Header token list")
1205
+ rest._fold(folded)
1206
+
1207
+
1208
+ #
1209
+ # Terminal classes and instances
1210
+ #
1211
+
1212
+ class Terminal(str):
1213
+
1214
+ def __new__(cls, value, token_type):
1215
+ self = super().__new__(cls, value)
1216
+ self.token_type = token_type
1217
+ self.defects = []
1218
+ return self
1219
+
1220
+ def __repr__(self):
1221
+ return "{}({})".format(self.__class__.__name__, super().__repr__())
1222
+
1223
+ @property
1224
+ def all_defects(self):
1225
+ return list(self.defects)
1226
+
1227
+ def _pp(self, indent=''):
1228
+ return ["{}{}/{}({}){}".format(
1229
+ indent,
1230
+ self.__class__.__name__,
1231
+ self.token_type,
1232
+ super().__repr__(),
1233
+ '' if not self.defects else ' {}'.format(self.defects),
1234
+ )]
1235
+
1236
+ def cte_encode(self, charset, policy):
1237
+ value = str(self)
1238
+ try:
1239
+ value.encode('us-ascii')
1240
+ return value
1241
+ except UnicodeEncodeError:
1242
+ return _ew.encode(value, charset)
1243
+
1244
+ def pop_trailing_ws(self):
1245
+ # This terminates the recursion.
1246
+ return None
1247
+
1248
+ def pop_leading_fws(self):
1249
+ # This terminates the recursion.
1250
+ return None
1251
+
1252
+ @property
1253
+ def comments(self):
1254
+ return []
1255
+
1256
+ def has_leading_comment(self):
1257
+ return False
1258
+
1259
+ def __getnewargs__(self):
1260
+ return(str(self), self.token_type)
1261
+
1262
+
1263
+ class WhiteSpaceTerminal(Terminal):
1264
+
1265
+ @property
1266
+ def value(self):
1267
+ return ' '
1268
+
1269
+ def startswith_fws(self):
1270
+ return True
1271
+
1272
+ has_fws = True
1273
+
1274
+
1275
+ class ValueTerminal(Terminal):
1276
+
1277
+ @property
1278
+ def value(self):
1279
+ return self
1280
+
1281
+ def startswith_fws(self):
1282
+ return False
1283
+
1284
+ has_fws = False
1285
+
1286
+ def as_encoded_word(self, charset):
1287
+ return _ew.encode(str(self), charset)
1288
+
1289
+
1290
+ class EWWhiteSpaceTerminal(WhiteSpaceTerminal):
1291
+
1292
+ @property
1293
+ def value(self):
1294
+ return ''
1295
+
1296
+ @property
1297
+ def encoded(self):
1298
+ return self[:]
1299
+
1300
+ def __str__(self):
1301
+ return ''
1302
+
1303
+ has_fws = True
1304
+
1305
+
1306
+ # XXX these need to become classes and used as instances so
1307
+ # that a program can't change them in a parse tree and screw
1308
+ # up other parse trees. Maybe should have tests for that, too.
1309
+ DOT = ValueTerminal('.', 'dot')
1310
+ ListSeparator = ValueTerminal(',', 'list-separator')
1311
+ RouteComponentMarker = ValueTerminal('@', 'route-component-marker')
1312
+
1313
+ #
1314
+ # Parser
1315
+ #
1316
+
1317
+ # Parse strings according to RFC822/2047/2822/5322 rules.
1318
+ #
1319
+ # This is a stateless parser. Each get_XXX function accepts a string and
1320
+ # returns either a Terminal or a TokenList representing the RFC object named
1321
+ # by the method and a string containing the remaining unparsed characters
1322
+ # from the input. Thus a parser method consumes the next syntactic construct
1323
+ # of a given type and returns a token representing the construct plus the
1324
+ # unparsed remainder of the input string.
1325
+ #
1326
+ # For example, if the first element of a structured header is a 'phrase',
1327
+ # then:
1328
+ #
1329
+ # phrase, value = get_phrase(value)
1330
+ #
1331
+ # returns the complete phrase from the start of the string value, plus any
1332
+ # characters left in the string after the phrase is removed.
1333
+
1334
+ _wsp_splitter = re.compile(r'([{}]+)'.format(''.join(WSP))).split
1335
+ _non_atom_end_matcher = re.compile(r"[^{}]+".format(
1336
+ ''.join(ATOM_ENDS).replace('\\','\\\\').replace(']','\]'))).match
1337
+ _non_printable_finder = re.compile(r"[\x00-\x20\x7F]").findall
1338
+ _non_token_end_matcher = re.compile(r"[^{}]+".format(
1339
+ ''.join(TOKEN_ENDS).replace('\\','\\\\').replace(']','\]'))).match
1340
+ _non_attribute_end_matcher = re.compile(r"[^{}]+".format(
1341
+ ''.join(ATTRIBUTE_ENDS).replace('\\','\\\\').replace(']','\]'))).match
1342
+ _non_extended_attribute_end_matcher = re.compile(r"[^{}]+".format(
1343
+ ''.join(EXTENDED_ATTRIBUTE_ENDS).replace(
1344
+ '\\','\\\\').replace(']','\]'))).match
1345
+
1346
+ def _validate_xtext(xtext):
1347
+ """If input token contains ASCII non-printables, register a defect."""
1348
+
1349
+ non_printables = _non_printable_finder(xtext)
1350
+ if non_printables:
1351
+ xtext.defects.append(errors.NonPrintableDefect(non_printables))
1352
+ if utils._has_surrogates(xtext):
1353
+ xtext.defects.append(errors.UndecodableBytesDefect(
1354
+ "Non-ASCII characters found in header token"))
1355
+
1356
+ def _get_ptext_to_endchars(value, endchars):
1357
+ """Scan printables/quoted-pairs until endchars and return unquoted ptext.
1358
+
1359
+ This function turns a run of qcontent, ccontent-without-comments, or
1360
+ dtext-with-quoted-printables into a single string by unquoting any
1361
+ quoted printables. It returns the string, the remaining value, and
1362
+ a flag that is True iff there were any quoted printables decoded.
1363
+
1364
+ """
1365
+ fragment, *remainder = _wsp_splitter(value, 1)
1366
+ vchars = []
1367
+ escape = False
1368
+ had_qp = False
1369
+ for pos in range(len(fragment)):
1370
+ if fragment[pos] == '\\':
1371
+ if escape:
1372
+ escape = False
1373
+ had_qp = True
1374
+ else:
1375
+ escape = True
1376
+ continue
1377
+ if escape:
1378
+ escape = False
1379
+ elif fragment[pos] in endchars:
1380
+ break
1381
+ vchars.append(fragment[pos])
1382
+ else:
1383
+ pos = pos + 1
1384
+ return ''.join(vchars), ''.join([fragment[pos:]] + remainder), had_qp
1385
+
1386
+ def get_fws(value):
1387
+ """FWS = 1*WSP
1388
+
1389
+ This isn't the RFC definition. We're using fws to represent tokens where
1390
+ folding can be done, but when we are parsing the *un*folding has already
1391
+ been done so we don't need to watch out for CRLF.
1392
+
1393
+ """
1394
+ newvalue = value.lstrip()
1395
+ fws = WhiteSpaceTerminal(value[:len(value)-len(newvalue)], 'fws')
1396
+ return fws, newvalue
1397
+
1398
+ def get_encoded_word(value):
1399
+ """ encoded-word = "=?" charset "?" encoding "?" encoded-text "?="
1400
+
1401
+ """
1402
+ ew = EncodedWord()
1403
+ if not value.startswith('=?'):
1404
+ raise errors.HeaderParseError(
1405
+ "expected encoded word but found {}".format(value))
1406
+ tok, *remainder = value[2:].split('?=', 1)
1407
+ if tok == value[2:]:
1408
+ raise errors.HeaderParseError(
1409
+ "expected encoded word but found {}".format(value))
1410
+ remstr = ''.join(remainder)
1411
+ if len(remstr) > 1 and remstr[0] in hexdigits and remstr[1] in hexdigits:
1412
+ # The ? after the CTE was followed by an encoded word escape (=XX).
1413
+ rest, *remainder = remstr.split('?=', 1)
1414
+ tok = tok + '?=' + rest
1415
+ if len(tok.split()) > 1:
1416
+ ew.defects.append(errors.InvalidHeaderDefect(
1417
+ "whitespace inside encoded word"))
1418
+ ew.cte = value
1419
+ value = ''.join(remainder)
1420
+ try:
1421
+ text, charset, lang, defects = _ew.decode('=?' + tok + '?=')
1422
+ except ValueError:
1423
+ raise errors.HeaderParseError(
1424
+ "encoded word format invalid: '{}'".format(ew.cte))
1425
+ ew.charset = charset
1426
+ ew.lang = lang
1427
+ ew.defects.extend(defects)
1428
+ while text:
1429
+ if text[0] in WSP:
1430
+ token, text = get_fws(text)
1431
+ ew.append(token)
1432
+ continue
1433
+ chars, *remainder = _wsp_splitter(text, 1)
1434
+ vtext = ValueTerminal(chars, 'vtext')
1435
+ _validate_xtext(vtext)
1436
+ ew.append(vtext)
1437
+ text = ''.join(remainder)
1438
+ return ew, value
1439
+
1440
+ def get_unstructured(value):
1441
+ """unstructured = (*([FWS] vchar) *WSP) / obs-unstruct
1442
+ obs-unstruct = *((*LF *CR *(obs-utext) *LF *CR)) / FWS)
1443
+ obs-utext = %d0 / obs-NO-WS-CTL / LF / CR
1444
+
1445
+ obs-NO-WS-CTL is control characters except WSP/CR/LF.
1446
+
1447
+ So, basically, we have printable runs, plus control characters or nulls in
1448
+ the obsolete syntax, separated by whitespace. Since RFC 2047 uses the
1449
+ obsolete syntax in its specification, but requires whitespace on either
1450
+ side of the encoded words, I can see no reason to need to separate the
1451
+ non-printable-non-whitespace from the printable runs if they occur, so we
1452
+ parse this into xtext tokens separated by WSP tokens.
1453
+
1454
+ Because an 'unstructured' value must by definition constitute the entire
1455
+ value, this 'get' routine does not return a remaining value, only the
1456
+ parsed TokenList.
1457
+
1458
+ """
1459
+ # XXX: but what about bare CR and LF? They might signal the start or
1460
+ # end of an encoded word. YAGNI for now, since our current parsers
1461
+ # will never send us strings with bare CR or LF.
1462
+
1463
+ unstructured = UnstructuredTokenList()
1464
+ while value:
1465
+ if value[0] in WSP:
1466
+ token, value = get_fws(value)
1467
+ unstructured.append(token)
1468
+ continue
1469
+ if value.startswith('=?'):
1470
+ try:
1471
+ token, value = get_encoded_word(value)
1472
+ except errors.HeaderParseError:
1473
+ # XXX: Need to figure out how to register defects when
1474
+ # appropriate here.
1475
+ pass
1476
+ else:
1477
+ have_ws = True
1478
+ if len(unstructured) > 0:
1479
+ if unstructured[-1].token_type != 'fws':
1480
+ unstructured.defects.append(errors.InvalidHeaderDefect(
1481
+ "missing whitespace before encoded word"))
1482
+ have_ws = False
1483
+ if have_ws and len(unstructured) > 1:
1484
+ if unstructured[-2].token_type == 'encoded-word':
1485
+ unstructured[-1] = EWWhiteSpaceTerminal(
1486
+ unstructured[-1], 'fws')
1487
+ unstructured.append(token)
1488
+ continue
1489
+ tok, *remainder = _wsp_splitter(value, 1)
1490
+ vtext = ValueTerminal(tok, 'vtext')
1491
+ _validate_xtext(vtext)
1492
+ unstructured.append(vtext)
1493
+ value = ''.join(remainder)
1494
+ return unstructured
1495
+
1496
+ def get_qp_ctext(value):
1497
+ """ctext = <printable ascii except \ ( )>
1498
+
1499
+ This is not the RFC ctext, since we are handling nested comments in comment
1500
+ and unquoting quoted-pairs here. We allow anything except the '()'
1501
+ characters, but if we find any ASCII other than the RFC defined printable
1502
+ ASCII an NonPrintableDefect is added to the token's defects list. Since
1503
+ quoted pairs are converted to their unquoted values, what is returned is
1504
+ a 'ptext' token. In this case it is a WhiteSpaceTerminal, so it's value
1505
+ is ' '.
1506
+
1507
+ """
1508
+ ptext, value, _ = _get_ptext_to_endchars(value, '()')
1509
+ ptext = WhiteSpaceTerminal(ptext, 'ptext')
1510
+ _validate_xtext(ptext)
1511
+ return ptext, value
1512
+
1513
+ def get_qcontent(value):
1514
+ """qcontent = qtext / quoted-pair
1515
+
1516
+ We allow anything except the DQUOTE character, but if we find any ASCII
1517
+ other than the RFC defined printable ASCII an NonPrintableDefect is
1518
+ added to the token's defects list. Any quoted pairs are converted to their
1519
+ unquoted values, so what is returned is a 'ptext' token. In this case it
1520
+ is a ValueTerminal.
1521
+
1522
+ """
1523
+ ptext, value, _ = _get_ptext_to_endchars(value, '"')
1524
+ ptext = ValueTerminal(ptext, 'ptext')
1525
+ _validate_xtext(ptext)
1526
+ return ptext, value
1527
+
1528
+ def get_atext(value):
1529
+ """atext = <matches _atext_matcher>
1530
+
1531
+ We allow any non-ATOM_ENDS in atext, but add an InvalidATextDefect to
1532
+ the token's defects list if we find non-atext characters.
1533
+ """
1534
+ m = _non_atom_end_matcher(value)
1535
+ if not m:
1536
+ raise errors.HeaderParseError(
1537
+ "expected atext but found '{}'".format(value))
1538
+ atext = m.group()
1539
+ value = value[len(atext):]
1540
+ atext = ValueTerminal(atext, 'atext')
1541
+ _validate_xtext(atext)
1542
+ return atext, value
1543
+
1544
+ def get_bare_quoted_string(value):
1545
+ """bare-quoted-string = DQUOTE *([FWS] qcontent) [FWS] DQUOTE
1546
+
1547
+ A quoted-string without the leading or trailing white space. Its
1548
+ value is the text between the quote marks, with whitespace
1549
+ preserved and quoted pairs decoded.
1550
+ """
1551
+ if value[0] != '"':
1552
+ raise errors.HeaderParseError(
1553
+ "expected '\"' but found '{}'".format(value))
1554
+ bare_quoted_string = BareQuotedString()
1555
+ value = value[1:]
1556
+ while value and value[0] != '"':
1557
+ if value[0] in WSP:
1558
+ token, value = get_fws(value)
1559
+ elif value[:2] == '=?':
1560
+ try:
1561
+ token, value = get_encoded_word(value)
1562
+ bare_quoted_string.defects.append(errors.InvalidHeaderDefect(
1563
+ "encoded word inside quoted string"))
1564
+ except errors.HeaderParseError:
1565
+ token, value = get_qcontent(value)
1566
+ else:
1567
+ token, value = get_qcontent(value)
1568
+ bare_quoted_string.append(token)
1569
+ if not value:
1570
+ bare_quoted_string.defects.append(errors.InvalidHeaderDefect(
1571
+ "end of header inside quoted string"))
1572
+ return bare_quoted_string, value
1573
+ return bare_quoted_string, value[1:]
1574
+
1575
+ def get_comment(value):
1576
+ """comment = "(" *([FWS] ccontent) [FWS] ")"
1577
+ ccontent = ctext / quoted-pair / comment
1578
+
1579
+ We handle nested comments here, and quoted-pair in our qp-ctext routine.
1580
+ """
1581
+ if value and value[0] != '(':
1582
+ raise errors.HeaderParseError(
1583
+ "expected '(' but found '{}'".format(value))
1584
+ comment = Comment()
1585
+ value = value[1:]
1586
+ while value and value[0] != ")":
1587
+ if value[0] in WSP:
1588
+ token, value = get_fws(value)
1589
+ elif value[0] == '(':
1590
+ token, value = get_comment(value)
1591
+ else:
1592
+ token, value = get_qp_ctext(value)
1593
+ comment.append(token)
1594
+ if not value:
1595
+ comment.defects.append(errors.InvalidHeaderDefect(
1596
+ "end of header inside comment"))
1597
+ return comment, value
1598
+ return comment, value[1:]
1599
+
1600
+ def get_cfws(value):
1601
+ """CFWS = (1*([FWS] comment) [FWS]) / FWS
1602
+
1603
+ """
1604
+ cfws = CFWSList()
1605
+ while value and value[0] in CFWS_LEADER:
1606
+ if value[0] in WSP:
1607
+ token, value = get_fws(value)
1608
+ else:
1609
+ token, value = get_comment(value)
1610
+ cfws.append(token)
1611
+ return cfws, value
1612
+
1613
+ def get_quoted_string(value):
1614
+ """quoted-string = [CFWS] <bare-quoted-string> [CFWS]
1615
+
1616
+ 'bare-quoted-string' is an intermediate class defined by this
1617
+ parser and not by the RFC grammar. It is the quoted string
1618
+ without any attached CFWS.
1619
+ """
1620
+ quoted_string = QuotedString()
1621
+ if value and value[0] in CFWS_LEADER:
1622
+ token, value = get_cfws(value)
1623
+ quoted_string.append(token)
1624
+ token, value = get_bare_quoted_string(value)
1625
+ quoted_string.append(token)
1626
+ if value and value[0] in CFWS_LEADER:
1627
+ token, value = get_cfws(value)
1628
+ quoted_string.append(token)
1629
+ return quoted_string, value
1630
+
1631
+ def get_atom(value):
1632
+ """atom = [CFWS] 1*atext [CFWS]
1633
+
1634
+ An atom could be an rfc2047 encoded word.
1635
+ """
1636
+ atom = Atom()
1637
+ if value and value[0] in CFWS_LEADER:
1638
+ token, value = get_cfws(value)
1639
+ atom.append(token)
1640
+ if value and value[0] in ATOM_ENDS:
1641
+ raise errors.HeaderParseError(
1642
+ "expected atom but found '{}'".format(value))
1643
+ if value.startswith('=?'):
1644
+ try:
1645
+ token, value = get_encoded_word(value)
1646
+ except errors.HeaderParseError:
1647
+ # XXX: need to figure out how to register defects when
1648
+ # appropriate here.
1649
+ token, value = get_atext(value)
1650
+ else:
1651
+ token, value = get_atext(value)
1652
+ atom.append(token)
1653
+ if value and value[0] in CFWS_LEADER:
1654
+ token, value = get_cfws(value)
1655
+ atom.append(token)
1656
+ return atom, value
1657
+
1658
+ def get_dot_atom_text(value):
1659
+ """ dot-text = 1*atext *("." 1*atext)
1660
+
1661
+ """
1662
+ dot_atom_text = DotAtomText()
1663
+ if not value or value[0] in ATOM_ENDS:
1664
+ raise errors.HeaderParseError("expected atom at a start of "
1665
+ "dot-atom-text but found '{}'".format(value))
1666
+ while value and value[0] not in ATOM_ENDS:
1667
+ token, value = get_atext(value)
1668
+ dot_atom_text.append(token)
1669
+ if value and value[0] == '.':
1670
+ dot_atom_text.append(DOT)
1671
+ value = value[1:]
1672
+ if dot_atom_text[-1] is DOT:
1673
+ raise errors.HeaderParseError("expected atom at end of dot-atom-text "
1674
+ "but found '{}'".format('.'+value))
1675
+ return dot_atom_text, value
1676
+
1677
+ def get_dot_atom(value):
1678
+ """ dot-atom = [CFWS] dot-atom-text [CFWS]
1679
+
1680
+ Any place we can have a dot atom, we could instead have an rfc2047 encoded
1681
+ word.
1682
+ """
1683
+ dot_atom = DotAtom()
1684
+ if value[0] in CFWS_LEADER:
1685
+ token, value = get_cfws(value)
1686
+ dot_atom.append(token)
1687
+ if value.startswith('=?'):
1688
+ try:
1689
+ token, value = get_encoded_word(value)
1690
+ except errors.HeaderParseError:
1691
+ # XXX: need to figure out how to register defects when
1692
+ # appropriate here.
1693
+ token, value = get_dot_atom_text(value)
1694
+ else:
1695
+ token, value = get_dot_atom_text(value)
1696
+ dot_atom.append(token)
1697
+ if value and value[0] in CFWS_LEADER:
1698
+ token, value = get_cfws(value)
1699
+ dot_atom.append(token)
1700
+ return dot_atom, value
1701
+
1702
+ def get_word(value):
1703
+ """word = atom / quoted-string
1704
+
1705
+ Either atom or quoted-string may start with CFWS. We have to peel off this
1706
+ CFWS first to determine which type of word to parse. Afterward we splice
1707
+ the leading CFWS, if any, into the parsed sub-token.
1708
+
1709
+ If neither an atom or a quoted-string is found before the next special, a
1710
+ HeaderParseError is raised.
1711
+
1712
+ The token returned is either an Atom or a QuotedString, as appropriate.
1713
+ This means the 'word' level of the formal grammar is not represented in the
1714
+ parse tree; this is because having that extra layer when manipulating the
1715
+ parse tree is more confusing than it is helpful.
1716
+
1717
+ """
1718
+ if value[0] in CFWS_LEADER:
1719
+ leader, value = get_cfws(value)
1720
+ else:
1721
+ leader = None
1722
+ if value[0]=='"':
1723
+ token, value = get_quoted_string(value)
1724
+ elif value[0] in SPECIALS:
1725
+ raise errors.HeaderParseError("Expected 'atom' or 'quoted-string' "
1726
+ "but found '{}'".format(value))
1727
+ else:
1728
+ token, value = get_atom(value)
1729
+ if leader is not None:
1730
+ token[:0] = [leader]
1731
+ return token, value
1732
+
1733
+ def get_phrase(value):
1734
+ """ phrase = 1*word / obs-phrase
1735
+ obs-phrase = word *(word / "." / CFWS)
1736
+
1737
+ This means a phrase can be a sequence of words, periods, and CFWS in any
1738
+ order as long as it starts with at least one word. If anything other than
1739
+ words is detected, an ObsoleteHeaderDefect is added to the token's defect
1740
+ list. We also accept a phrase that starts with CFWS followed by a dot;
1741
+ this is registered as an InvalidHeaderDefect, since it is not supported by
1742
+ even the obsolete grammar.
1743
+
1744
+ """
1745
+ phrase = Phrase()
1746
+ try:
1747
+ token, value = get_word(value)
1748
+ phrase.append(token)
1749
+ except errors.HeaderParseError:
1750
+ phrase.defects.append(errors.InvalidHeaderDefect(
1751
+ "phrase does not start with word"))
1752
+ while value and value[0] not in PHRASE_ENDS:
1753
+ if value[0]=='.':
1754
+ phrase.append(DOT)
1755
+ phrase.defects.append(errors.ObsoleteHeaderDefect(
1756
+ "period in 'phrase'"))
1757
+ value = value[1:]
1758
+ else:
1759
+ try:
1760
+ token, value = get_word(value)
1761
+ except errors.HeaderParseError:
1762
+ if value[0] in CFWS_LEADER:
1763
+ token, value = get_cfws(value)
1764
+ phrase.defects.append(errors.ObsoleteHeaderDefect(
1765
+ "comment found without atom"))
1766
+ else:
1767
+ raise
1768
+ phrase.append(token)
1769
+ return phrase, value
1770
+
1771
+ def get_local_part(value):
1772
+ """ local-part = dot-atom / quoted-string / obs-local-part
1773
+
1774
+ """
1775
+ local_part = LocalPart()
1776
+ leader = None
1777
+ if value[0] in CFWS_LEADER:
1778
+ leader, value = get_cfws(value)
1779
+ if not value:
1780
+ raise errors.HeaderParseError(
1781
+ "expected local-part but found '{}'".format(value))
1782
+ try:
1783
+ token, value = get_dot_atom(value)
1784
+ except errors.HeaderParseError:
1785
+ try:
1786
+ token, value = get_word(value)
1787
+ except errors.HeaderParseError:
1788
+ if value[0] != '\\' and value[0] in PHRASE_ENDS:
1789
+ raise
1790
+ token = TokenList()
1791
+ if leader is not None:
1792
+ token[:0] = [leader]
1793
+ local_part.append(token)
1794
+ if value and (value[0]=='\\' or value[0] not in PHRASE_ENDS):
1795
+ obs_local_part, value = get_obs_local_part(str(local_part) + value)
1796
+ if obs_local_part.token_type == 'invalid-obs-local-part':
1797
+ local_part.defects.append(errors.InvalidHeaderDefect(
1798
+ "local-part is not dot-atom, quoted-string, or obs-local-part"))
1799
+ else:
1800
+ local_part.defects.append(errors.ObsoleteHeaderDefect(
1801
+ "local-part is not a dot-atom (contains CFWS)"))
1802
+ local_part[0] = obs_local_part
1803
+ try:
1804
+ local_part.value.encode('ascii')
1805
+ except UnicodeEncodeError:
1806
+ local_part.defects.append(errors.NonASCIILocalPartDefect(
1807
+ "local-part contains non-ASCII characters)"))
1808
+ return local_part, value
1809
+
1810
+ def get_obs_local_part(value):
1811
+ """ obs-local-part = word *("." word)
1812
+ """
1813
+ obs_local_part = ObsLocalPart()
1814
+ last_non_ws_was_dot = False
1815
+ while value and (value[0]=='\\' or value[0] not in PHRASE_ENDS):
1816
+ if value[0] == '.':
1817
+ if last_non_ws_was_dot:
1818
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1819
+ "invalid repeated '.'"))
1820
+ obs_local_part.append(DOT)
1821
+ last_non_ws_was_dot = True
1822
+ value = value[1:]
1823
+ continue
1824
+ elif value[0]=='\\':
1825
+ obs_local_part.append(ValueTerminal(value[0],
1826
+ 'misplaced-special'))
1827
+ value = value[1:]
1828
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1829
+ "'\\' character outside of quoted-string/ccontent"))
1830
+ last_non_ws_was_dot = False
1831
+ continue
1832
+ if obs_local_part and obs_local_part[-1].token_type != 'dot':
1833
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1834
+ "missing '.' between words"))
1835
+ try:
1836
+ token, value = get_word(value)
1837
+ last_non_ws_was_dot = False
1838
+ except errors.HeaderParseError:
1839
+ if value[0] not in CFWS_LEADER:
1840
+ raise
1841
+ token, value = get_cfws(value)
1842
+ obs_local_part.append(token)
1843
+ if (obs_local_part[0].token_type == 'dot' or
1844
+ obs_local_part[0].token_type=='cfws' and
1845
+ obs_local_part[1].token_type=='dot'):
1846
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1847
+ "Invalid leading '.' in local part"))
1848
+ if (obs_local_part[-1].token_type == 'dot' or
1849
+ obs_local_part[-1].token_type=='cfws' and
1850
+ obs_local_part[-2].token_type=='dot'):
1851
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1852
+ "Invalid trailing '.' in local part"))
1853
+ if obs_local_part.defects:
1854
+ obs_local_part.token_type = 'invalid-obs-local-part'
1855
+ return obs_local_part, value
1856
+
1857
+ def get_dtext(value):
1858
+ """ dtext = <printable ascii except \ [ ]> / obs-dtext
1859
+ obs-dtext = obs-NO-WS-CTL / quoted-pair
1860
+
1861
+ We allow anything except the excluded characters, but if we find any
1862
+ ASCII other than the RFC defined printable ASCII an NonPrintableDefect is
1863
+ added to the token's defects list. Quoted pairs are converted to their
1864
+ unquoted values, so what is returned is a ptext token, in this case a
1865
+ ValueTerminal. If there were quoted-printables, an ObsoleteHeaderDefect is
1866
+ added to the returned token's defect list.
1867
+
1868
+ """
1869
+ ptext, value, had_qp = _get_ptext_to_endchars(value, '[]')
1870
+ ptext = ValueTerminal(ptext, 'ptext')
1871
+ if had_qp:
1872
+ ptext.defects.append(errors.ObsoleteHeaderDefect(
1873
+ "quoted printable found in domain-literal"))
1874
+ _validate_xtext(ptext)
1875
+ return ptext, value
1876
+
1877
+ def _check_for_early_dl_end(value, domain_literal):
1878
+ if value:
1879
+ return False
1880
+ domain_literal.append(errors.InvalidHeaderDefect(
1881
+ "end of input inside domain-literal"))
1882
+ domain_literal.append(ValueTerminal(']', 'domain-literal-end'))
1883
+ return True
1884
+
1885
+ def get_domain_literal(value):
1886
+ """ domain-literal = [CFWS] "[" *([FWS] dtext) [FWS] "]" [CFWS]
1887
+
1888
+ """
1889
+ domain_literal = DomainLiteral()
1890
+ if value[0] in CFWS_LEADER:
1891
+ token, value = get_cfws(value)
1892
+ domain_literal.append(token)
1893
+ if not value:
1894
+ raise errors.HeaderParseError("expected domain-literal")
1895
+ if value[0] != '[':
1896
+ raise errors.HeaderParseError("expected '[' at start of domain-literal "
1897
+ "but found '{}'".format(value))
1898
+ value = value[1:]
1899
+ if _check_for_early_dl_end(value, domain_literal):
1900
+ return domain_literal, value
1901
+ domain_literal.append(ValueTerminal('[', 'domain-literal-start'))
1902
+ if value[0] in WSP:
1903
+ token, value = get_fws(value)
1904
+ domain_literal.append(token)
1905
+ token, value = get_dtext(value)
1906
+ domain_literal.append(token)
1907
+ if _check_for_early_dl_end(value, domain_literal):
1908
+ return domain_literal, value
1909
+ if value[0] in WSP:
1910
+ token, value = get_fws(value)
1911
+ domain_literal.append(token)
1912
+ if _check_for_early_dl_end(value, domain_literal):
1913
+ return domain_literal, value
1914
+ if value[0] != ']':
1915
+ raise errors.HeaderParseError("expected ']' at end of domain-literal "
1916
+ "but found '{}'".format(value))
1917
+ domain_literal.append(ValueTerminal(']', 'domain-literal-end'))
1918
+ value = value[1:]
1919
+ if value and value[0] in CFWS_LEADER:
1920
+ token, value = get_cfws(value)
1921
+ domain_literal.append(token)
1922
+ return domain_literal, value
1923
+
1924
+ def get_domain(value):
1925
+ """ domain = dot-atom / domain-literal / obs-domain
1926
+ obs-domain = atom *("." atom))
1927
+
1928
+ """
1929
+ domain = Domain()
1930
+ leader = None
1931
+ if value[0] in CFWS_LEADER:
1932
+ leader, value = get_cfws(value)
1933
+ if not value:
1934
+ raise errors.HeaderParseError(
1935
+ "expected domain but found '{}'".format(value))
1936
+ if value[0] == '[':
1937
+ token, value = get_domain_literal(value)
1938
+ if leader is not None:
1939
+ token[:0] = [leader]
1940
+ domain.append(token)
1941
+ return domain, value
1942
+ try:
1943
+ token, value = get_dot_atom(value)
1944
+ except errors.HeaderParseError:
1945
+ token, value = get_atom(value)
1946
+ if leader is not None:
1947
+ token[:0] = [leader]
1948
+ domain.append(token)
1949
+ if value and value[0] == '.':
1950
+ domain.defects.append(errors.ObsoleteHeaderDefect(
1951
+ "domain is not a dot-atom (contains CFWS)"))
1952
+ if domain[0].token_type == 'dot-atom':
1953
+ domain[:] = domain[0]
1954
+ while value and value[0] == '.':
1955
+ domain.append(DOT)
1956
+ token, value = get_atom(value[1:])
1957
+ domain.append(token)
1958
+ return domain, value
1959
+
1960
+ def get_addr_spec(value):
1961
+ """ addr-spec = local-part "@" domain
1962
+
1963
+ """
1964
+ addr_spec = AddrSpec()
1965
+ token, value = get_local_part(value)
1966
+ addr_spec.append(token)
1967
+ if not value or value[0] != '@':
1968
+ addr_spec.defects.append(errors.InvalidHeaderDefect(
1969
+ "add-spec local part with no domain"))
1970
+ return addr_spec, value
1971
+ addr_spec.append(ValueTerminal('@', 'address-at-symbol'))
1972
+ token, value = get_domain(value[1:])
1973
+ addr_spec.append(token)
1974
+ return addr_spec, value
1975
+
1976
+ def get_obs_route(value):
1977
+ """ obs-route = obs-domain-list ":"
1978
+ obs-domain-list = *(CFWS / ",") "@" domain *("," [CFWS] ["@" domain])
1979
+
1980
+ Returns an obs-route token with the appropriate sub-tokens (that is,
1981
+ there is no obs-domain-list in the parse tree).
1982
+ """
1983
+ obs_route = ObsRoute()
1984
+ while value and (value[0]==',' or value[0] in CFWS_LEADER):
1985
+ if value[0] in CFWS_LEADER:
1986
+ token, value = get_cfws(value)
1987
+ obs_route.append(token)
1988
+ elif value[0] == ',':
1989
+ obs_route.append(ListSeparator)
1990
+ value = value[1:]
1991
+ if not value or value[0] != '@':
1992
+ raise errors.HeaderParseError(
1993
+ "expected obs-route domain but found '{}'".format(value))
1994
+ obs_route.append(RouteComponentMarker)
1995
+ token, value = get_domain(value[1:])
1996
+ obs_route.append(token)
1997
+ while value and value[0]==',':
1998
+ obs_route.append(ListSeparator)
1999
+ value = value[1:]
2000
+ if not value:
2001
+ break
2002
+ if value[0] in CFWS_LEADER:
2003
+ token, value = get_cfws(value)
2004
+ obs_route.append(token)
2005
+ if value[0] == '@':
2006
+ obs_route.append(RouteComponentMarker)
2007
+ token, value = get_domain(value[1:])
2008
+ obs_route.append(token)
2009
+ if not value:
2010
+ raise errors.HeaderParseError("end of header while parsing obs-route")
2011
+ if value[0] != ':':
2012
+ raise errors.HeaderParseError( "expected ':' marking end of "
2013
+ "obs-route but found '{}'".format(value))
2014
+ obs_route.append(ValueTerminal(':', 'end-of-obs-route-marker'))
2015
+ return obs_route, value[1:]
2016
+
2017
+ def get_angle_addr(value):
2018
+ """ angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
2019
+ obs-angle-addr = [CFWS] "<" obs-route addr-spec ">" [CFWS]
2020
+
2021
+ """
2022
+ angle_addr = AngleAddr()
2023
+ if value[0] in CFWS_LEADER:
2024
+ token, value = get_cfws(value)
2025
+ angle_addr.append(token)
2026
+ if not value or value[0] != '<':
2027
+ raise errors.HeaderParseError(
2028
+ "expected angle-addr but found '{}'".format(value))
2029
+ angle_addr.append(ValueTerminal('<', 'angle-addr-start'))
2030
+ value = value[1:]
2031
+ # Although it is not legal per RFC5322, SMTP uses '<>' in certain
2032
+ # circumstances.
2033
+ if value[0] == '>':
2034
+ angle_addr.append(ValueTerminal('>', 'angle-addr-end'))
2035
+ angle_addr.defects.append(errors.InvalidHeaderDefect(
2036
+ "null addr-spec in angle-addr"))
2037
+ value = value[1:]
2038
+ return angle_addr, value
2039
+ try:
2040
+ token, value = get_addr_spec(value)
2041
+ except errors.HeaderParseError:
2042
+ try:
2043
+ token, value = get_obs_route(value)
2044
+ angle_addr.defects.append(errors.ObsoleteHeaderDefect(
2045
+ "obsolete route specification in angle-addr"))
2046
+ except errors.HeaderParseError:
2047
+ raise errors.HeaderParseError(
2048
+ "expected addr-spec or obs-route but found '{}'".format(value))
2049
+ angle_addr.append(token)
2050
+ token, value = get_addr_spec(value)
2051
+ angle_addr.append(token)
2052
+ if value and value[0] == '>':
2053
+ value = value[1:]
2054
+ else:
2055
+ angle_addr.defects.append(errors.InvalidHeaderDefect(
2056
+ "missing trailing '>' on angle-addr"))
2057
+ angle_addr.append(ValueTerminal('>', 'angle-addr-end'))
2058
+ if value and value[0] in CFWS_LEADER:
2059
+ token, value = get_cfws(value)
2060
+ angle_addr.append(token)
2061
+ return angle_addr, value
2062
+
2063
+ def get_display_name(value):
2064
+ """ display-name = phrase
2065
+
2066
+ Because this is simply a name-rule, we don't return a display-name
2067
+ token containing a phrase, but rather a display-name token with
2068
+ the content of the phrase.
2069
+
2070
+ """
2071
+ display_name = DisplayName()
2072
+ token, value = get_phrase(value)
2073
+ display_name.extend(token[:])
2074
+ display_name.defects = token.defects[:]
2075
+ return display_name, value
2076
+
2077
+
2078
+ def get_name_addr(value):
2079
+ """ name-addr = [display-name] angle-addr
2080
+
2081
+ """
2082
+ name_addr = NameAddr()
2083
+ # Both the optional display name and the angle-addr can start with cfws.
2084
+ leader = None
2085
+ if value[0] in CFWS_LEADER:
2086
+ leader, value = get_cfws(value)
2087
+ if not value:
2088
+ raise errors.HeaderParseError(
2089
+ "expected name-addr but found '{}'".format(leader))
2090
+ if value[0] != '<':
2091
+ if value[0] in PHRASE_ENDS:
2092
+ raise errors.HeaderParseError(
2093
+ "expected name-addr but found '{}'".format(value))
2094
+ token, value = get_display_name(value)
2095
+ if not value:
2096
+ raise errors.HeaderParseError(
2097
+ "expected name-addr but found '{}'".format(token))
2098
+ if leader is not None:
2099
+ token[0][:0] = [leader]
2100
+ leader = None
2101
+ name_addr.append(token)
2102
+ token, value = get_angle_addr(value)
2103
+ if leader is not None:
2104
+ token[:0] = [leader]
2105
+ name_addr.append(token)
2106
+ return name_addr, value
2107
+
2108
+ def get_mailbox(value):
2109
+ """ mailbox = name-addr / addr-spec
2110
+
2111
+ """
2112
+ # The only way to figure out if we are dealing with a name-addr or an
2113
+ # addr-spec is to try parsing each one.
2114
+ mailbox = Mailbox()
2115
+ try:
2116
+ token, value = get_name_addr(value)
2117
+ except errors.HeaderParseError:
2118
+ try:
2119
+ token, value = get_addr_spec(value)
2120
+ except errors.HeaderParseError:
2121
+ raise errors.HeaderParseError(
2122
+ "expected mailbox but found '{}'".format(value))
2123
+ if any(isinstance(x, errors.InvalidHeaderDefect)
2124
+ for x in token.all_defects):
2125
+ mailbox.token_type = 'invalid-mailbox'
2126
+ mailbox.append(token)
2127
+ return mailbox, value
2128
+
2129
+ def get_invalid_mailbox(value, endchars):
2130
+ """ Read everything up to one of the chars in endchars.
2131
+
2132
+ This is outside the formal grammar. The InvalidMailbox TokenList that is
2133
+ returned acts like a Mailbox, but the data attributes are None.
2134
+
2135
+ """
2136
+ invalid_mailbox = InvalidMailbox()
2137
+ while value and value[0] not in endchars:
2138
+ if value[0] in PHRASE_ENDS:
2139
+ invalid_mailbox.append(ValueTerminal(value[0],
2140
+ 'misplaced-special'))
2141
+ value = value[1:]
2142
+ else:
2143
+ token, value = get_phrase(value)
2144
+ invalid_mailbox.append(token)
2145
+ return invalid_mailbox, value
2146
+
2147
+ def get_mailbox_list(value):
2148
+ """ mailbox-list = (mailbox *("," mailbox)) / obs-mbox-list
2149
+ obs-mbox-list = *([CFWS] ",") mailbox *("," [mailbox / CFWS])
2150
+
2151
+ For this routine we go outside the formal grammar in order to improve error
2152
+ handling. We recognize the end of the mailbox list only at the end of the
2153
+ value or at a ';' (the group terminator). This is so that we can turn
2154
+ invalid mailboxes into InvalidMailbox tokens and continue parsing any
2155
+ remaining valid mailboxes. We also allow all mailbox entries to be null,
2156
+ and this condition is handled appropriately at a higher level.
2157
+
2158
+ """
2159
+ mailbox_list = MailboxList()
2160
+ while value and value[0] != ';':
2161
+ try:
2162
+ token, value = get_mailbox(value)
2163
+ mailbox_list.append(token)
2164
+ except errors.HeaderParseError:
2165
+ leader = None
2166
+ if value[0] in CFWS_LEADER:
2167
+ leader, value = get_cfws(value)
2168
+ if not value or value[0] in ',;':
2169
+ mailbox_list.append(leader)
2170
+ mailbox_list.defects.append(errors.ObsoleteHeaderDefect(
2171
+ "empty element in mailbox-list"))
2172
+ else:
2173
+ token, value = get_invalid_mailbox(value, ',;')
2174
+ if leader is not None:
2175
+ token[:0] = [leader]
2176
+ mailbox_list.append(token)
2177
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
2178
+ "invalid mailbox in mailbox-list"))
2179
+ elif value[0] == ',':
2180
+ mailbox_list.defects.append(errors.ObsoleteHeaderDefect(
2181
+ "empty element in mailbox-list"))
2182
+ else:
2183
+ token, value = get_invalid_mailbox(value, ',;')
2184
+ if leader is not None:
2185
+ token[:0] = [leader]
2186
+ mailbox_list.append(token)
2187
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
2188
+ "invalid mailbox in mailbox-list"))
2189
+ if value and value[0] not in ',;':
2190
+ # Crap after mailbox; treat it as an invalid mailbox.
2191
+ # The mailbox info will still be available.
2192
+ mailbox = mailbox_list[-1]
2193
+ mailbox.token_type = 'invalid-mailbox'
2194
+ token, value = get_invalid_mailbox(value, ',;')
2195
+ mailbox.extend(token)
2196
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
2197
+ "invalid mailbox in mailbox-list"))
2198
+ if value and value[0] == ',':
2199
+ mailbox_list.append(ListSeparator)
2200
+ value = value[1:]
2201
+ return mailbox_list, value
2202
+
2203
+
2204
+ def get_group_list(value):
2205
+ """ group-list = mailbox-list / CFWS / obs-group-list
2206
+ obs-group-list = 1*([CFWS] ",") [CFWS]
2207
+
2208
+ """
2209
+ group_list = GroupList()
2210
+ if not value:
2211
+ group_list.defects.append(errors.InvalidHeaderDefect(
2212
+ "end of header before group-list"))
2213
+ return group_list, value
2214
+ leader = None
2215
+ if value and value[0] in CFWS_LEADER:
2216
+ leader, value = get_cfws(value)
2217
+ if not value:
2218
+ # This should never happen in email parsing, since CFWS-only is a
2219
+ # legal alternative to group-list in a group, which is the only
2220
+ # place group-list appears.
2221
+ group_list.defects.append(errors.InvalidHeaderDefect(
2222
+ "end of header in group-list"))
2223
+ group_list.append(leader)
2224
+ return group_list, value
2225
+ if value[0] == ';':
2226
+ group_list.append(leader)
2227
+ return group_list, value
2228
+ token, value = get_mailbox_list(value)
2229
+ if len(token.all_mailboxes)==0:
2230
+ if leader is not None:
2231
+ group_list.append(leader)
2232
+ group_list.extend(token)
2233
+ group_list.defects.append(errors.ObsoleteHeaderDefect(
2234
+ "group-list with empty entries"))
2235
+ return group_list, value
2236
+ if leader is not None:
2237
+ token[:0] = [leader]
2238
+ group_list.append(token)
2239
+ return group_list, value
2240
+
2241
+ def get_group(value):
2242
+ """ group = display-name ":" [group-list] ";" [CFWS]
2243
+
2244
+ """
2245
+ group = Group()
2246
+ token, value = get_display_name(value)
2247
+ if not value or value[0] != ':':
2248
+ raise errors.HeaderParseError("expected ':' at end of group "
2249
+ "display name but found '{}'".format(value))
2250
+ group.append(token)
2251
+ group.append(ValueTerminal(':', 'group-display-name-terminator'))
2252
+ value = value[1:]
2253
+ if value and value[0] == ';':
2254
+ group.append(ValueTerminal(';', 'group-terminator'))
2255
+ return group, value[1:]
2256
+ token, value = get_group_list(value)
2257
+ group.append(token)
2258
+ if not value:
2259
+ group.defects.append(errors.InvalidHeaderDefect(
2260
+ "end of header in group"))
2261
+ if value[0] != ';':
2262
+ raise errors.HeaderParseError(
2263
+ "expected ';' at end of group but found {}".format(value))
2264
+ group.append(ValueTerminal(';', 'group-terminator'))
2265
+ value = value[1:]
2266
+ if value and value[0] in CFWS_LEADER:
2267
+ token, value = get_cfws(value)
2268
+ group.append(token)
2269
+ return group, value
2270
+
2271
+ def get_address(value):
2272
+ """ address = mailbox / group
2273
+
2274
+ Note that counter-intuitively, an address can be either a single address or
2275
+ a list of addresses (a group). This is why the returned Address object has
2276
+ a 'mailboxes' attribute which treats a single address as a list of length
2277
+ one. When you need to differentiate between to two cases, extract the single
2278
+ element, which is either a mailbox or a group token.
2279
+
2280
+ """
2281
+ # The formal grammar isn't very helpful when parsing an address. mailbox
2282
+ # and group, especially when allowing for obsolete forms, start off very
2283
+ # similarly. It is only when you reach one of @, <, or : that you know
2284
+ # what you've got. So, we try each one in turn, starting with the more
2285
+ # likely of the two. We could perhaps make this more efficient by looking
2286
+ # for a phrase and then branching based on the next character, but that
2287
+ # would be a premature optimization.
2288
+ address = Address()
2289
+ try:
2290
+ token, value = get_group(value)
2291
+ except errors.HeaderParseError:
2292
+ try:
2293
+ token, value = get_mailbox(value)
2294
+ except errors.HeaderParseError:
2295
+ raise errors.HeaderParseError(
2296
+ "expected address but found '{}'".format(value))
2297
+ address.append(token)
2298
+ return address, value
2299
+
2300
+ def get_address_list(value):
2301
+ """ address_list = (address *("," address)) / obs-addr-list
2302
+ obs-addr-list = *([CFWS] ",") address *("," [address / CFWS])
2303
+
2304
+ We depart from the formal grammar here by continuing to parse until the end
2305
+ of the input, assuming the input to be entirely composed of an
2306
+ address-list. This is always true in email parsing, and allows us
2307
+ to skip invalid addresses to parse additional valid ones.
2308
+
2309
+ """
2310
+ address_list = AddressList()
2311
+ while value:
2312
+ try:
2313
+ token, value = get_address(value)
2314
+ address_list.append(token)
2315
+ except errors.HeaderParseError as err:
2316
+ leader = None
2317
+ if value[0] in CFWS_LEADER:
2318
+ leader, value = get_cfws(value)
2319
+ if not value or value[0] == ',':
2320
+ address_list.append(leader)
2321
+ address_list.defects.append(errors.ObsoleteHeaderDefect(
2322
+ "address-list entry with no content"))
2323
+ else:
2324
+ token, value = get_invalid_mailbox(value, ',')
2325
+ if leader is not None:
2326
+ token[:0] = [leader]
2327
+ address_list.append(Address([token]))
2328
+ address_list.defects.append(errors.InvalidHeaderDefect(
2329
+ "invalid address in address-list"))
2330
+ elif value[0] == ',':
2331
+ address_list.defects.append(errors.ObsoleteHeaderDefect(
2332
+ "empty element in address-list"))
2333
+ else:
2334
+ token, value = get_invalid_mailbox(value, ',')
2335
+ if leader is not None:
2336
+ token[:0] = [leader]
2337
+ address_list.append(Address([token]))
2338
+ address_list.defects.append(errors.InvalidHeaderDefect(
2339
+ "invalid address in address-list"))
2340
+ if value and value[0] != ',':
2341
+ # Crap after address; treat it as an invalid mailbox.
2342
+ # The mailbox info will still be available.
2343
+ mailbox = address_list[-1][0]
2344
+ mailbox.token_type = 'invalid-mailbox'
2345
+ token, value = get_invalid_mailbox(value, ',')
2346
+ mailbox.extend(token)
2347
+ address_list.defects.append(errors.InvalidHeaderDefect(
2348
+ "invalid address in address-list"))
2349
+ if value: # Must be a , at this point.
2350
+ address_list.append(ValueTerminal(',', 'list-separator'))
2351
+ value = value[1:]
2352
+ return address_list, value
2353
+
2354
+ #
2355
+ # XXX: As I begin to add additional header parsers, I'm realizing we probably
2356
+ # have two level of parser routines: the get_XXX methods that get a token in
2357
+ # the grammar, and parse_XXX methods that parse an entire field value. So
2358
+ # get_address_list above should really be a parse_ method, as probably should
2359
+ # be get_unstructured.
2360
+ #
2361
+
2362
+ def parse_mime_version(value):
2363
+ """ mime-version = [CFWS] 1*digit [CFWS] "." [CFWS] 1*digit [CFWS]
2364
+
2365
+ """
2366
+ # The [CFWS] is implicit in the RFC 2045 BNF.
2367
+ # XXX: This routine is a bit verbose, should factor out a get_int method.
2368
+ mime_version = MIMEVersion()
2369
+ if not value:
2370
+ mime_version.defects.append(errors.HeaderMissingRequiredValue(
2371
+ "Missing MIME version number (eg: 1.0)"))
2372
+ return mime_version
2373
+ if value[0] in CFWS_LEADER:
2374
+ token, value = get_cfws(value)
2375
+ mime_version.append(token)
2376
+ if not value:
2377
+ mime_version.defects.append(errors.HeaderMissingRequiredValue(
2378
+ "Expected MIME version number but found only CFWS"))
2379
+ digits = ''
2380
+ while value and value[0] != '.' and value[0] not in CFWS_LEADER:
2381
+ digits += value[0]
2382
+ value = value[1:]
2383
+ if not digits.isdigit():
2384
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2385
+ "Expected MIME major version number but found {!r}".format(digits)))
2386
+ mime_version.append(ValueTerminal(digits, 'xtext'))
2387
+ else:
2388
+ mime_version.major = int(digits)
2389
+ mime_version.append(ValueTerminal(digits, 'digits'))
2390
+ if value and value[0] in CFWS_LEADER:
2391
+ token, value = get_cfws(value)
2392
+ mime_version.append(token)
2393
+ if not value or value[0] != '.':
2394
+ if mime_version.major is not None:
2395
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2396
+ "Incomplete MIME version; found only major number"))
2397
+ if value:
2398
+ mime_version.append(ValueTerminal(value, 'xtext'))
2399
+ return mime_version
2400
+ mime_version.append(ValueTerminal('.', 'version-separator'))
2401
+ value = value[1:]
2402
+ if value and value[0] in CFWS_LEADER:
2403
+ token, value = get_cfws(value)
2404
+ mime_version.append(token)
2405
+ if not value:
2406
+ if mime_version.major is not None:
2407
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2408
+ "Incomplete MIME version; found only major number"))
2409
+ return mime_version
2410
+ digits = ''
2411
+ while value and value[0] not in CFWS_LEADER:
2412
+ digits += value[0]
2413
+ value = value[1:]
2414
+ if not digits.isdigit():
2415
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2416
+ "Expected MIME minor version number but found {!r}".format(digits)))
2417
+ mime_version.append(ValueTerminal(digits, 'xtext'))
2418
+ else:
2419
+ mime_version.minor = int(digits)
2420
+ mime_version.append(ValueTerminal(digits, 'digits'))
2421
+ if value and value[0] in CFWS_LEADER:
2422
+ token, value = get_cfws(value)
2423
+ mime_version.append(token)
2424
+ if value:
2425
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2426
+ "Excess non-CFWS text after MIME version"))
2427
+ mime_version.append(ValueTerminal(value, 'xtext'))
2428
+ return mime_version
2429
+
2430
+ def get_invalid_parameter(value):
2431
+ """ Read everything up to the next ';'.
2432
+
2433
+ This is outside the formal grammar. The InvalidParameter TokenList that is
2434
+ returned acts like a Parameter, but the data attributes are None.
2435
+
2436
+ """
2437
+ invalid_parameter = InvalidParameter()
2438
+ while value and value[0] != ';':
2439
+ if value[0] in PHRASE_ENDS:
2440
+ invalid_parameter.append(ValueTerminal(value[0],
2441
+ 'misplaced-special'))
2442
+ value = value[1:]
2443
+ else:
2444
+ token, value = get_phrase(value)
2445
+ invalid_parameter.append(token)
2446
+ return invalid_parameter, value
2447
+
2448
+ def get_ttext(value):
2449
+ """ttext = <matches _ttext_matcher>
2450
+
2451
+ We allow any non-TOKEN_ENDS in ttext, but add defects to the token's
2452
+ defects list if we find non-ttext characters. We also register defects for
2453
+ *any* non-printables even though the RFC doesn't exclude all of them,
2454
+ because we follow the spirit of RFC 5322.
2455
+
2456
+ """
2457
+ m = _non_token_end_matcher(value)
2458
+ if not m:
2459
+ raise errors.HeaderParseError(
2460
+ "expected ttext but found '{}'".format(value))
2461
+ ttext = m.group()
2462
+ value = value[len(ttext):]
2463
+ ttext = ValueTerminal(ttext, 'ttext')
2464
+ _validate_xtext(ttext)
2465
+ return ttext, value
2466
+
2467
+ def get_token(value):
2468
+ """token = [CFWS] 1*ttext [CFWS]
2469
+
2470
+ The RFC equivalent of ttext is any US-ASCII chars except space, ctls, or
2471
+ tspecials. We also exclude tabs even though the RFC doesn't.
2472
+
2473
+ The RFC implies the CFWS but is not explicit about it in the BNF.
2474
+
2475
+ """
2476
+ mtoken = Token()
2477
+ if value and value[0] in CFWS_LEADER:
2478
+ token, value = get_cfws(value)
2479
+ mtoken.append(token)
2480
+ if value and value[0] in TOKEN_ENDS:
2481
+ raise errors.HeaderParseError(
2482
+ "expected token but found '{}'".format(value))
2483
+ token, value = get_ttext(value)
2484
+ mtoken.append(token)
2485
+ if value and value[0] in CFWS_LEADER:
2486
+ token, value = get_cfws(value)
2487
+ mtoken.append(token)
2488
+ return mtoken, value
2489
+
2490
+ def get_attrtext(value):
2491
+ """attrtext = 1*(any non-ATTRIBUTE_ENDS character)
2492
+
2493
+ We allow any non-ATTRIBUTE_ENDS in attrtext, but add defects to the
2494
+ token's defects list if we find non-attrtext characters. We also register
2495
+ defects for *any* non-printables even though the RFC doesn't exclude all of
2496
+ them, because we follow the spirit of RFC 5322.
2497
+
2498
+ """
2499
+ m = _non_attribute_end_matcher(value)
2500
+ if not m:
2501
+ raise errors.HeaderParseError(
2502
+ "expected attrtext but found {!r}".format(value))
2503
+ attrtext = m.group()
2504
+ value = value[len(attrtext):]
2505
+ attrtext = ValueTerminal(attrtext, 'attrtext')
2506
+ _validate_xtext(attrtext)
2507
+ return attrtext, value
2508
+
2509
+ def get_attribute(value):
2510
+ """ [CFWS] 1*attrtext [CFWS]
2511
+
2512
+ This version of the BNF makes the CFWS explicit, and as usual we use a
2513
+ value terminal for the actual run of characters. The RFC equivalent of
2514
+ attrtext is the token characters, with the subtraction of '*', "'", and '%'.
2515
+ We include tab in the excluded set just as we do for token.
2516
+
2517
+ """
2518
+ attribute = Attribute()
2519
+ if value and value[0] in CFWS_LEADER:
2520
+ token, value = get_cfws(value)
2521
+ attribute.append(token)
2522
+ if value and value[0] in ATTRIBUTE_ENDS:
2523
+ raise errors.HeaderParseError(
2524
+ "expected token but found '{}'".format(value))
2525
+ token, value = get_attrtext(value)
2526
+ attribute.append(token)
2527
+ if value and value[0] in CFWS_LEADER:
2528
+ token, value = get_cfws(value)
2529
+ attribute.append(token)
2530
+ return attribute, value
2531
+
2532
+ def get_extended_attrtext(value):
2533
+ """attrtext = 1*(any non-ATTRIBUTE_ENDS character plus '%')
2534
+
2535
+ This is a special parsing routine so that we get a value that
2536
+ includes % escapes as a single string (which we decode as a single
2537
+ string later).
2538
+
2539
+ """
2540
+ m = _non_extended_attribute_end_matcher(value)
2541
+ if not m:
2542
+ raise errors.HeaderParseError(
2543
+ "expected extended attrtext but found {!r}".format(value))
2544
+ attrtext = m.group()
2545
+ value = value[len(attrtext):]
2546
+ attrtext = ValueTerminal(attrtext, 'extended-attrtext')
2547
+ _validate_xtext(attrtext)
2548
+ return attrtext, value
2549
+
2550
+ def get_extended_attribute(value):
2551
+ """ [CFWS] 1*extended_attrtext [CFWS]
2552
+
2553
+ This is like the non-extended version except we allow % characters, so that
2554
+ we can pick up an encoded value as a single string.
2555
+
2556
+ """
2557
+ # XXX: should we have an ExtendedAttribute TokenList?
2558
+ attribute = Attribute()
2559
+ if value and value[0] in CFWS_LEADER:
2560
+ token, value = get_cfws(value)
2561
+ attribute.append(token)
2562
+ if value and value[0] in EXTENDED_ATTRIBUTE_ENDS:
2563
+ raise errors.HeaderParseError(
2564
+ "expected token but found '{}'".format(value))
2565
+ token, value = get_extended_attrtext(value)
2566
+ attribute.append(token)
2567
+ if value and value[0] in CFWS_LEADER:
2568
+ token, value = get_cfws(value)
2569
+ attribute.append(token)
2570
+ return attribute, value
2571
+
2572
+ def get_section(value):
2573
+ """ '*' digits
2574
+
2575
+ The formal BNF is more complicated because leading 0s are not allowed. We
2576
+ check for that and add a defect. We also assume no CFWS is allowed between
2577
+ the '*' and the digits, though the RFC is not crystal clear on that.
2578
+ The caller should already have dealt with leading CFWS.
2579
+
2580
+ """
2581
+ section = Section()
2582
+ if not value or value[0] != '*':
2583
+ raise errors.HeaderParseError("Expected section but found {}".format(
2584
+ value))
2585
+ section.append(ValueTerminal('*', 'section-marker'))
2586
+ value = value[1:]
2587
+ if not value or not value[0].isdigit():
2588
+ raise errors.HeaderParseError("Expected section number but "
2589
+ "found {}".format(value))
2590
+ digits = ''
2591
+ while value and value[0].isdigit():
2592
+ digits += value[0]
2593
+ value = value[1:]
2594
+ if digits[0] == '0' and digits != '0':
2595
+ section.defects.append(errors.InvalidHeaderError("section number"
2596
+ "has an invalid leading 0"))
2597
+ section.number = int(digits)
2598
+ section.append(ValueTerminal(digits, 'digits'))
2599
+ return section, value
2600
+
2601
+
2602
+ def get_value(value):
2603
+ """ quoted-string / attribute
2604
+
2605
+ """
2606
+ v = Value()
2607
+ if not value:
2608
+ raise errors.HeaderParseError("Expected value but found end of string")
2609
+ leader = None
2610
+ if value[0] in CFWS_LEADER:
2611
+ leader, value = get_cfws(value)
2612
+ if not value:
2613
+ raise errors.HeaderParseError("Expected value but found "
2614
+ "only {}".format(leader))
2615
+ if value[0] == '"':
2616
+ token, value = get_quoted_string(value)
2617
+ else:
2618
+ token, value = get_extended_attribute(value)
2619
+ if leader is not None:
2620
+ token[:0] = [leader]
2621
+ v.append(token)
2622
+ return v, value
2623
+
2624
+ def get_parameter(value):
2625
+ """ attribute [section] ["*"] [CFWS] "=" value
2626
+
2627
+ The CFWS is implied by the RFC but not made explicit in the BNF. This
2628
+ simplified form of the BNF from the RFC is made to conform with the RFC BNF
2629
+ through some extra checks. We do it this way because it makes both error
2630
+ recovery and working with the resulting parse tree easier.
2631
+ """
2632
+ # It is possible CFWS would also be implicitly allowed between the section
2633
+ # and the 'extended-attribute' marker (the '*') , but we've never seen that
2634
+ # in the wild and we will therefore ignore the possibility.
2635
+ param = Parameter()
2636
+ token, value = get_attribute(value)
2637
+ param.append(token)
2638
+ if not value or value[0] == ';':
2639
+ param.defects.append(errors.InvalidHeaderDefect("Parameter contains "
2640
+ "name ({}) but no value".format(token)))
2641
+ return param, value
2642
+ if value[0] == '*':
2643
+ try:
2644
+ token, value = get_section(value)
2645
+ param.sectioned = True
2646
+ param.append(token)
2647
+ except errors.HeaderParseError:
2648
+ pass
2649
+ if not value:
2650
+ raise errors.HeaderParseError("Incomplete parameter")
2651
+ if value[0] == '*':
2652
+ param.append(ValueTerminal('*', 'extended-parameter-marker'))
2653
+ value = value[1:]
2654
+ param.extended = True
2655
+ if value[0] != '=':
2656
+ raise errors.HeaderParseError("Parameter not followed by '='")
2657
+ param.append(ValueTerminal('=', 'parameter-separator'))
2658
+ value = value[1:]
2659
+ leader = None
2660
+ if value and value[0] in CFWS_LEADER:
2661
+ token, value = get_cfws(value)
2662
+ param.append(token)
2663
+ remainder = None
2664
+ appendto = param
2665
+ if param.extended and value and value[0] == '"':
2666
+ # Now for some serious hackery to handle the common invalid case of
2667
+ # double quotes around an extended value. We also accept (with defect)
2668
+ # a value marked as encoded that isn't really.
2669
+ qstring, remainder = get_quoted_string(value)
2670
+ inner_value = qstring.stripped_value
2671
+ semi_valid = False
2672
+ if param.section_number == 0:
2673
+ if inner_value and inner_value[0] == "'":
2674
+ semi_valid = True
2675
+ else:
2676
+ token, rest = get_attrtext(inner_value)
2677
+ if rest and rest[0] == "'":
2678
+ semi_valid = True
2679
+ else:
2680
+ try:
2681
+ token, rest = get_extended_attrtext(inner_value)
2682
+ except:
2683
+ pass
2684
+ else:
2685
+ if not rest:
2686
+ semi_valid = True
2687
+ if semi_valid:
2688
+ param.defects.append(errors.InvalidHeaderDefect(
2689
+ "Quoted string value for extended parameter is invalid"))
2690
+ param.append(qstring)
2691
+ for t in qstring:
2692
+ if t.token_type == 'bare-quoted-string':
2693
+ t[:] = []
2694
+ appendto = t
2695
+ break
2696
+ value = inner_value
2697
+ else:
2698
+ remainder = None
2699
+ param.defects.append(errors.InvalidHeaderDefect(
2700
+ "Parameter marked as extended but appears to have a "
2701
+ "quoted string value that is non-encoded"))
2702
+ if value and value[0] == "'":
2703
+ token = None
2704
+ else:
2705
+ token, value = get_value(value)
2706
+ if not param.extended or param.section_number > 0:
2707
+ if not value or value[0] != "'":
2708
+ appendto.append(token)
2709
+ if remainder is not None:
2710
+ assert not value, value
2711
+ value = remainder
2712
+ return param, value
2713
+ param.defects.append(errors.InvalidHeaderDefect(
2714
+ "Apparent initial-extended-value but attribute "
2715
+ "was not marked as extended or was not initial section"))
2716
+ if not value:
2717
+ # Assume the charset/lang is missing and the token is the value.
2718
+ param.defects.append(errors.InvalidHeaderDefect(
2719
+ "Missing required charset/lang delimiters"))
2720
+ appendto.append(token)
2721
+ if remainder is None:
2722
+ return param, value
2723
+ else:
2724
+ if token is not None:
2725
+ for t in token:
2726
+ if t.token_type == 'extended-attrtext':
2727
+ break
2728
+ t.token_type == 'attrtext'
2729
+ appendto.append(t)
2730
+ param.charset = t.value
2731
+ if value[0] != "'":
2732
+ raise errors.HeaderParseError("Expected RFC2231 char/lang encoding "
2733
+ "delimiter, but found {!r}".format(value))
2734
+ appendto.append(ValueTerminal("'", 'RFC2231 delimiter'))
2735
+ value = value[1:]
2736
+ if value and value[0] != "'":
2737
+ token, value = get_attrtext(value)
2738
+ appendto.append(token)
2739
+ param.lang = token.value
2740
+ if not value or value[0] != "'":
2741
+ raise errors.HeaderParseError("Expected RFC2231 char/lang encoding "
2742
+ "delimiter, but found {}".format(value))
2743
+ appendto.append(ValueTerminal("'", 'RFC2231 delimiter'))
2744
+ value = value[1:]
2745
+ if remainder is not None:
2746
+ # Treat the rest of value as bare quoted string content.
2747
+ v = Value()
2748
+ while value:
2749
+ if value[0] in WSP:
2750
+ token, value = get_fws(value)
2751
+ else:
2752
+ token, value = get_qcontent(value)
2753
+ v.append(token)
2754
+ token = v
2755
+ else:
2756
+ token, value = get_value(value)
2757
+ appendto.append(token)
2758
+ if remainder is not None:
2759
+ assert not value, value
2760
+ value = remainder
2761
+ return param, value
2762
+
2763
+ def parse_mime_parameters(value):
2764
+ """ parameter *( ";" parameter )
2765
+
2766
+ That BNF is meant to indicate this routine should only be called after
2767
+ finding and handling the leading ';'. There is no corresponding rule in
2768
+ the formal RFC grammar, but it is more convenient for us for the set of
2769
+ parameters to be treated as its own TokenList.
2770
+
2771
+ This is 'parse' routine because it consumes the reminaing value, but it
2772
+ would never be called to parse a full header. Instead it is called to
2773
+ parse everything after the non-parameter value of a specific MIME header.
2774
+
2775
+ """
2776
+ mime_parameters = MimeParameters()
2777
+ while value:
2778
+ try:
2779
+ token, value = get_parameter(value)
2780
+ mime_parameters.append(token)
2781
+ except errors.HeaderParseError as err:
2782
+ leader = None
2783
+ if value[0] in CFWS_LEADER:
2784
+ leader, value = get_cfws(value)
2785
+ if not value:
2786
+ mime_parameters.append(leader)
2787
+ return mime_parameters
2788
+ if value[0] == ';':
2789
+ if leader is not None:
2790
+ mime_parameters.append(leader)
2791
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2792
+ "parameter entry with no content"))
2793
+ else:
2794
+ token, value = get_invalid_parameter(value)
2795
+ if leader:
2796
+ token[:0] = [leader]
2797
+ mime_parameters.append(token)
2798
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2799
+ "invalid parameter {!r}".format(token)))
2800
+ if value and value[0] != ';':
2801
+ # Junk after the otherwise valid parameter. Mark it as
2802
+ # invalid, but it will have a value.
2803
+ param = mime_parameters[-1]
2804
+ param.token_type = 'invalid-parameter'
2805
+ token, value = get_invalid_parameter(value)
2806
+ param.extend(token)
2807
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2808
+ "parameter with invalid trailing text {!r}".format(token)))
2809
+ if value:
2810
+ # Must be a ';' at this point.
2811
+ mime_parameters.append(ValueTerminal(';', 'parameter-separator'))
2812
+ value = value[1:]
2813
+ return mime_parameters
2814
+
2815
+ def _find_mime_parameters(tokenlist, value):
2816
+ """Do our best to find the parameters in an invalid MIME header
2817
+
2818
+ """
2819
+ while value and value[0] != ';':
2820
+ if value[0] in PHRASE_ENDS:
2821
+ tokenlist.append(ValueTerminal(value[0], 'misplaced-special'))
2822
+ value = value[1:]
2823
+ else:
2824
+ token, value = get_phrase(value)
2825
+ tokenlist.append(token)
2826
+ if not value:
2827
+ return
2828
+ tokenlist.append(ValueTerminal(';', 'parameter-separator'))
2829
+ tokenlist.append(parse_mime_parameters(value[1:]))
2830
+
2831
+ def parse_content_type_header(value):
2832
+ """ maintype "/" subtype *( ";" parameter )
2833
+
2834
+ The maintype and substype are tokens. Theoretically they could
2835
+ be checked against the official IANA list + x-token, but we
2836
+ don't do that.
2837
+ """
2838
+ ctype = ContentType()
2839
+ recover = False
2840
+ if not value:
2841
+ ctype.defects.append(errors.HeaderMissingRequiredValue(
2842
+ "Missing content type specification"))
2843
+ return ctype
2844
+ try:
2845
+ token, value = get_token(value)
2846
+ except errors.HeaderParseError:
2847
+ ctype.defects.append(errors.InvalidHeaderDefect(
2848
+ "Expected content maintype but found {!r}".format(value)))
2849
+ _find_mime_parameters(ctype, value)
2850
+ return ctype
2851
+ ctype.append(token)
2852
+ # XXX: If we really want to follow the formal grammer we should make
2853
+ # mantype and subtype specialized TokenLists here. Probably not worth it.
2854
+ if not value or value[0] != '/':
2855
+ ctype.defects.append(errors.InvalidHeaderDefect(
2856
+ "Invalid content type"))
2857
+ if value:
2858
+ _find_mime_parameters(ctype, value)
2859
+ return ctype
2860
+ ctype.maintype = token.value.strip().lower()
2861
+ ctype.append(ValueTerminal('/', 'content-type-separator'))
2862
+ value = value[1:]
2863
+ try:
2864
+ token, value = get_token(value)
2865
+ except errors.HeaderParseError:
2866
+ ctype.defects.append(errors.InvalidHeaderDefect(
2867
+ "Expected content subtype but found {!r}".format(value)))
2868
+ _find_mime_parameters(ctype, value)
2869
+ return ctype
2870
+ ctype.append(token)
2871
+ ctype.subtype = token.value.strip().lower()
2872
+ if not value:
2873
+ return ctype
2874
+ if value[0] != ';':
2875
+ ctype.defects.append(errors.InvalidHeaderDefect(
2876
+ "Only parameters are valid after content type, but "
2877
+ "found {!r}".format(value)))
2878
+ # The RFC requires that a syntactically invalid content-type be treated
2879
+ # as text/plain. Perhaps we should postel this, but we should probably
2880
+ # only do that if we were checking the subtype value against IANA.
2881
+ del ctype.maintype, ctype.subtype
2882
+ _find_mime_parameters(ctype, value)
2883
+ return ctype
2884
+ ctype.append(ValueTerminal(';', 'parameter-separator'))
2885
+ ctype.append(parse_mime_parameters(value[1:]))
2886
+ return ctype
2887
+
2888
+ def parse_content_disposition_header(value):
2889
+ """ disposition-type *( ";" parameter )
2890
+
2891
+ """
2892
+ disp_header = ContentDisposition()
2893
+ if not value:
2894
+ disp_header.defects.append(errors.HeaderMissingRequiredValue(
2895
+ "Missing content disposition"))
2896
+ return disp_header
2897
+ try:
2898
+ token, value = get_token(value)
2899
+ except errors.HeaderParseError:
2900
+ disp_header.defects.append(errors.InvalidHeaderDefect(
2901
+ "Expected content disposition but found {!r}".format(value)))
2902
+ _find_mime_parameters(disp_header, value)
2903
+ return disp_header
2904
+ disp_header.append(token)
2905
+ disp_header.content_disposition = token.value.strip().lower()
2906
+ if not value:
2907
+ return disp_header
2908
+ if value[0] != ';':
2909
+ disp_header.defects.append(errors.InvalidHeaderDefect(
2910
+ "Only parameters are valid after content disposition, but "
2911
+ "found {!r}".format(value)))
2912
+ _find_mime_parameters(disp_header, value)
2913
+ return disp_header
2914
+ disp_header.append(ValueTerminal(';', 'parameter-separator'))
2915
+ disp_header.append(parse_mime_parameters(value[1:]))
2916
+ return disp_header
2917
+
2918
+ def parse_content_transfer_encoding_header(value):
2919
+ """ mechanism
2920
+
2921
+ """
2922
+ # We should probably validate the values, since the list is fixed.
2923
+ cte_header = ContentTransferEncoding()
2924
+ if not value:
2925
+ cte_header.defects.append(errors.HeaderMissingRequiredValue(
2926
+ "Missing content transfer encoding"))
2927
+ return cte_header
2928
+ try:
2929
+ token, value = get_token(value)
2930
+ except errors.HeaderParseError:
2931
+ cte_header.defects.append(errors.InvalidHeaderDefect(
2932
+ "Expected content transfer encoding but found {!r}".format(value)))
2933
+ else:
2934
+ cte_header.append(token)
2935
+ cte_header.cte = token.value.strip().lower()
2936
+ if not value:
2937
+ return cte_header
2938
+ while value:
2939
+ cte_header.defects.append(errors.InvalidHeaderDefect(
2940
+ "Extra text after content transfer encoding"))
2941
+ if value[0] in PHRASE_ENDS:
2942
+ cte_header.append(ValueTerminal(value[0], 'misplaced-special'))
2943
+ value = value[1:]
2944
+ else:
2945
+ token, value = get_phrase(value)
2946
+ cte_header.append(token)
2947
+ return cte_header