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,3841 @@
1
+ #
2
+ # Unit tests for the multiprocessing package
3
+ #
4
+
5
+ import unittest
6
+ import queue as pyqueue
7
+ import time
8
+ import io
9
+ import itertools
10
+ import sys
11
+ import os
12
+ import gc
13
+ import errno
14
+ import signal
15
+ import array
16
+ import socket
17
+ import random
18
+ import logging
19
+ import struct
20
+ import operator
21
+ import test.support
22
+ import test.script_helper
23
+
24
+
25
+ # Skip tests if _multiprocessing wasn't built.
26
+ _multiprocessing = test.support.import_module('_multiprocessing')
27
+ # Skip tests if sem_open implementation is broken.
28
+ test.support.import_module('multiprocessing.synchronize')
29
+ # import threading after _multiprocessing to raise a more revelant error
30
+ # message: "No module named _multiprocessing". _multiprocessing is not compiled
31
+ # without thread support.
32
+ import threading
33
+
34
+ import multiprocessing.dummy
35
+ import multiprocessing.connection
36
+ import multiprocessing.managers
37
+ import multiprocessing.heap
38
+ import multiprocessing.pool
39
+
40
+ from multiprocessing import util
41
+
42
+ try:
43
+ from multiprocessing import reduction
44
+ HAS_REDUCTION = reduction.HAVE_SEND_HANDLE
45
+ except ImportError:
46
+ HAS_REDUCTION = False
47
+
48
+ try:
49
+ from multiprocessing.sharedctypes import Value, copy
50
+ HAS_SHAREDCTYPES = True
51
+ except ImportError:
52
+ HAS_SHAREDCTYPES = False
53
+
54
+ try:
55
+ import msvcrt
56
+ except ImportError:
57
+ msvcrt = None
58
+
59
+ #
60
+ #
61
+ #
62
+
63
+ def latin(s):
64
+ return s.encode('latin')
65
+
66
+ #
67
+ # Constants
68
+ #
69
+
70
+ LOG_LEVEL = util.SUBWARNING
71
+ #LOG_LEVEL = logging.DEBUG
72
+
73
+ DELTA = 0.1
74
+ CHECK_TIMINGS = False # making true makes tests take a lot longer
75
+ # and can sometimes cause some non-serious
76
+ # failures because some calls block a bit
77
+ # longer than expected
78
+ if CHECK_TIMINGS:
79
+ TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.82, 0.35, 1.4
80
+ else:
81
+ TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.1, 0.1, 0.1
82
+
83
+ HAVE_GETVALUE = not getattr(_multiprocessing,
84
+ 'HAVE_BROKEN_SEM_GETVALUE', False)
85
+
86
+ WIN32 = (sys.platform == "win32")
87
+
88
+ from multiprocessing.connection import wait
89
+
90
+ def wait_for_handle(handle, timeout):
91
+ if timeout is not None and timeout < 0.0:
92
+ timeout = None
93
+ return wait([handle], timeout)
94
+
95
+ try:
96
+ MAXFD = os.sysconf("SC_OPEN_MAX")
97
+ except:
98
+ MAXFD = 256
99
+
100
+ # To speed up tests when using the forkserver, we can preload these:
101
+ PRELOAD = ['__main__', 'test.test_multiprocessing_forkserver']
102
+
103
+ #
104
+ # Some tests require ctypes
105
+ #
106
+
107
+ try:
108
+ from ctypes import Structure, c_int, c_double
109
+ except ImportError:
110
+ Structure = object
111
+ c_int = c_double = None
112
+
113
+
114
+ def check_enough_semaphores():
115
+ """Check that the system supports enough semaphores to run the test."""
116
+ # minimum number of semaphores available according to POSIX
117
+ nsems_min = 256
118
+ try:
119
+ nsems = os.sysconf("SC_SEM_NSEMS_MAX")
120
+ except (AttributeError, ValueError):
121
+ # sysconf not available or setting not available
122
+ return
123
+ if nsems == -1 or nsems >= nsems_min:
124
+ return
125
+ raise unittest.SkipTest("The OS doesn't support enough semaphores "
126
+ "to run the test (required: %d)." % nsems_min)
127
+
128
+
129
+ #
130
+ # Creates a wrapper for a function which records the time it takes to finish
131
+ #
132
+
133
+ class TimingWrapper(object):
134
+
135
+ def __init__(self, func):
136
+ self.func = func
137
+ self.elapsed = None
138
+
139
+ def __call__(self, *args, **kwds):
140
+ t = time.time()
141
+ try:
142
+ return self.func(*args, **kwds)
143
+ finally:
144
+ self.elapsed = time.time() - t
145
+
146
+ #
147
+ # Base class for test cases
148
+ #
149
+
150
+ class BaseTestCase(object):
151
+
152
+ ALLOWED_TYPES = ('processes', 'manager', 'threads')
153
+
154
+ def assertTimingAlmostEqual(self, a, b):
155
+ if CHECK_TIMINGS:
156
+ self.assertAlmostEqual(a, b, 1)
157
+
158
+ def assertReturnsIfImplemented(self, value, func, *args):
159
+ try:
160
+ res = func(*args)
161
+ except NotImplementedError:
162
+ pass
163
+ else:
164
+ return self.assertEqual(value, res)
165
+
166
+ # For the sanity of Windows users, rather than crashing or freezing in
167
+ # multiple ways.
168
+ def __reduce__(self, *args):
169
+ raise NotImplementedError("shouldn't try to pickle a test case")
170
+
171
+ __reduce_ex__ = __reduce__
172
+
173
+ #
174
+ # Return the value of a semaphore
175
+ #
176
+
177
+ def get_value(self):
178
+ try:
179
+ return self.get_value()
180
+ except AttributeError:
181
+ try:
182
+ return self._Semaphore__value
183
+ except AttributeError:
184
+ try:
185
+ return self._value
186
+ except AttributeError:
187
+ raise NotImplementedError
188
+
189
+ #
190
+ # Testcases
191
+ #
192
+
193
+ class _TestProcess(BaseTestCase):
194
+
195
+ ALLOWED_TYPES = ('processes', 'threads')
196
+
197
+ def test_current(self):
198
+ if self.TYPE == 'threads':
199
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
200
+
201
+ current = self.current_process()
202
+ authkey = current.authkey
203
+
204
+ self.assertTrue(current.is_alive())
205
+ self.assertTrue(not current.daemon)
206
+ self.assertIsInstance(authkey, bytes)
207
+ self.assertTrue(len(authkey) > 0)
208
+ self.assertEqual(current.ident, os.getpid())
209
+ self.assertEqual(current.exitcode, None)
210
+
211
+ def test_daemon_argument(self):
212
+ if self.TYPE == "threads":
213
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
214
+
215
+ # By default uses the current process's daemon flag.
216
+ proc0 = self.Process(target=self._test)
217
+ self.assertEqual(proc0.daemon, self.current_process().daemon)
218
+ proc1 = self.Process(target=self._test, daemon=True)
219
+ self.assertTrue(proc1.daemon)
220
+ proc2 = self.Process(target=self._test, daemon=False)
221
+ self.assertFalse(proc2.daemon)
222
+
223
+ @classmethod
224
+ def _test(cls, q, *args, **kwds):
225
+ current = cls.current_process()
226
+ q.put(args)
227
+ q.put(kwds)
228
+ q.put(current.name)
229
+ if cls.TYPE != 'threads':
230
+ q.put(bytes(current.authkey))
231
+ q.put(current.pid)
232
+
233
+ def test_process(self):
234
+ q = self.Queue(1)
235
+ e = self.Event()
236
+ args = (q, 1, 2)
237
+ kwargs = {'hello':23, 'bye':2.54}
238
+ name = 'SomeProcess'
239
+ p = self.Process(
240
+ target=self._test, args=args, kwargs=kwargs, name=name
241
+ )
242
+ p.daemon = True
243
+ current = self.current_process()
244
+
245
+ if self.TYPE != 'threads':
246
+ self.assertEqual(p.authkey, current.authkey)
247
+ self.assertEqual(p.is_alive(), False)
248
+ self.assertEqual(p.daemon, True)
249
+ self.assertNotIn(p, self.active_children())
250
+ self.assertTrue(type(self.active_children()) is list)
251
+ self.assertEqual(p.exitcode, None)
252
+
253
+ p.start()
254
+
255
+ self.assertEqual(p.exitcode, None)
256
+ self.assertEqual(p.is_alive(), True)
257
+ self.assertIn(p, self.active_children())
258
+
259
+ self.assertEqual(q.get(), args[1:])
260
+ self.assertEqual(q.get(), kwargs)
261
+ self.assertEqual(q.get(), p.name)
262
+ if self.TYPE != 'threads':
263
+ self.assertEqual(q.get(), current.authkey)
264
+ self.assertEqual(q.get(), p.pid)
265
+
266
+ p.join()
267
+
268
+ self.assertEqual(p.exitcode, 0)
269
+ self.assertEqual(p.is_alive(), False)
270
+ self.assertNotIn(p, self.active_children())
271
+
272
+ @classmethod
273
+ def _test_terminate(cls):
274
+ time.sleep(100)
275
+
276
+ def test_terminate(self):
277
+ if self.TYPE == 'threads':
278
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
279
+
280
+ p = self.Process(target=self._test_terminate)
281
+ p.daemon = True
282
+ p.start()
283
+
284
+ self.assertEqual(p.is_alive(), True)
285
+ self.assertIn(p, self.active_children())
286
+ self.assertEqual(p.exitcode, None)
287
+
288
+ join = TimingWrapper(p.join)
289
+
290
+ self.assertEqual(join(0), None)
291
+ self.assertTimingAlmostEqual(join.elapsed, 0.0)
292
+ self.assertEqual(p.is_alive(), True)
293
+
294
+ self.assertEqual(join(-1), None)
295
+ self.assertTimingAlmostEqual(join.elapsed, 0.0)
296
+ self.assertEqual(p.is_alive(), True)
297
+
298
+ # XXX maybe terminating too soon causes the problems on Gentoo...
299
+ time.sleep(1)
300
+
301
+ p.terminate()
302
+
303
+ if hasattr(signal, 'alarm'):
304
+ # On the Gentoo buildbot waitpid() often seems to block forever.
305
+ # We use alarm() to interrupt it if it blocks for too long.
306
+ def handler(*args):
307
+ raise RuntimeError('join took too long: %s' % p)
308
+ old_handler = signal.signal(signal.SIGALRM, handler)
309
+ try:
310
+ signal.alarm(10)
311
+ self.assertEqual(join(), None)
312
+ finally:
313
+ signal.alarm(0)
314
+ signal.signal(signal.SIGALRM, old_handler)
315
+ else:
316
+ self.assertEqual(join(), None)
317
+
318
+ self.assertTimingAlmostEqual(join.elapsed, 0.0)
319
+
320
+ self.assertEqual(p.is_alive(), False)
321
+ self.assertNotIn(p, self.active_children())
322
+
323
+ p.join()
324
+
325
+ # XXX sometimes get p.exitcode == 0 on Windows ...
326
+ #self.assertEqual(p.exitcode, -signal.SIGTERM)
327
+
328
+ def test_cpu_count(self):
329
+ try:
330
+ cpus = multiprocessing.cpu_count()
331
+ except NotImplementedError:
332
+ cpus = 1
333
+ self.assertTrue(type(cpus) is int)
334
+ self.assertTrue(cpus >= 1)
335
+
336
+ def test_active_children(self):
337
+ self.assertEqual(type(self.active_children()), list)
338
+
339
+ p = self.Process(target=time.sleep, args=(DELTA,))
340
+ self.assertNotIn(p, self.active_children())
341
+
342
+ p.daemon = True
343
+ p.start()
344
+ self.assertIn(p, self.active_children())
345
+
346
+ p.join()
347
+ self.assertNotIn(p, self.active_children())
348
+
349
+ @classmethod
350
+ def _test_recursion(cls, wconn, id):
351
+ wconn.send(id)
352
+ if len(id) < 2:
353
+ for i in range(2):
354
+ p = cls.Process(
355
+ target=cls._test_recursion, args=(wconn, id+[i])
356
+ )
357
+ p.start()
358
+ p.join()
359
+
360
+ def test_recursion(self):
361
+ rconn, wconn = self.Pipe(duplex=False)
362
+ self._test_recursion(wconn, [])
363
+
364
+ time.sleep(DELTA)
365
+ result = []
366
+ while rconn.poll():
367
+ result.append(rconn.recv())
368
+
369
+ expected = [
370
+ [],
371
+ [0],
372
+ [0, 0],
373
+ [0, 1],
374
+ [1],
375
+ [1, 0],
376
+ [1, 1]
377
+ ]
378
+ self.assertEqual(result, expected)
379
+
380
+ @classmethod
381
+ def _test_sentinel(cls, event):
382
+ event.wait(10.0)
383
+
384
+ def test_sentinel(self):
385
+ if self.TYPE == "threads":
386
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
387
+ event = self.Event()
388
+ p = self.Process(target=self._test_sentinel, args=(event,))
389
+ with self.assertRaises(ValueError):
390
+ p.sentinel
391
+ p.start()
392
+ self.addCleanup(p.join)
393
+ sentinel = p.sentinel
394
+ self.assertIsInstance(sentinel, int)
395
+ self.assertFalse(wait_for_handle(sentinel, timeout=0.0))
396
+ event.set()
397
+ p.join()
398
+ self.assertTrue(wait_for_handle(sentinel, timeout=1))
399
+
400
+ #
401
+ #
402
+ #
403
+
404
+ class _UpperCaser(multiprocessing.Process):
405
+
406
+ def __init__(self):
407
+ multiprocessing.Process.__init__(self)
408
+ self.child_conn, self.parent_conn = multiprocessing.Pipe()
409
+
410
+ def run(self):
411
+ self.parent_conn.close()
412
+ for s in iter(self.child_conn.recv, None):
413
+ self.child_conn.send(s.upper())
414
+ self.child_conn.close()
415
+
416
+ def submit(self, s):
417
+ assert type(s) is str
418
+ self.parent_conn.send(s)
419
+ return self.parent_conn.recv()
420
+
421
+ def stop(self):
422
+ self.parent_conn.send(None)
423
+ self.parent_conn.close()
424
+ self.child_conn.close()
425
+
426
+ class _TestSubclassingProcess(BaseTestCase):
427
+
428
+ ALLOWED_TYPES = ('processes',)
429
+
430
+ def test_subclassing(self):
431
+ uppercaser = _UpperCaser()
432
+ uppercaser.daemon = True
433
+ uppercaser.start()
434
+ self.assertEqual(uppercaser.submit('hello'), 'HELLO')
435
+ self.assertEqual(uppercaser.submit('world'), 'WORLD')
436
+ uppercaser.stop()
437
+ uppercaser.join()
438
+
439
+ def test_stderr_flush(self):
440
+ # sys.stderr is flushed at process shutdown (issue #13812)
441
+ if self.TYPE == "threads":
442
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
443
+
444
+ testfn = test.support.TESTFN
445
+ self.addCleanup(test.support.unlink, testfn)
446
+ proc = self.Process(target=self._test_stderr_flush, args=(testfn,))
447
+ proc.start()
448
+ proc.join()
449
+ with open(testfn, 'r') as f:
450
+ err = f.read()
451
+ # The whole traceback was printed
452
+ self.assertIn("ZeroDivisionError", err)
453
+ self.assertIn("test_multiprocessing.py", err)
454
+ self.assertIn("1/0 # MARKER", err)
455
+
456
+ @classmethod
457
+ def _test_stderr_flush(cls, testfn):
458
+ sys.stderr = open(testfn, 'w')
459
+ 1/0 # MARKER
460
+
461
+
462
+ @classmethod
463
+ def _test_sys_exit(cls, reason, testfn):
464
+ sys.stderr = open(testfn, 'w')
465
+ sys.exit(reason)
466
+
467
+ def test_sys_exit(self):
468
+ # See Issue 13854
469
+ if self.TYPE == 'threads':
470
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
471
+
472
+ testfn = test.support.TESTFN
473
+ self.addCleanup(test.support.unlink, testfn)
474
+
475
+ for reason, code in (([1, 2, 3], 1), ('ignore this', 1)):
476
+ p = self.Process(target=self._test_sys_exit, args=(reason, testfn))
477
+ p.daemon = True
478
+ p.start()
479
+ p.join(5)
480
+ self.assertEqual(p.exitcode, code)
481
+
482
+ with open(testfn, 'r') as f:
483
+ self.assertEqual(f.read().rstrip(), str(reason))
484
+
485
+ for reason in (True, False, 8):
486
+ p = self.Process(target=sys.exit, args=(reason,))
487
+ p.daemon = True
488
+ p.start()
489
+ p.join(5)
490
+ self.assertEqual(p.exitcode, reason)
491
+
492
+ #
493
+ #
494
+ #
495
+
496
+ def queue_empty(q):
497
+ if hasattr(q, 'empty'):
498
+ return q.empty()
499
+ else:
500
+ return q.qsize() == 0
501
+
502
+ def queue_full(q, maxsize):
503
+ if hasattr(q, 'full'):
504
+ return q.full()
505
+ else:
506
+ return q.qsize() == maxsize
507
+
508
+
509
+ class _TestQueue(BaseTestCase):
510
+
511
+
512
+ @classmethod
513
+ def _test_put(cls, queue, child_can_start, parent_can_continue):
514
+ child_can_start.wait()
515
+ for i in range(6):
516
+ queue.get()
517
+ parent_can_continue.set()
518
+
519
+ def test_put(self):
520
+ MAXSIZE = 6
521
+ queue = self.Queue(maxsize=MAXSIZE)
522
+ child_can_start = self.Event()
523
+ parent_can_continue = self.Event()
524
+
525
+ proc = self.Process(
526
+ target=self._test_put,
527
+ args=(queue, child_can_start, parent_can_continue)
528
+ )
529
+ proc.daemon = True
530
+ proc.start()
531
+
532
+ self.assertEqual(queue_empty(queue), True)
533
+ self.assertEqual(queue_full(queue, MAXSIZE), False)
534
+
535
+ queue.put(1)
536
+ queue.put(2, True)
537
+ queue.put(3, True, None)
538
+ queue.put(4, False)
539
+ queue.put(5, False, None)
540
+ queue.put_nowait(6)
541
+
542
+ # the values may be in buffer but not yet in pipe so sleep a bit
543
+ time.sleep(DELTA)
544
+
545
+ self.assertEqual(queue_empty(queue), False)
546
+ self.assertEqual(queue_full(queue, MAXSIZE), True)
547
+
548
+ put = TimingWrapper(queue.put)
549
+ put_nowait = TimingWrapper(queue.put_nowait)
550
+
551
+ self.assertRaises(pyqueue.Full, put, 7, False)
552
+ self.assertTimingAlmostEqual(put.elapsed, 0)
553
+
554
+ self.assertRaises(pyqueue.Full, put, 7, False, None)
555
+ self.assertTimingAlmostEqual(put.elapsed, 0)
556
+
557
+ self.assertRaises(pyqueue.Full, put_nowait, 7)
558
+ self.assertTimingAlmostEqual(put_nowait.elapsed, 0)
559
+
560
+ self.assertRaises(pyqueue.Full, put, 7, True, TIMEOUT1)
561
+ self.assertTimingAlmostEqual(put.elapsed, TIMEOUT1)
562
+
563
+ self.assertRaises(pyqueue.Full, put, 7, False, TIMEOUT2)
564
+ self.assertTimingAlmostEqual(put.elapsed, 0)
565
+
566
+ self.assertRaises(pyqueue.Full, put, 7, True, timeout=TIMEOUT3)
567
+ self.assertTimingAlmostEqual(put.elapsed, TIMEOUT3)
568
+
569
+ child_can_start.set()
570
+ parent_can_continue.wait()
571
+
572
+ self.assertEqual(queue_empty(queue), True)
573
+ self.assertEqual(queue_full(queue, MAXSIZE), False)
574
+
575
+ proc.join()
576
+
577
+ @classmethod
578
+ def _test_get(cls, queue, child_can_start, parent_can_continue):
579
+ child_can_start.wait()
580
+ #queue.put(1)
581
+ queue.put(2)
582
+ queue.put(3)
583
+ queue.put(4)
584
+ queue.put(5)
585
+ parent_can_continue.set()
586
+
587
+ def test_get(self):
588
+ queue = self.Queue()
589
+ child_can_start = self.Event()
590
+ parent_can_continue = self.Event()
591
+
592
+ proc = self.Process(
593
+ target=self._test_get,
594
+ args=(queue, child_can_start, parent_can_continue)
595
+ )
596
+ proc.daemon = True
597
+ proc.start()
598
+
599
+ self.assertEqual(queue_empty(queue), True)
600
+
601
+ child_can_start.set()
602
+ parent_can_continue.wait()
603
+
604
+ time.sleep(DELTA)
605
+ self.assertEqual(queue_empty(queue), False)
606
+
607
+ # Hangs unexpectedly, remove for now
608
+ #self.assertEqual(queue.get(), 1)
609
+ self.assertEqual(queue.get(True, None), 2)
610
+ self.assertEqual(queue.get(True), 3)
611
+ self.assertEqual(queue.get(timeout=1), 4)
612
+ self.assertEqual(queue.get_nowait(), 5)
613
+
614
+ self.assertEqual(queue_empty(queue), True)
615
+
616
+ get = TimingWrapper(queue.get)
617
+ get_nowait = TimingWrapper(queue.get_nowait)
618
+
619
+ self.assertRaises(pyqueue.Empty, get, False)
620
+ self.assertTimingAlmostEqual(get.elapsed, 0)
621
+
622
+ self.assertRaises(pyqueue.Empty, get, False, None)
623
+ self.assertTimingAlmostEqual(get.elapsed, 0)
624
+
625
+ self.assertRaises(pyqueue.Empty, get_nowait)
626
+ self.assertTimingAlmostEqual(get_nowait.elapsed, 0)
627
+
628
+ self.assertRaises(pyqueue.Empty, get, True, TIMEOUT1)
629
+ self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
630
+
631
+ self.assertRaises(pyqueue.Empty, get, False, TIMEOUT2)
632
+ self.assertTimingAlmostEqual(get.elapsed, 0)
633
+
634
+ self.assertRaises(pyqueue.Empty, get, timeout=TIMEOUT3)
635
+ self.assertTimingAlmostEqual(get.elapsed, TIMEOUT3)
636
+
637
+ proc.join()
638
+
639
+ @classmethod
640
+ def _test_fork(cls, queue):
641
+ for i in range(10, 20):
642
+ queue.put(i)
643
+ # note that at this point the items may only be buffered, so the
644
+ # process cannot shutdown until the feeder thread has finished
645
+ # pushing items onto the pipe.
646
+
647
+ def test_fork(self):
648
+ # Old versions of Queue would fail to create a new feeder
649
+ # thread for a forked process if the original process had its
650
+ # own feeder thread. This test checks that this no longer
651
+ # happens.
652
+
653
+ queue = self.Queue()
654
+
655
+ # put items on queue so that main process starts a feeder thread
656
+ for i in range(10):
657
+ queue.put(i)
658
+
659
+ # wait to make sure thread starts before we fork a new process
660
+ time.sleep(DELTA)
661
+
662
+ # fork process
663
+ p = self.Process(target=self._test_fork, args=(queue,))
664
+ p.daemon = True
665
+ p.start()
666
+
667
+ # check that all expected items are in the queue
668
+ for i in range(20):
669
+ self.assertEqual(queue.get(), i)
670
+ self.assertRaises(pyqueue.Empty, queue.get, False)
671
+
672
+ p.join()
673
+
674
+ def test_qsize(self):
675
+ q = self.Queue()
676
+ try:
677
+ self.assertEqual(q.qsize(), 0)
678
+ except NotImplementedError:
679
+ self.skipTest('qsize method not implemented')
680
+ q.put(1)
681
+ self.assertEqual(q.qsize(), 1)
682
+ q.put(5)
683
+ self.assertEqual(q.qsize(), 2)
684
+ q.get()
685
+ self.assertEqual(q.qsize(), 1)
686
+ q.get()
687
+ self.assertEqual(q.qsize(), 0)
688
+
689
+ @classmethod
690
+ def _test_task_done(cls, q):
691
+ for obj in iter(q.get, None):
692
+ time.sleep(DELTA)
693
+ q.task_done()
694
+
695
+ def test_task_done(self):
696
+ queue = self.JoinableQueue()
697
+
698
+ workers = [self.Process(target=self._test_task_done, args=(queue,))
699
+ for i in range(4)]
700
+
701
+ for p in workers:
702
+ p.daemon = True
703
+ p.start()
704
+
705
+ for i in range(10):
706
+ queue.put(i)
707
+
708
+ queue.join()
709
+
710
+ for p in workers:
711
+ queue.put(None)
712
+
713
+ for p in workers:
714
+ p.join()
715
+
716
+ def test_timeout(self):
717
+ q = multiprocessing.Queue()
718
+ start = time.time()
719
+ self.assertRaises(pyqueue.Empty, q.get, True, 0.2)
720
+ delta = time.time() - start
721
+ self.assertGreaterEqual(delta, 0.18)
722
+
723
+ #
724
+ #
725
+ #
726
+
727
+ class _TestLock(BaseTestCase):
728
+
729
+ def test_lock(self):
730
+ lock = self.Lock()
731
+ self.assertEqual(lock.acquire(), True)
732
+ self.assertEqual(lock.acquire(False), False)
733
+ self.assertEqual(lock.release(), None)
734
+ self.assertRaises((ValueError, threading.ThreadError), lock.release)
735
+
736
+ def test_rlock(self):
737
+ lock = self.RLock()
738
+ self.assertEqual(lock.acquire(), True)
739
+ self.assertEqual(lock.acquire(), True)
740
+ self.assertEqual(lock.acquire(), True)
741
+ self.assertEqual(lock.release(), None)
742
+ self.assertEqual(lock.release(), None)
743
+ self.assertEqual(lock.release(), None)
744
+ self.assertRaises((AssertionError, RuntimeError), lock.release)
745
+
746
+ def test_lock_context(self):
747
+ with self.Lock():
748
+ pass
749
+
750
+
751
+ class _TestSemaphore(BaseTestCase):
752
+
753
+ def _test_semaphore(self, sem):
754
+ self.assertReturnsIfImplemented(2, get_value, sem)
755
+ self.assertEqual(sem.acquire(), True)
756
+ self.assertReturnsIfImplemented(1, get_value, sem)
757
+ self.assertEqual(sem.acquire(), True)
758
+ self.assertReturnsIfImplemented(0, get_value, sem)
759
+ self.assertEqual(sem.acquire(False), False)
760
+ self.assertReturnsIfImplemented(0, get_value, sem)
761
+ self.assertEqual(sem.release(), None)
762
+ self.assertReturnsIfImplemented(1, get_value, sem)
763
+ self.assertEqual(sem.release(), None)
764
+ self.assertReturnsIfImplemented(2, get_value, sem)
765
+
766
+ def test_semaphore(self):
767
+ sem = self.Semaphore(2)
768
+ self._test_semaphore(sem)
769
+ self.assertEqual(sem.release(), None)
770
+ self.assertReturnsIfImplemented(3, get_value, sem)
771
+ self.assertEqual(sem.release(), None)
772
+ self.assertReturnsIfImplemented(4, get_value, sem)
773
+
774
+ def test_bounded_semaphore(self):
775
+ sem = self.BoundedSemaphore(2)
776
+ self._test_semaphore(sem)
777
+ # Currently fails on OS/X
778
+ #if HAVE_GETVALUE:
779
+ # self.assertRaises(ValueError, sem.release)
780
+ # self.assertReturnsIfImplemented(2, get_value, sem)
781
+
782
+ def test_timeout(self):
783
+ if self.TYPE != 'processes':
784
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
785
+
786
+ sem = self.Semaphore(0)
787
+ acquire = TimingWrapper(sem.acquire)
788
+
789
+ self.assertEqual(acquire(False), False)
790
+ self.assertTimingAlmostEqual(acquire.elapsed, 0.0)
791
+
792
+ self.assertEqual(acquire(False, None), False)
793
+ self.assertTimingAlmostEqual(acquire.elapsed, 0.0)
794
+
795
+ self.assertEqual(acquire(False, TIMEOUT1), False)
796
+ self.assertTimingAlmostEqual(acquire.elapsed, 0)
797
+
798
+ self.assertEqual(acquire(True, TIMEOUT2), False)
799
+ self.assertTimingAlmostEqual(acquire.elapsed, TIMEOUT2)
800
+
801
+ self.assertEqual(acquire(timeout=TIMEOUT3), False)
802
+ self.assertTimingAlmostEqual(acquire.elapsed, TIMEOUT3)
803
+
804
+
805
+ class _TestCondition(BaseTestCase):
806
+
807
+ @classmethod
808
+ def f(cls, cond, sleeping, woken, timeout=None):
809
+ cond.acquire()
810
+ sleeping.release()
811
+ cond.wait(timeout)
812
+ woken.release()
813
+ cond.release()
814
+
815
+ def check_invariant(self, cond):
816
+ # this is only supposed to succeed when there are no sleepers
817
+ if self.TYPE == 'processes':
818
+ try:
819
+ sleepers = (cond._sleeping_count.get_value() -
820
+ cond._woken_count.get_value())
821
+ self.assertEqual(sleepers, 0)
822
+ self.assertEqual(cond._wait_semaphore.get_value(), 0)
823
+ except NotImplementedError:
824
+ pass
825
+
826
+ def test_notify(self):
827
+ cond = self.Condition()
828
+ sleeping = self.Semaphore(0)
829
+ woken = self.Semaphore(0)
830
+
831
+ p = self.Process(target=self.f, args=(cond, sleeping, woken))
832
+ p.daemon = True
833
+ p.start()
834
+
835
+ p = threading.Thread(target=self.f, args=(cond, sleeping, woken))
836
+ p.daemon = True
837
+ p.start()
838
+
839
+ # wait for both children to start sleeping
840
+ sleeping.acquire()
841
+ sleeping.acquire()
842
+
843
+ # check no process/thread has woken up
844
+ time.sleep(DELTA)
845
+ self.assertReturnsIfImplemented(0, get_value, woken)
846
+
847
+ # wake up one process/thread
848
+ cond.acquire()
849
+ cond.notify()
850
+ cond.release()
851
+
852
+ # check one process/thread has woken up
853
+ time.sleep(DELTA)
854
+ self.assertReturnsIfImplemented(1, get_value, woken)
855
+
856
+ # wake up another
857
+ cond.acquire()
858
+ cond.notify()
859
+ cond.release()
860
+
861
+ # check other has woken up
862
+ time.sleep(DELTA)
863
+ self.assertReturnsIfImplemented(2, get_value, woken)
864
+
865
+ # check state is not mucked up
866
+ self.check_invariant(cond)
867
+ p.join()
868
+
869
+ def test_notify_all(self):
870
+ cond = self.Condition()
871
+ sleeping = self.Semaphore(0)
872
+ woken = self.Semaphore(0)
873
+
874
+ # start some threads/processes which will timeout
875
+ for i in range(3):
876
+ p = self.Process(target=self.f,
877
+ args=(cond, sleeping, woken, TIMEOUT1))
878
+ p.daemon = True
879
+ p.start()
880
+
881
+ t = threading.Thread(target=self.f,
882
+ args=(cond, sleeping, woken, TIMEOUT1))
883
+ t.daemon = True
884
+ t.start()
885
+
886
+ # wait for them all to sleep
887
+ for i in range(6):
888
+ sleeping.acquire()
889
+
890
+ # check they have all timed out
891
+ for i in range(6):
892
+ woken.acquire()
893
+ self.assertReturnsIfImplemented(0, get_value, woken)
894
+
895
+ # check state is not mucked up
896
+ self.check_invariant(cond)
897
+
898
+ # start some more threads/processes
899
+ for i in range(3):
900
+ p = self.Process(target=self.f, args=(cond, sleeping, woken))
901
+ p.daemon = True
902
+ p.start()
903
+
904
+ t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
905
+ t.daemon = True
906
+ t.start()
907
+
908
+ # wait for them to all sleep
909
+ for i in range(6):
910
+ sleeping.acquire()
911
+
912
+ # check no process/thread has woken up
913
+ time.sleep(DELTA)
914
+ self.assertReturnsIfImplemented(0, get_value, woken)
915
+
916
+ # wake them all up
917
+ cond.acquire()
918
+ cond.notify_all()
919
+ cond.release()
920
+
921
+ # check they have all woken
922
+ for i in range(10):
923
+ try:
924
+ if get_value(woken) == 6:
925
+ break
926
+ except NotImplementedError:
927
+ break
928
+ time.sleep(DELTA)
929
+ self.assertReturnsIfImplemented(6, get_value, woken)
930
+
931
+ # check state is not mucked up
932
+ self.check_invariant(cond)
933
+
934
+ def test_timeout(self):
935
+ cond = self.Condition()
936
+ wait = TimingWrapper(cond.wait)
937
+ cond.acquire()
938
+ res = wait(TIMEOUT1)
939
+ cond.release()
940
+ self.assertEqual(res, False)
941
+ self.assertTimingAlmostEqual(wait.elapsed, TIMEOUT1)
942
+
943
+ @classmethod
944
+ def _test_waitfor_f(cls, cond, state):
945
+ with cond:
946
+ state.value = 0
947
+ cond.notify()
948
+ result = cond.wait_for(lambda : state.value==4)
949
+ if not result or state.value != 4:
950
+ sys.exit(1)
951
+
952
+ @unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
953
+ def test_waitfor(self):
954
+ # based on test in test/lock_tests.py
955
+ cond = self.Condition()
956
+ state = self.Value('i', -1)
957
+
958
+ p = self.Process(target=self._test_waitfor_f, args=(cond, state))
959
+ p.daemon = True
960
+ p.start()
961
+
962
+ with cond:
963
+ result = cond.wait_for(lambda : state.value==0)
964
+ self.assertTrue(result)
965
+ self.assertEqual(state.value, 0)
966
+
967
+ for i in range(4):
968
+ time.sleep(0.01)
969
+ with cond:
970
+ state.value += 1
971
+ cond.notify()
972
+
973
+ p.join(5)
974
+ self.assertFalse(p.is_alive())
975
+ self.assertEqual(p.exitcode, 0)
976
+
977
+ @classmethod
978
+ def _test_waitfor_timeout_f(cls, cond, state, success, sem):
979
+ sem.release()
980
+ with cond:
981
+ expected = 0.1
982
+ dt = time.time()
983
+ result = cond.wait_for(lambda : state.value==4, timeout=expected)
984
+ dt = time.time() - dt
985
+ # borrow logic in assertTimeout() from test/lock_tests.py
986
+ if not result and expected * 0.6 < dt < expected * 10.0:
987
+ success.value = True
988
+
989
+ @unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
990
+ def test_waitfor_timeout(self):
991
+ # based on test in test/lock_tests.py
992
+ cond = self.Condition()
993
+ state = self.Value('i', 0)
994
+ success = self.Value('i', False)
995
+ sem = self.Semaphore(0)
996
+
997
+ p = self.Process(target=self._test_waitfor_timeout_f,
998
+ args=(cond, state, success, sem))
999
+ p.daemon = True
1000
+ p.start()
1001
+ self.assertTrue(sem.acquire(timeout=10))
1002
+
1003
+ # Only increment 3 times, so state == 4 is never reached.
1004
+ for i in range(3):
1005
+ time.sleep(0.01)
1006
+ with cond:
1007
+ state.value += 1
1008
+ cond.notify()
1009
+
1010
+ p.join(5)
1011
+ self.assertTrue(success.value)
1012
+
1013
+ @classmethod
1014
+ def _test_wait_result(cls, c, pid):
1015
+ with c:
1016
+ c.notify()
1017
+ time.sleep(1)
1018
+ if pid is not None:
1019
+ os.kill(pid, signal.SIGINT)
1020
+
1021
+ def test_wait_result(self):
1022
+ if isinstance(self, ProcessesMixin) and sys.platform != 'win32':
1023
+ pid = os.getpid()
1024
+ else:
1025
+ pid = None
1026
+
1027
+ c = self.Condition()
1028
+ with c:
1029
+ self.assertFalse(c.wait(0))
1030
+ self.assertFalse(c.wait(0.1))
1031
+
1032
+ p = self.Process(target=self._test_wait_result, args=(c, pid))
1033
+ p.start()
1034
+
1035
+ self.assertTrue(c.wait(10))
1036
+ if pid is not None:
1037
+ self.assertRaises(KeyboardInterrupt, c.wait, 10)
1038
+
1039
+ p.join()
1040
+
1041
+
1042
+ class _TestEvent(BaseTestCase):
1043
+
1044
+ @classmethod
1045
+ def _test_event(cls, event):
1046
+ time.sleep(TIMEOUT2)
1047
+ event.set()
1048
+
1049
+ def test_event(self):
1050
+ event = self.Event()
1051
+ wait = TimingWrapper(event.wait)
1052
+
1053
+ # Removed temporarily, due to API shear, this does not
1054
+ # work with threading._Event objects. is_set == isSet
1055
+ self.assertEqual(event.is_set(), False)
1056
+
1057
+ # Removed, threading.Event.wait() will return the value of the __flag
1058
+ # instead of None. API Shear with the semaphore backed mp.Event
1059
+ self.assertEqual(wait(0.0), False)
1060
+ self.assertTimingAlmostEqual(wait.elapsed, 0.0)
1061
+ self.assertEqual(wait(TIMEOUT1), False)
1062
+ self.assertTimingAlmostEqual(wait.elapsed, TIMEOUT1)
1063
+
1064
+ event.set()
1065
+
1066
+ # See note above on the API differences
1067
+ self.assertEqual(event.is_set(), True)
1068
+ self.assertEqual(wait(), True)
1069
+ self.assertTimingAlmostEqual(wait.elapsed, 0.0)
1070
+ self.assertEqual(wait(TIMEOUT1), True)
1071
+ self.assertTimingAlmostEqual(wait.elapsed, 0.0)
1072
+ # self.assertEqual(event.is_set(), True)
1073
+
1074
+ event.clear()
1075
+
1076
+ #self.assertEqual(event.is_set(), False)
1077
+
1078
+ p = self.Process(target=self._test_event, args=(event,))
1079
+ p.daemon = True
1080
+ p.start()
1081
+ self.assertEqual(wait(), True)
1082
+
1083
+ #
1084
+ # Tests for Barrier - adapted from tests in test/lock_tests.py
1085
+ #
1086
+
1087
+ # Many of the tests for threading.Barrier use a list as an atomic
1088
+ # counter: a value is appended to increment the counter, and the
1089
+ # length of the list gives the value. We use the class DummyList
1090
+ # for the same purpose.
1091
+
1092
+ class _DummyList(object):
1093
+
1094
+ def __init__(self):
1095
+ wrapper = multiprocessing.heap.BufferWrapper(struct.calcsize('i'))
1096
+ lock = multiprocessing.Lock()
1097
+ self.__setstate__((wrapper, lock))
1098
+ self._lengthbuf[0] = 0
1099
+
1100
+ def __setstate__(self, state):
1101
+ (self._wrapper, self._lock) = state
1102
+ self._lengthbuf = self._wrapper.create_memoryview().cast('i')
1103
+
1104
+ def __getstate__(self):
1105
+ return (self._wrapper, self._lock)
1106
+
1107
+ def append(self, _):
1108
+ with self._lock:
1109
+ self._lengthbuf[0] += 1
1110
+
1111
+ def __len__(self):
1112
+ with self._lock:
1113
+ return self._lengthbuf[0]
1114
+
1115
+ def _wait():
1116
+ # A crude wait/yield function not relying on synchronization primitives.
1117
+ time.sleep(0.01)
1118
+
1119
+
1120
+ class Bunch(object):
1121
+ """
1122
+ A bunch of threads.
1123
+ """
1124
+ def __init__(self, namespace, f, args, n, wait_before_exit=False):
1125
+ """
1126
+ Construct a bunch of `n` threads running the same function `f`.
1127
+ If `wait_before_exit` is True, the threads won't terminate until
1128
+ do_finish() is called.
1129
+ """
1130
+ self.f = f
1131
+ self.args = args
1132
+ self.n = n
1133
+ self.started = namespace.DummyList()
1134
+ self.finished = namespace.DummyList()
1135
+ self._can_exit = namespace.Event()
1136
+ if not wait_before_exit:
1137
+ self._can_exit.set()
1138
+ for i in range(n):
1139
+ p = namespace.Process(target=self.task)
1140
+ p.daemon = True
1141
+ p.start()
1142
+
1143
+ def task(self):
1144
+ pid = os.getpid()
1145
+ self.started.append(pid)
1146
+ try:
1147
+ self.f(*self.args)
1148
+ finally:
1149
+ self.finished.append(pid)
1150
+ self._can_exit.wait(30)
1151
+ assert self._can_exit.is_set()
1152
+
1153
+ def wait_for_started(self):
1154
+ while len(self.started) < self.n:
1155
+ _wait()
1156
+
1157
+ def wait_for_finished(self):
1158
+ while len(self.finished) < self.n:
1159
+ _wait()
1160
+
1161
+ def do_finish(self):
1162
+ self._can_exit.set()
1163
+
1164
+
1165
+ class AppendTrue(object):
1166
+ def __init__(self, obj):
1167
+ self.obj = obj
1168
+ def __call__(self):
1169
+ self.obj.append(True)
1170
+
1171
+
1172
+ class _TestBarrier(BaseTestCase):
1173
+ """
1174
+ Tests for Barrier objects.
1175
+ """
1176
+ N = 5
1177
+ defaultTimeout = 30.0 # XXX Slow Windows buildbots need generous timeout
1178
+
1179
+ def setUp(self):
1180
+ self.barrier = self.Barrier(self.N, timeout=self.defaultTimeout)
1181
+
1182
+ def tearDown(self):
1183
+ self.barrier.abort()
1184
+ self.barrier = None
1185
+
1186
+ def DummyList(self):
1187
+ if self.TYPE == 'threads':
1188
+ return []
1189
+ elif self.TYPE == 'manager':
1190
+ return self.manager.list()
1191
+ else:
1192
+ return _DummyList()
1193
+
1194
+ def run_threads(self, f, args):
1195
+ b = Bunch(self, f, args, self.N-1)
1196
+ f(*args)
1197
+ b.wait_for_finished()
1198
+
1199
+ @classmethod
1200
+ def multipass(cls, barrier, results, n):
1201
+ m = barrier.parties
1202
+ assert m == cls.N
1203
+ for i in range(n):
1204
+ results[0].append(True)
1205
+ assert len(results[1]) == i * m
1206
+ barrier.wait()
1207
+ results[1].append(True)
1208
+ assert len(results[0]) == (i + 1) * m
1209
+ barrier.wait()
1210
+ try:
1211
+ assert barrier.n_waiting == 0
1212
+ except NotImplementedError:
1213
+ pass
1214
+ assert not barrier.broken
1215
+
1216
+ def test_barrier(self, passes=1):
1217
+ """
1218
+ Test that a barrier is passed in lockstep
1219
+ """
1220
+ results = [self.DummyList(), self.DummyList()]
1221
+ self.run_threads(self.multipass, (self.barrier, results, passes))
1222
+
1223
+ def test_barrier_10(self):
1224
+ """
1225
+ Test that a barrier works for 10 consecutive runs
1226
+ """
1227
+ return self.test_barrier(10)
1228
+
1229
+ @classmethod
1230
+ def _test_wait_return_f(cls, barrier, queue):
1231
+ res = barrier.wait()
1232
+ queue.put(res)
1233
+
1234
+ def test_wait_return(self):
1235
+ """
1236
+ test the return value from barrier.wait
1237
+ """
1238
+ queue = self.Queue()
1239
+ self.run_threads(self._test_wait_return_f, (self.barrier, queue))
1240
+ results = [queue.get() for i in range(self.N)]
1241
+ self.assertEqual(results.count(0), 1)
1242
+
1243
+ @classmethod
1244
+ def _test_action_f(cls, barrier, results):
1245
+ barrier.wait()
1246
+ if len(results) != 1:
1247
+ raise RuntimeError
1248
+
1249
+ def test_action(self):
1250
+ """
1251
+ Test the 'action' callback
1252
+ """
1253
+ results = self.DummyList()
1254
+ barrier = self.Barrier(self.N, action=AppendTrue(results))
1255
+ self.run_threads(self._test_action_f, (barrier, results))
1256
+ self.assertEqual(len(results), 1)
1257
+
1258
+ @classmethod
1259
+ def _test_abort_f(cls, barrier, results1, results2):
1260
+ try:
1261
+ i = barrier.wait()
1262
+ if i == cls.N//2:
1263
+ raise RuntimeError
1264
+ barrier.wait()
1265
+ results1.append(True)
1266
+ except threading.BrokenBarrierError:
1267
+ results2.append(True)
1268
+ except RuntimeError:
1269
+ barrier.abort()
1270
+
1271
+ def test_abort(self):
1272
+ """
1273
+ Test that an abort will put the barrier in a broken state
1274
+ """
1275
+ results1 = self.DummyList()
1276
+ results2 = self.DummyList()
1277
+ self.run_threads(self._test_abort_f,
1278
+ (self.barrier, results1, results2))
1279
+ self.assertEqual(len(results1), 0)
1280
+ self.assertEqual(len(results2), self.N-1)
1281
+ self.assertTrue(self.barrier.broken)
1282
+
1283
+ @classmethod
1284
+ def _test_reset_f(cls, barrier, results1, results2, results3):
1285
+ i = barrier.wait()
1286
+ if i == cls.N//2:
1287
+ # Wait until the other threads are all in the barrier.
1288
+ while barrier.n_waiting < cls.N-1:
1289
+ time.sleep(0.001)
1290
+ barrier.reset()
1291
+ else:
1292
+ try:
1293
+ barrier.wait()
1294
+ results1.append(True)
1295
+ except threading.BrokenBarrierError:
1296
+ results2.append(True)
1297
+ # Now, pass the barrier again
1298
+ barrier.wait()
1299
+ results3.append(True)
1300
+
1301
+ def test_reset(self):
1302
+ """
1303
+ Test that a 'reset' on a barrier frees the waiting threads
1304
+ """
1305
+ results1 = self.DummyList()
1306
+ results2 = self.DummyList()
1307
+ results3 = self.DummyList()
1308
+ self.run_threads(self._test_reset_f,
1309
+ (self.barrier, results1, results2, results3))
1310
+ self.assertEqual(len(results1), 0)
1311
+ self.assertEqual(len(results2), self.N-1)
1312
+ self.assertEqual(len(results3), self.N)
1313
+
1314
+ @classmethod
1315
+ def _test_abort_and_reset_f(cls, barrier, barrier2,
1316
+ results1, results2, results3):
1317
+ try:
1318
+ i = barrier.wait()
1319
+ if i == cls.N//2:
1320
+ raise RuntimeError
1321
+ barrier.wait()
1322
+ results1.append(True)
1323
+ except threading.BrokenBarrierError:
1324
+ results2.append(True)
1325
+ except RuntimeError:
1326
+ barrier.abort()
1327
+ # Synchronize and reset the barrier. Must synchronize first so
1328
+ # that everyone has left it when we reset, and after so that no
1329
+ # one enters it before the reset.
1330
+ if barrier2.wait() == cls.N//2:
1331
+ barrier.reset()
1332
+ barrier2.wait()
1333
+ barrier.wait()
1334
+ results3.append(True)
1335
+
1336
+ def test_abort_and_reset(self):
1337
+ """
1338
+ Test that a barrier can be reset after being broken.
1339
+ """
1340
+ results1 = self.DummyList()
1341
+ results2 = self.DummyList()
1342
+ results3 = self.DummyList()
1343
+ barrier2 = self.Barrier(self.N)
1344
+
1345
+ self.run_threads(self._test_abort_and_reset_f,
1346
+ (self.barrier, barrier2, results1, results2, results3))
1347
+ self.assertEqual(len(results1), 0)
1348
+ self.assertEqual(len(results2), self.N-1)
1349
+ self.assertEqual(len(results3), self.N)
1350
+
1351
+ @classmethod
1352
+ def _test_timeout_f(cls, barrier, results):
1353
+ i = barrier.wait()
1354
+ if i == cls.N//2:
1355
+ # One thread is late!
1356
+ time.sleep(1.0)
1357
+ try:
1358
+ barrier.wait(0.5)
1359
+ except threading.BrokenBarrierError:
1360
+ results.append(True)
1361
+
1362
+ def test_timeout(self):
1363
+ """
1364
+ Test wait(timeout)
1365
+ """
1366
+ results = self.DummyList()
1367
+ self.run_threads(self._test_timeout_f, (self.barrier, results))
1368
+ self.assertEqual(len(results), self.barrier.parties)
1369
+
1370
+ @classmethod
1371
+ def _test_default_timeout_f(cls, barrier, results):
1372
+ i = barrier.wait(cls.defaultTimeout)
1373
+ if i == cls.N//2:
1374
+ # One thread is later than the default timeout
1375
+ time.sleep(1.0)
1376
+ try:
1377
+ barrier.wait()
1378
+ except threading.BrokenBarrierError:
1379
+ results.append(True)
1380
+
1381
+ def test_default_timeout(self):
1382
+ """
1383
+ Test the barrier's default timeout
1384
+ """
1385
+ barrier = self.Barrier(self.N, timeout=0.5)
1386
+ results = self.DummyList()
1387
+ self.run_threads(self._test_default_timeout_f, (barrier, results))
1388
+ self.assertEqual(len(results), barrier.parties)
1389
+
1390
+ def test_single_thread(self):
1391
+ b = self.Barrier(1)
1392
+ b.wait()
1393
+ b.wait()
1394
+
1395
+ @classmethod
1396
+ def _test_thousand_f(cls, barrier, passes, conn, lock):
1397
+ for i in range(passes):
1398
+ barrier.wait()
1399
+ with lock:
1400
+ conn.send(i)
1401
+
1402
+ def test_thousand(self):
1403
+ if self.TYPE == 'manager':
1404
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
1405
+ passes = 1000
1406
+ lock = self.Lock()
1407
+ conn, child_conn = self.Pipe(False)
1408
+ for j in range(self.N):
1409
+ p = self.Process(target=self._test_thousand_f,
1410
+ args=(self.barrier, passes, child_conn, lock))
1411
+ p.start()
1412
+
1413
+ for i in range(passes):
1414
+ for j in range(self.N):
1415
+ self.assertEqual(conn.recv(), i)
1416
+
1417
+ #
1418
+ #
1419
+ #
1420
+
1421
+ class _TestValue(BaseTestCase):
1422
+
1423
+ ALLOWED_TYPES = ('processes',)
1424
+
1425
+ codes_values = [
1426
+ ('i', 4343, 24234),
1427
+ ('d', 3.625, -4.25),
1428
+ ('h', -232, 234),
1429
+ ('c', latin('x'), latin('y'))
1430
+ ]
1431
+
1432
+ def setUp(self):
1433
+ if not HAS_SHAREDCTYPES:
1434
+ self.skipTest("requires multiprocessing.sharedctypes")
1435
+
1436
+ @classmethod
1437
+ def _test(cls, values):
1438
+ for sv, cv in zip(values, cls.codes_values):
1439
+ sv.value = cv[2]
1440
+
1441
+
1442
+ def test_value(self, raw=False):
1443
+ if raw:
1444
+ values = [self.RawValue(code, value)
1445
+ for code, value, _ in self.codes_values]
1446
+ else:
1447
+ values = [self.Value(code, value)
1448
+ for code, value, _ in self.codes_values]
1449
+
1450
+ for sv, cv in zip(values, self.codes_values):
1451
+ self.assertEqual(sv.value, cv[1])
1452
+
1453
+ proc = self.Process(target=self._test, args=(values,))
1454
+ proc.daemon = True
1455
+ proc.start()
1456
+ proc.join()
1457
+
1458
+ for sv, cv in zip(values, self.codes_values):
1459
+ self.assertEqual(sv.value, cv[2])
1460
+
1461
+ def test_rawvalue(self):
1462
+ self.test_value(raw=True)
1463
+
1464
+ def test_getobj_getlock(self):
1465
+ val1 = self.Value('i', 5)
1466
+ lock1 = val1.get_lock()
1467
+ obj1 = val1.get_obj()
1468
+
1469
+ val2 = self.Value('i', 5, lock=None)
1470
+ lock2 = val2.get_lock()
1471
+ obj2 = val2.get_obj()
1472
+
1473
+ lock = self.Lock()
1474
+ val3 = self.Value('i', 5, lock=lock)
1475
+ lock3 = val3.get_lock()
1476
+ obj3 = val3.get_obj()
1477
+ self.assertEqual(lock, lock3)
1478
+
1479
+ arr4 = self.Value('i', 5, lock=False)
1480
+ self.assertFalse(hasattr(arr4, 'get_lock'))
1481
+ self.assertFalse(hasattr(arr4, 'get_obj'))
1482
+
1483
+ self.assertRaises(AttributeError, self.Value, 'i', 5, lock='navalue')
1484
+
1485
+ arr5 = self.RawValue('i', 5)
1486
+ self.assertFalse(hasattr(arr5, 'get_lock'))
1487
+ self.assertFalse(hasattr(arr5, 'get_obj'))
1488
+
1489
+
1490
+ class _TestArray(BaseTestCase):
1491
+
1492
+ ALLOWED_TYPES = ('processes',)
1493
+
1494
+ @classmethod
1495
+ def f(cls, seq):
1496
+ for i in range(1, len(seq)):
1497
+ seq[i] += seq[i-1]
1498
+
1499
+ @unittest.skipIf(c_int is None, "requires _ctypes")
1500
+ def test_array(self, raw=False):
1501
+ seq = [680, 626, 934, 821, 150, 233, 548, 982, 714, 831]
1502
+ if raw:
1503
+ arr = self.RawArray('i', seq)
1504
+ else:
1505
+ arr = self.Array('i', seq)
1506
+
1507
+ self.assertEqual(len(arr), len(seq))
1508
+ self.assertEqual(arr[3], seq[3])
1509
+ self.assertEqual(list(arr[2:7]), list(seq[2:7]))
1510
+
1511
+ arr[4:8] = seq[4:8] = array.array('i', [1, 2, 3, 4])
1512
+
1513
+ self.assertEqual(list(arr[:]), seq)
1514
+
1515
+ self.f(seq)
1516
+
1517
+ p = self.Process(target=self.f, args=(arr,))
1518
+ p.daemon = True
1519
+ p.start()
1520
+ p.join()
1521
+
1522
+ self.assertEqual(list(arr[:]), seq)
1523
+
1524
+ @unittest.skipIf(c_int is None, "requires _ctypes")
1525
+ def test_array_from_size(self):
1526
+ size = 10
1527
+ # Test for zeroing (see issue #11675).
1528
+ # The repetition below strengthens the test by increasing the chances
1529
+ # of previously allocated non-zero memory being used for the new array
1530
+ # on the 2nd and 3rd loops.
1531
+ for _ in range(3):
1532
+ arr = self.Array('i', size)
1533
+ self.assertEqual(len(arr), size)
1534
+ self.assertEqual(list(arr), [0] * size)
1535
+ arr[:] = range(10)
1536
+ self.assertEqual(list(arr), list(range(10)))
1537
+ del arr
1538
+
1539
+ @unittest.skipIf(c_int is None, "requires _ctypes")
1540
+ def test_rawarray(self):
1541
+ self.test_array(raw=True)
1542
+
1543
+ @unittest.skipIf(c_int is None, "requires _ctypes")
1544
+ def test_getobj_getlock_obj(self):
1545
+ arr1 = self.Array('i', list(range(10)))
1546
+ lock1 = arr1.get_lock()
1547
+ obj1 = arr1.get_obj()
1548
+
1549
+ arr2 = self.Array('i', list(range(10)), lock=None)
1550
+ lock2 = arr2.get_lock()
1551
+ obj2 = arr2.get_obj()
1552
+
1553
+ lock = self.Lock()
1554
+ arr3 = self.Array('i', list(range(10)), lock=lock)
1555
+ lock3 = arr3.get_lock()
1556
+ obj3 = arr3.get_obj()
1557
+ self.assertEqual(lock, lock3)
1558
+
1559
+ arr4 = self.Array('i', range(10), lock=False)
1560
+ self.assertFalse(hasattr(arr4, 'get_lock'))
1561
+ self.assertFalse(hasattr(arr4, 'get_obj'))
1562
+ self.assertRaises(AttributeError,
1563
+ self.Array, 'i', range(10), lock='notalock')
1564
+
1565
+ arr5 = self.RawArray('i', range(10))
1566
+ self.assertFalse(hasattr(arr5, 'get_lock'))
1567
+ self.assertFalse(hasattr(arr5, 'get_obj'))
1568
+
1569
+ #
1570
+ #
1571
+ #
1572
+
1573
+ class _TestContainers(BaseTestCase):
1574
+
1575
+ ALLOWED_TYPES = ('manager',)
1576
+
1577
+ def test_list(self):
1578
+ a = self.list(list(range(10)))
1579
+ self.assertEqual(a[:], list(range(10)))
1580
+
1581
+ b = self.list()
1582
+ self.assertEqual(b[:], [])
1583
+
1584
+ b.extend(list(range(5)))
1585
+ self.assertEqual(b[:], list(range(5)))
1586
+
1587
+ self.assertEqual(b[2], 2)
1588
+ self.assertEqual(b[2:10], [2,3,4])
1589
+
1590
+ b *= 2
1591
+ self.assertEqual(b[:], [0, 1, 2, 3, 4, 0, 1, 2, 3, 4])
1592
+
1593
+ self.assertEqual(b + [5, 6], [0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 6])
1594
+
1595
+ self.assertEqual(a[:], list(range(10)))
1596
+
1597
+ d = [a, b]
1598
+ e = self.list(d)
1599
+ self.assertEqual(
1600
+ e[:],
1601
+ [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [0, 1, 2, 3, 4, 0, 1, 2, 3, 4]]
1602
+ )
1603
+
1604
+ f = self.list([a])
1605
+ a.append('hello')
1606
+ self.assertEqual(f[:], [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'hello']])
1607
+
1608
+ def test_dict(self):
1609
+ d = self.dict()
1610
+ indices = list(range(65, 70))
1611
+ for i in indices:
1612
+ d[i] = chr(i)
1613
+ self.assertEqual(d.copy(), dict((i, chr(i)) for i in indices))
1614
+ self.assertEqual(sorted(d.keys()), indices)
1615
+ self.assertEqual(sorted(d.values()), [chr(i) for i in indices])
1616
+ self.assertEqual(sorted(d.items()), [(i, chr(i)) for i in indices])
1617
+
1618
+ def test_namespace(self):
1619
+ n = self.Namespace()
1620
+ n.name = 'Bob'
1621
+ n.job = 'Builder'
1622
+ n._hidden = 'hidden'
1623
+ self.assertEqual((n.name, n.job), ('Bob', 'Builder'))
1624
+ del n.job
1625
+ self.assertEqual(str(n), "Namespace(name='Bob')")
1626
+ self.assertTrue(hasattr(n, 'name'))
1627
+ self.assertTrue(not hasattr(n, 'job'))
1628
+
1629
+ #
1630
+ #
1631
+ #
1632
+
1633
+ def sqr(x, wait=0.0):
1634
+ time.sleep(wait)
1635
+ return x*x
1636
+
1637
+ def mul(x, y):
1638
+ return x*y
1639
+
1640
+ class _TestPool(BaseTestCase):
1641
+
1642
+ @classmethod
1643
+ def setUpClass(cls):
1644
+ super().setUpClass()
1645
+ cls.pool = cls.Pool(4)
1646
+
1647
+ @classmethod
1648
+ def tearDownClass(cls):
1649
+ cls.pool.terminate()
1650
+ cls.pool.join()
1651
+ cls.pool = None
1652
+ super().tearDownClass()
1653
+
1654
+ def test_apply(self):
1655
+ papply = self.pool.apply
1656
+ self.assertEqual(papply(sqr, (5,)), sqr(5))
1657
+ self.assertEqual(papply(sqr, (), {'x':3}), sqr(x=3))
1658
+
1659
+ def test_map(self):
1660
+ pmap = self.pool.map
1661
+ self.assertEqual(pmap(sqr, list(range(10))), list(map(sqr, list(range(10)))))
1662
+ self.assertEqual(pmap(sqr, list(range(100)), chunksize=20),
1663
+ list(map(sqr, list(range(100)))))
1664
+
1665
+ def test_starmap(self):
1666
+ psmap = self.pool.starmap
1667
+ tuples = list(zip(range(10), range(9,-1, -1)))
1668
+ self.assertEqual(psmap(mul, tuples),
1669
+ list(itertools.starmap(mul, tuples)))
1670
+ tuples = list(zip(range(100), range(99,-1, -1)))
1671
+ self.assertEqual(psmap(mul, tuples, chunksize=20),
1672
+ list(itertools.starmap(mul, tuples)))
1673
+
1674
+ def test_starmap_async(self):
1675
+ tuples = list(zip(range(100), range(99,-1, -1)))
1676
+ self.assertEqual(self.pool.starmap_async(mul, tuples).get(),
1677
+ list(itertools.starmap(mul, tuples)))
1678
+
1679
+ def test_map_async(self):
1680
+ self.assertEqual(self.pool.map_async(sqr, list(range(10))).get(),
1681
+ list(map(sqr, list(range(10)))))
1682
+
1683
+ def test_map_async_callbacks(self):
1684
+ call_args = self.manager.list() if self.TYPE == 'manager' else []
1685
+ self.pool.map_async(int, ['1'],
1686
+ callback=call_args.append,
1687
+ error_callback=call_args.append).wait()
1688
+ self.assertEqual(1, len(call_args))
1689
+ self.assertEqual([1], call_args[0])
1690
+ self.pool.map_async(int, ['a'],
1691
+ callback=call_args.append,
1692
+ error_callback=call_args.append).wait()
1693
+ self.assertEqual(2, len(call_args))
1694
+ self.assertIsInstance(call_args[1], ValueError)
1695
+
1696
+ def test_map_unplicklable(self):
1697
+ # Issue #19425 -- failure to pickle should not cause a hang
1698
+ if self.TYPE == 'threads':
1699
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
1700
+ class A(object):
1701
+ def __reduce__(self):
1702
+ raise RuntimeError('cannot pickle')
1703
+ with self.assertRaises(RuntimeError):
1704
+ self.pool.map(sqr, [A()]*10)
1705
+
1706
+ def test_map_chunksize(self):
1707
+ try:
1708
+ self.pool.map_async(sqr, [], chunksize=1).get(timeout=TIMEOUT1)
1709
+ except multiprocessing.TimeoutError:
1710
+ self.fail("pool.map_async with chunksize stalled on null list")
1711
+
1712
+ def test_async(self):
1713
+ res = self.pool.apply_async(sqr, (7, TIMEOUT1,))
1714
+ get = TimingWrapper(res.get)
1715
+ self.assertEqual(get(), 49)
1716
+ self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
1717
+
1718
+ def test_async_timeout(self):
1719
+ res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
1720
+ get = TimingWrapper(res.get)
1721
+ self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
1722
+ self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2)
1723
+
1724
+ def test_imap(self):
1725
+ it = self.pool.imap(sqr, list(range(10)))
1726
+ self.assertEqual(list(it), list(map(sqr, list(range(10)))))
1727
+
1728
+ it = self.pool.imap(sqr, list(range(10)))
1729
+ for i in range(10):
1730
+ self.assertEqual(next(it), i*i)
1731
+ self.assertRaises(StopIteration, it.__next__)
1732
+
1733
+ it = self.pool.imap(sqr, list(range(1000)), chunksize=100)
1734
+ for i in range(1000):
1735
+ self.assertEqual(next(it), i*i)
1736
+ self.assertRaises(StopIteration, it.__next__)
1737
+
1738
+ def test_imap_unordered(self):
1739
+ it = self.pool.imap_unordered(sqr, list(range(1000)))
1740
+ self.assertEqual(sorted(it), list(map(sqr, list(range(1000)))))
1741
+
1742
+ it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=53)
1743
+ self.assertEqual(sorted(it), list(map(sqr, list(range(1000)))))
1744
+
1745
+ def test_make_pool(self):
1746
+ self.assertRaises(ValueError, multiprocessing.Pool, -1)
1747
+ self.assertRaises(ValueError, multiprocessing.Pool, 0)
1748
+
1749
+ p = multiprocessing.Pool(3)
1750
+ self.assertEqual(3, len(p._pool))
1751
+ p.close()
1752
+ p.join()
1753
+
1754
+ def test_terminate(self):
1755
+ result = self.pool.map_async(
1756
+ time.sleep, [0.1 for i in range(10000)], chunksize=1
1757
+ )
1758
+ self.pool.terminate()
1759
+ join = TimingWrapper(self.pool.join)
1760
+ join()
1761
+ self.assertLess(join.elapsed, 0.5)
1762
+
1763
+ def test_empty_iterable(self):
1764
+ # See Issue 12157
1765
+ p = self.Pool(1)
1766
+
1767
+ self.assertEqual(p.map(sqr, []), [])
1768
+ self.assertEqual(list(p.imap(sqr, [])), [])
1769
+ self.assertEqual(list(p.imap_unordered(sqr, [])), [])
1770
+ self.assertEqual(p.map_async(sqr, []).get(), [])
1771
+
1772
+ p.close()
1773
+ p.join()
1774
+
1775
+ def test_context(self):
1776
+ if self.TYPE == 'processes':
1777
+ L = list(range(10))
1778
+ expected = [sqr(i) for i in L]
1779
+ with multiprocessing.Pool(2) as p:
1780
+ r = p.map_async(sqr, L)
1781
+ self.assertEqual(r.get(), expected)
1782
+ self.assertRaises(ValueError, p.map_async, sqr, L)
1783
+
1784
+ @classmethod
1785
+ def _test_traceback(cls):
1786
+ raise RuntimeError(123) # some comment
1787
+
1788
+ def test_traceback(self):
1789
+ # We want ensure that the traceback from the child process is
1790
+ # contained in the traceback raised in the main process.
1791
+ if self.TYPE == 'processes':
1792
+ with self.Pool(1) as p:
1793
+ try:
1794
+ p.apply(self._test_traceback)
1795
+ except Exception as e:
1796
+ exc = e
1797
+ else:
1798
+ raise AssertionError('expected RuntimeError')
1799
+ self.assertIs(type(exc), RuntimeError)
1800
+ self.assertEqual(exc.args, (123,))
1801
+ cause = exc.__cause__
1802
+ self.assertIs(type(cause), multiprocessing.pool.RemoteTraceback)
1803
+ self.assertIn('raise RuntimeError(123) # some comment', cause.tb)
1804
+
1805
+ with test.support.captured_stderr() as f1:
1806
+ try:
1807
+ raise exc
1808
+ except RuntimeError:
1809
+ sys.excepthook(*sys.exc_info())
1810
+ self.assertIn('raise RuntimeError(123) # some comment',
1811
+ f1.getvalue())
1812
+
1813
+ @classmethod
1814
+ def _test_wrapped_exception(cls):
1815
+ raise RuntimeError('foo')
1816
+
1817
+ def test_wrapped_exception(self):
1818
+ # Issue #20980: Should not wrap exception when using thread pool
1819
+ with self.Pool(1) as p:
1820
+ with self.assertRaises(RuntimeError):
1821
+ p.apply(self._test_wrapped_exception)
1822
+
1823
+
1824
+ def raising():
1825
+ raise KeyError("key")
1826
+
1827
+ def unpickleable_result():
1828
+ return lambda: 42
1829
+
1830
+ class _TestPoolWorkerErrors(BaseTestCase):
1831
+ ALLOWED_TYPES = ('processes', )
1832
+
1833
+ def test_async_error_callback(self):
1834
+ p = multiprocessing.Pool(2)
1835
+
1836
+ scratchpad = [None]
1837
+ def errback(exc):
1838
+ scratchpad[0] = exc
1839
+
1840
+ res = p.apply_async(raising, error_callback=errback)
1841
+ self.assertRaises(KeyError, res.get)
1842
+ self.assertTrue(scratchpad[0])
1843
+ self.assertIsInstance(scratchpad[0], KeyError)
1844
+
1845
+ p.close()
1846
+ p.join()
1847
+
1848
+ def test_unpickleable_result(self):
1849
+ from multiprocessing.pool import MaybeEncodingError
1850
+ p = multiprocessing.Pool(2)
1851
+
1852
+ # Make sure we don't lose pool processes because of encoding errors.
1853
+ for iteration in range(20):
1854
+
1855
+ scratchpad = [None]
1856
+ def errback(exc):
1857
+ scratchpad[0] = exc
1858
+
1859
+ res = p.apply_async(unpickleable_result, error_callback=errback)
1860
+ self.assertRaises(MaybeEncodingError, res.get)
1861
+ wrapped = scratchpad[0]
1862
+ self.assertTrue(wrapped)
1863
+ self.assertIsInstance(scratchpad[0], MaybeEncodingError)
1864
+ self.assertIsNotNone(wrapped.exc)
1865
+ self.assertIsNotNone(wrapped.value)
1866
+
1867
+ p.close()
1868
+ p.join()
1869
+
1870
+ class _TestPoolWorkerLifetime(BaseTestCase):
1871
+ ALLOWED_TYPES = ('processes', )
1872
+
1873
+ def test_pool_worker_lifetime(self):
1874
+ p = multiprocessing.Pool(3, maxtasksperchild=10)
1875
+ self.assertEqual(3, len(p._pool))
1876
+ origworkerpids = [w.pid for w in p._pool]
1877
+ # Run many tasks so each worker gets replaced (hopefully)
1878
+ results = []
1879
+ for i in range(100):
1880
+ results.append(p.apply_async(sqr, (i, )))
1881
+ # Fetch the results and verify we got the right answers,
1882
+ # also ensuring all the tasks have completed.
1883
+ for (j, res) in enumerate(results):
1884
+ self.assertEqual(res.get(), sqr(j))
1885
+ # Refill the pool
1886
+ p._repopulate_pool()
1887
+ # Wait until all workers are alive
1888
+ # (countdown * DELTA = 5 seconds max startup process time)
1889
+ countdown = 50
1890
+ while countdown and not all(w.is_alive() for w in p._pool):
1891
+ countdown -= 1
1892
+ time.sleep(DELTA)
1893
+ finalworkerpids = [w.pid for w in p._pool]
1894
+ # All pids should be assigned. See issue #7805.
1895
+ self.assertNotIn(None, origworkerpids)
1896
+ self.assertNotIn(None, finalworkerpids)
1897
+ # Finally, check that the worker pids have changed
1898
+ self.assertNotEqual(sorted(origworkerpids), sorted(finalworkerpids))
1899
+ p.close()
1900
+ p.join()
1901
+
1902
+ def test_pool_worker_lifetime_early_close(self):
1903
+ # Issue #10332: closing a pool whose workers have limited lifetimes
1904
+ # before all the tasks completed would make join() hang.
1905
+ p = multiprocessing.Pool(3, maxtasksperchild=1)
1906
+ results = []
1907
+ for i in range(6):
1908
+ results.append(p.apply_async(sqr, (i, 0.3)))
1909
+ p.close()
1910
+ p.join()
1911
+ # check the results
1912
+ for (j, res) in enumerate(results):
1913
+ self.assertEqual(res.get(), sqr(j))
1914
+
1915
+ #
1916
+ # Test of creating a customized manager class
1917
+ #
1918
+
1919
+ from multiprocessing.managers import BaseManager, BaseProxy, RemoteError
1920
+
1921
+ class FooBar(object):
1922
+ def f(self):
1923
+ return 'f()'
1924
+ def g(self):
1925
+ raise ValueError
1926
+ def _h(self):
1927
+ return '_h()'
1928
+
1929
+ def baz():
1930
+ for i in range(10):
1931
+ yield i*i
1932
+
1933
+ class IteratorProxy(BaseProxy):
1934
+ _exposed_ = ('__next__',)
1935
+ def __iter__(self):
1936
+ return self
1937
+ def __next__(self):
1938
+ return self._callmethod('__next__')
1939
+
1940
+ class MyManager(BaseManager):
1941
+ pass
1942
+
1943
+ MyManager.register('Foo', callable=FooBar)
1944
+ MyManager.register('Bar', callable=FooBar, exposed=('f', '_h'))
1945
+ MyManager.register('baz', callable=baz, proxytype=IteratorProxy)
1946
+
1947
+
1948
+ class _TestMyManager(BaseTestCase):
1949
+
1950
+ ALLOWED_TYPES = ('manager',)
1951
+
1952
+ def test_mymanager(self):
1953
+ manager = MyManager()
1954
+ manager.start()
1955
+ self.common(manager)
1956
+ manager.shutdown()
1957
+
1958
+ # If the manager process exited cleanly then the exitcode
1959
+ # will be zero. Otherwise (after a short timeout)
1960
+ # terminate() is used, resulting in an exitcode of -SIGTERM.
1961
+ self.assertEqual(manager._process.exitcode, 0)
1962
+
1963
+ def test_mymanager_context(self):
1964
+ with MyManager() as manager:
1965
+ self.common(manager)
1966
+ self.assertEqual(manager._process.exitcode, 0)
1967
+
1968
+ def test_mymanager_context_prestarted(self):
1969
+ manager = MyManager()
1970
+ manager.start()
1971
+ with manager:
1972
+ self.common(manager)
1973
+ self.assertEqual(manager._process.exitcode, 0)
1974
+
1975
+ def common(self, manager):
1976
+ foo = manager.Foo()
1977
+ bar = manager.Bar()
1978
+ baz = manager.baz()
1979
+
1980
+ foo_methods = [name for name in ('f', 'g', '_h') if hasattr(foo, name)]
1981
+ bar_methods = [name for name in ('f', 'g', '_h') if hasattr(bar, name)]
1982
+
1983
+ self.assertEqual(foo_methods, ['f', 'g'])
1984
+ self.assertEqual(bar_methods, ['f', '_h'])
1985
+
1986
+ self.assertEqual(foo.f(), 'f()')
1987
+ self.assertRaises(ValueError, foo.g)
1988
+ self.assertEqual(foo._callmethod('f'), 'f()')
1989
+ self.assertRaises(RemoteError, foo._callmethod, '_h')
1990
+
1991
+ self.assertEqual(bar.f(), 'f()')
1992
+ self.assertEqual(bar._h(), '_h()')
1993
+ self.assertEqual(bar._callmethod('f'), 'f()')
1994
+ self.assertEqual(bar._callmethod('_h'), '_h()')
1995
+
1996
+ self.assertEqual(list(baz), [i*i for i in range(10)])
1997
+
1998
+
1999
+ #
2000
+ # Test of connecting to a remote server and using xmlrpclib for serialization
2001
+ #
2002
+
2003
+ _queue = pyqueue.Queue()
2004
+ def get_queue():
2005
+ return _queue
2006
+
2007
+ class QueueManager(BaseManager):
2008
+ '''manager class used by server process'''
2009
+ QueueManager.register('get_queue', callable=get_queue)
2010
+
2011
+ class QueueManager2(BaseManager):
2012
+ '''manager class which specifies the same interface as QueueManager'''
2013
+ QueueManager2.register('get_queue')
2014
+
2015
+
2016
+ SERIALIZER = 'xmlrpclib'
2017
+
2018
+ class _TestRemoteManager(BaseTestCase):
2019
+
2020
+ ALLOWED_TYPES = ('manager',)
2021
+
2022
+ @classmethod
2023
+ def _putter(cls, address, authkey):
2024
+ manager = QueueManager2(
2025
+ address=address, authkey=authkey, serializer=SERIALIZER
2026
+ )
2027
+ manager.connect()
2028
+ queue = manager.get_queue()
2029
+ queue.put(('hello world', None, True, 2.25))
2030
+
2031
+ def test_remote(self):
2032
+ authkey = os.urandom(32)
2033
+
2034
+ manager = QueueManager(
2035
+ address=(test.support.HOST, 0), authkey=authkey, serializer=SERIALIZER
2036
+ )
2037
+ manager.start()
2038
+
2039
+ p = self.Process(target=self._putter, args=(manager.address, authkey))
2040
+ p.daemon = True
2041
+ p.start()
2042
+
2043
+ manager2 = QueueManager2(
2044
+ address=manager.address, authkey=authkey, serializer=SERIALIZER
2045
+ )
2046
+ manager2.connect()
2047
+ queue = manager2.get_queue()
2048
+
2049
+ # Note that xmlrpclib will deserialize object as a list not a tuple
2050
+ self.assertEqual(queue.get(), ['hello world', None, True, 2.25])
2051
+
2052
+ # Because we are using xmlrpclib for serialization instead of
2053
+ # pickle this will cause a serialization error.
2054
+ self.assertRaises(Exception, queue.put, time.sleep)
2055
+
2056
+ # Make queue finalizer run before the server is stopped
2057
+ del queue
2058
+ manager.shutdown()
2059
+
2060
+ class _TestManagerRestart(BaseTestCase):
2061
+
2062
+ @classmethod
2063
+ def _putter(cls, address, authkey):
2064
+ manager = QueueManager(
2065
+ address=address, authkey=authkey, serializer=SERIALIZER)
2066
+ manager.connect()
2067
+ queue = manager.get_queue()
2068
+ queue.put('hello world')
2069
+
2070
+ def test_rapid_restart(self):
2071
+ authkey = os.urandom(32)
2072
+ manager = QueueManager(
2073
+ address=(test.support.HOST, 0), authkey=authkey, serializer=SERIALIZER)
2074
+ srvr = manager.get_server()
2075
+ addr = srvr.address
2076
+ # Close the connection.Listener socket which gets opened as a part
2077
+ # of manager.get_server(). It's not needed for the test.
2078
+ srvr.listener.close()
2079
+ manager.start()
2080
+
2081
+ p = self.Process(target=self._putter, args=(manager.address, authkey))
2082
+ p.daemon = True
2083
+ p.start()
2084
+ queue = manager.get_queue()
2085
+ self.assertEqual(queue.get(), 'hello world')
2086
+ del queue
2087
+ manager.shutdown()
2088
+ manager = QueueManager(
2089
+ address=addr, authkey=authkey, serializer=SERIALIZER)
2090
+ try:
2091
+ manager.start()
2092
+ except OSError as e:
2093
+ if e.errno != errno.EADDRINUSE:
2094
+ raise
2095
+ # Retry after some time, in case the old socket was lingering
2096
+ # (sporadic failure on buildbots)
2097
+ time.sleep(1.0)
2098
+ manager = QueueManager(
2099
+ address=addr, authkey=authkey, serializer=SERIALIZER)
2100
+ manager.shutdown()
2101
+
2102
+ #
2103
+ #
2104
+ #
2105
+
2106
+ SENTINEL = latin('')
2107
+
2108
+ class _TestConnection(BaseTestCase):
2109
+
2110
+ ALLOWED_TYPES = ('processes', 'threads')
2111
+
2112
+ @classmethod
2113
+ def _echo(cls, conn):
2114
+ for msg in iter(conn.recv_bytes, SENTINEL):
2115
+ conn.send_bytes(msg)
2116
+ conn.close()
2117
+
2118
+ def test_connection(self):
2119
+ conn, child_conn = self.Pipe()
2120
+
2121
+ p = self.Process(target=self._echo, args=(child_conn,))
2122
+ p.daemon = True
2123
+ p.start()
2124
+
2125
+ seq = [1, 2.25, None]
2126
+ msg = latin('hello world')
2127
+ longmsg = msg * 10
2128
+ arr = array.array('i', list(range(4)))
2129
+
2130
+ if self.TYPE == 'processes':
2131
+ self.assertEqual(type(conn.fileno()), int)
2132
+
2133
+ self.assertEqual(conn.send(seq), None)
2134
+ self.assertEqual(conn.recv(), seq)
2135
+
2136
+ self.assertEqual(conn.send_bytes(msg), None)
2137
+ self.assertEqual(conn.recv_bytes(), msg)
2138
+
2139
+ if self.TYPE == 'processes':
2140
+ buffer = array.array('i', [0]*10)
2141
+ expected = list(arr) + [0] * (10 - len(arr))
2142
+ self.assertEqual(conn.send_bytes(arr), None)
2143
+ self.assertEqual(conn.recv_bytes_into(buffer),
2144
+ len(arr) * buffer.itemsize)
2145
+ self.assertEqual(list(buffer), expected)
2146
+
2147
+ buffer = array.array('i', [0]*10)
2148
+ expected = [0] * 3 + list(arr) + [0] * (10 - 3 - len(arr))
2149
+ self.assertEqual(conn.send_bytes(arr), None)
2150
+ self.assertEqual(conn.recv_bytes_into(buffer, 3 * buffer.itemsize),
2151
+ len(arr) * buffer.itemsize)
2152
+ self.assertEqual(list(buffer), expected)
2153
+
2154
+ buffer = bytearray(latin(' ' * 40))
2155
+ self.assertEqual(conn.send_bytes(longmsg), None)
2156
+ try:
2157
+ res = conn.recv_bytes_into(buffer)
2158
+ except multiprocessing.BufferTooShort as e:
2159
+ self.assertEqual(e.args, (longmsg,))
2160
+ else:
2161
+ self.fail('expected BufferTooShort, got %s' % res)
2162
+
2163
+ poll = TimingWrapper(conn.poll)
2164
+
2165
+ self.assertEqual(poll(), False)
2166
+ self.assertTimingAlmostEqual(poll.elapsed, 0)
2167
+
2168
+ self.assertEqual(poll(-1), False)
2169
+ self.assertTimingAlmostEqual(poll.elapsed, 0)
2170
+
2171
+ self.assertEqual(poll(TIMEOUT1), False)
2172
+ self.assertTimingAlmostEqual(poll.elapsed, TIMEOUT1)
2173
+
2174
+ conn.send(None)
2175
+ time.sleep(.1)
2176
+
2177
+ self.assertEqual(poll(TIMEOUT1), True)
2178
+ self.assertTimingAlmostEqual(poll.elapsed, 0)
2179
+
2180
+ self.assertEqual(conn.recv(), None)
2181
+
2182
+ really_big_msg = latin('X') * (1024 * 1024 * 16) # 16Mb
2183
+ conn.send_bytes(really_big_msg)
2184
+ self.assertEqual(conn.recv_bytes(), really_big_msg)
2185
+
2186
+ conn.send_bytes(SENTINEL) # tell child to quit
2187
+ child_conn.close()
2188
+
2189
+ if self.TYPE == 'processes':
2190
+ self.assertEqual(conn.readable, True)
2191
+ self.assertEqual(conn.writable, True)
2192
+ self.assertRaises(EOFError, conn.recv)
2193
+ self.assertRaises(EOFError, conn.recv_bytes)
2194
+
2195
+ p.join()
2196
+
2197
+ def test_duplex_false(self):
2198
+ reader, writer = self.Pipe(duplex=False)
2199
+ self.assertEqual(writer.send(1), None)
2200
+ self.assertEqual(reader.recv(), 1)
2201
+ if self.TYPE == 'processes':
2202
+ self.assertEqual(reader.readable, True)
2203
+ self.assertEqual(reader.writable, False)
2204
+ self.assertEqual(writer.readable, False)
2205
+ self.assertEqual(writer.writable, True)
2206
+ self.assertRaises(OSError, reader.send, 2)
2207
+ self.assertRaises(OSError, writer.recv)
2208
+ self.assertRaises(OSError, writer.poll)
2209
+
2210
+ def test_spawn_close(self):
2211
+ # We test that a pipe connection can be closed by parent
2212
+ # process immediately after child is spawned. On Windows this
2213
+ # would have sometimes failed on old versions because
2214
+ # child_conn would be closed before the child got a chance to
2215
+ # duplicate it.
2216
+ conn, child_conn = self.Pipe()
2217
+
2218
+ p = self.Process(target=self._echo, args=(child_conn,))
2219
+ p.daemon = True
2220
+ p.start()
2221
+ child_conn.close() # this might complete before child initializes
2222
+
2223
+ msg = latin('hello')
2224
+ conn.send_bytes(msg)
2225
+ self.assertEqual(conn.recv_bytes(), msg)
2226
+
2227
+ conn.send_bytes(SENTINEL)
2228
+ conn.close()
2229
+ p.join()
2230
+
2231
+ def test_sendbytes(self):
2232
+ if self.TYPE != 'processes':
2233
+ self.skipTest('test not appropriate for {}'.format(self.TYPE))
2234
+
2235
+ msg = latin('abcdefghijklmnopqrstuvwxyz')
2236
+ a, b = self.Pipe()
2237
+
2238
+ a.send_bytes(msg)
2239
+ self.assertEqual(b.recv_bytes(), msg)
2240
+
2241
+ a.send_bytes(msg, 5)
2242
+ self.assertEqual(b.recv_bytes(), msg[5:])
2243
+
2244
+ a.send_bytes(msg, 7, 8)
2245
+ self.assertEqual(b.recv_bytes(), msg[7:7+8])
2246
+
2247
+ a.send_bytes(msg, 26)
2248
+ self.assertEqual(b.recv_bytes(), latin(''))
2249
+
2250
+ a.send_bytes(msg, 26, 0)
2251
+ self.assertEqual(b.recv_bytes(), latin(''))
2252
+
2253
+ self.assertRaises(ValueError, a.send_bytes, msg, 27)
2254
+
2255
+ self.assertRaises(ValueError, a.send_bytes, msg, 22, 5)
2256
+
2257
+ self.assertRaises(ValueError, a.send_bytes, msg, 26, 1)
2258
+
2259
+ self.assertRaises(ValueError, a.send_bytes, msg, -1)
2260
+
2261
+ self.assertRaises(ValueError, a.send_bytes, msg, 4, -1)
2262
+
2263
+ @classmethod
2264
+ def _is_fd_assigned(cls, fd):
2265
+ try:
2266
+ os.fstat(fd)
2267
+ except OSError as e:
2268
+ if e.errno == errno.EBADF:
2269
+ return False
2270
+ raise
2271
+ else:
2272
+ return True
2273
+
2274
+ @classmethod
2275
+ def _writefd(cls, conn, data, create_dummy_fds=False):
2276
+ if create_dummy_fds:
2277
+ for i in range(0, 256):
2278
+ if not cls._is_fd_assigned(i):
2279
+ os.dup2(conn.fileno(), i)
2280
+ fd = reduction.recv_handle(conn)
2281
+ if msvcrt:
2282
+ fd = msvcrt.open_osfhandle(fd, os.O_WRONLY)
2283
+ os.write(fd, data)
2284
+ os.close(fd)
2285
+
2286
+ @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
2287
+ def test_fd_transfer(self):
2288
+ if self.TYPE != 'processes':
2289
+ self.skipTest("only makes sense with processes")
2290
+ conn, child_conn = self.Pipe(duplex=True)
2291
+
2292
+ p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
2293
+ p.daemon = True
2294
+ p.start()
2295
+ self.addCleanup(test.support.unlink, test.support.TESTFN)
2296
+ with open(test.support.TESTFN, "wb") as f:
2297
+ fd = f.fileno()
2298
+ if msvcrt:
2299
+ fd = msvcrt.get_osfhandle(fd)
2300
+ reduction.send_handle(conn, fd, p.pid)
2301
+ p.join()
2302
+ with open(test.support.TESTFN, "rb") as f:
2303
+ self.assertEqual(f.read(), b"foo")
2304
+
2305
+ @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
2306
+ @unittest.skipIf(sys.platform == "win32",
2307
+ "test semantics don't make sense on Windows")
2308
+ @unittest.skipIf(MAXFD <= 256,
2309
+ "largest assignable fd number is too small")
2310
+ @unittest.skipUnless(hasattr(os, "dup2"),
2311
+ "test needs os.dup2()")
2312
+ def test_large_fd_transfer(self):
2313
+ # With fd > 256 (issue #11657)
2314
+ if self.TYPE != 'processes':
2315
+ self.skipTest("only makes sense with processes")
2316
+ conn, child_conn = self.Pipe(duplex=True)
2317
+
2318
+ p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
2319
+ p.daemon = True
2320
+ p.start()
2321
+ self.addCleanup(test.support.unlink, test.support.TESTFN)
2322
+ with open(test.support.TESTFN, "wb") as f:
2323
+ fd = f.fileno()
2324
+ for newfd in range(256, MAXFD):
2325
+ if not self._is_fd_assigned(newfd):
2326
+ break
2327
+ else:
2328
+ self.fail("could not find an unassigned large file descriptor")
2329
+ os.dup2(fd, newfd)
2330
+ try:
2331
+ reduction.send_handle(conn, newfd, p.pid)
2332
+ finally:
2333
+ os.close(newfd)
2334
+ p.join()
2335
+ with open(test.support.TESTFN, "rb") as f:
2336
+ self.assertEqual(f.read(), b"bar")
2337
+
2338
+ @classmethod
2339
+ def _send_data_without_fd(self, conn):
2340
+ os.write(conn.fileno(), b"\0")
2341
+
2342
+ @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
2343
+ @unittest.skipIf(sys.platform == "win32", "doesn't make sense on Windows")
2344
+ def test_missing_fd_transfer(self):
2345
+ # Check that exception is raised when received data is not
2346
+ # accompanied by a file descriptor in ancillary data.
2347
+ if self.TYPE != 'processes':
2348
+ self.skipTest("only makes sense with processes")
2349
+ conn, child_conn = self.Pipe(duplex=True)
2350
+
2351
+ p = self.Process(target=self._send_data_without_fd, args=(child_conn,))
2352
+ p.daemon = True
2353
+ p.start()
2354
+ self.assertRaises(RuntimeError, reduction.recv_handle, conn)
2355
+ p.join()
2356
+
2357
+ def test_context(self):
2358
+ a, b = self.Pipe()
2359
+
2360
+ with a, b:
2361
+ a.send(1729)
2362
+ self.assertEqual(b.recv(), 1729)
2363
+ if self.TYPE == 'processes':
2364
+ self.assertFalse(a.closed)
2365
+ self.assertFalse(b.closed)
2366
+
2367
+ if self.TYPE == 'processes':
2368
+ self.assertTrue(a.closed)
2369
+ self.assertTrue(b.closed)
2370
+ self.assertRaises(OSError, a.recv)
2371
+ self.assertRaises(OSError, b.recv)
2372
+
2373
+ class _TestListener(BaseTestCase):
2374
+
2375
+ ALLOWED_TYPES = ('processes',)
2376
+
2377
+ def test_multiple_bind(self):
2378
+ for family in self.connection.families:
2379
+ l = self.connection.Listener(family=family)
2380
+ self.addCleanup(l.close)
2381
+ self.assertRaises(OSError, self.connection.Listener,
2382
+ l.address, family)
2383
+
2384
+ def test_context(self):
2385
+ with self.connection.Listener() as l:
2386
+ with self.connection.Client(l.address) as c:
2387
+ with l.accept() as d:
2388
+ c.send(1729)
2389
+ self.assertEqual(d.recv(), 1729)
2390
+
2391
+ if self.TYPE == 'processes':
2392
+ self.assertRaises(OSError, l.accept)
2393
+
2394
+ class _TestListenerClient(BaseTestCase):
2395
+
2396
+ ALLOWED_TYPES = ('processes', 'threads')
2397
+
2398
+ @classmethod
2399
+ def _test(cls, address):
2400
+ conn = cls.connection.Client(address)
2401
+ conn.send('hello')
2402
+ conn.close()
2403
+
2404
+ def test_listener_client(self):
2405
+ for family in self.connection.families:
2406
+ l = self.connection.Listener(family=family)
2407
+ p = self.Process(target=self._test, args=(l.address,))
2408
+ p.daemon = True
2409
+ p.start()
2410
+ conn = l.accept()
2411
+ self.assertEqual(conn.recv(), 'hello')
2412
+ p.join()
2413
+ l.close()
2414
+
2415
+ def test_issue14725(self):
2416
+ l = self.connection.Listener()
2417
+ p = self.Process(target=self._test, args=(l.address,))
2418
+ p.daemon = True
2419
+ p.start()
2420
+ time.sleep(1)
2421
+ # On Windows the client process should by now have connected,
2422
+ # written data and closed the pipe handle by now. This causes
2423
+ # ConnectNamdedPipe() to fail with ERROR_NO_DATA. See Issue
2424
+ # 14725.
2425
+ conn = l.accept()
2426
+ self.assertEqual(conn.recv(), 'hello')
2427
+ conn.close()
2428
+ p.join()
2429
+ l.close()
2430
+
2431
+ def test_issue16955(self):
2432
+ for fam in self.connection.families:
2433
+ l = self.connection.Listener(family=fam)
2434
+ c = self.connection.Client(l.address)
2435
+ a = l.accept()
2436
+ a.send_bytes(b"hello")
2437
+ self.assertTrue(c.poll(1))
2438
+ a.close()
2439
+ c.close()
2440
+ l.close()
2441
+
2442
+ class _TestPoll(BaseTestCase):
2443
+
2444
+ ALLOWED_TYPES = ('processes', 'threads')
2445
+
2446
+ def test_empty_string(self):
2447
+ a, b = self.Pipe()
2448
+ self.assertEqual(a.poll(), False)
2449
+ b.send_bytes(b'')
2450
+ self.assertEqual(a.poll(), True)
2451
+ self.assertEqual(a.poll(), True)
2452
+
2453
+ @classmethod
2454
+ def _child_strings(cls, conn, strings):
2455
+ for s in strings:
2456
+ time.sleep(0.1)
2457
+ conn.send_bytes(s)
2458
+ conn.close()
2459
+
2460
+ def test_strings(self):
2461
+ strings = (b'hello', b'', b'a', b'b', b'', b'bye', b'', b'lop')
2462
+ a, b = self.Pipe()
2463
+ p = self.Process(target=self._child_strings, args=(b, strings))
2464
+ p.start()
2465
+
2466
+ for s in strings:
2467
+ for i in range(200):
2468
+ if a.poll(0.01):
2469
+ break
2470
+ x = a.recv_bytes()
2471
+ self.assertEqual(s, x)
2472
+
2473
+ p.join()
2474
+
2475
+ @classmethod
2476
+ def _child_boundaries(cls, r):
2477
+ # Polling may "pull" a message in to the child process, but we
2478
+ # don't want it to pull only part of a message, as that would
2479
+ # corrupt the pipe for any other processes which might later
2480
+ # read from it.
2481
+ r.poll(5)
2482
+
2483
+ def test_boundaries(self):
2484
+ r, w = self.Pipe(False)
2485
+ p = self.Process(target=self._child_boundaries, args=(r,))
2486
+ p.start()
2487
+ time.sleep(2)
2488
+ L = [b"first", b"second"]
2489
+ for obj in L:
2490
+ w.send_bytes(obj)
2491
+ w.close()
2492
+ p.join()
2493
+ self.assertIn(r.recv_bytes(), L)
2494
+
2495
+ @classmethod
2496
+ def _child_dont_merge(cls, b):
2497
+ b.send_bytes(b'a')
2498
+ b.send_bytes(b'b')
2499
+ b.send_bytes(b'cd')
2500
+
2501
+ def test_dont_merge(self):
2502
+ a, b = self.Pipe()
2503
+ self.assertEqual(a.poll(0.0), False)
2504
+ self.assertEqual(a.poll(0.1), False)
2505
+
2506
+ p = self.Process(target=self._child_dont_merge, args=(b,))
2507
+ p.start()
2508
+
2509
+ self.assertEqual(a.recv_bytes(), b'a')
2510
+ self.assertEqual(a.poll(1.0), True)
2511
+ self.assertEqual(a.poll(1.0), True)
2512
+ self.assertEqual(a.recv_bytes(), b'b')
2513
+ self.assertEqual(a.poll(1.0), True)
2514
+ self.assertEqual(a.poll(1.0), True)
2515
+ self.assertEqual(a.poll(0.0), True)
2516
+ self.assertEqual(a.recv_bytes(), b'cd')
2517
+
2518
+ p.join()
2519
+
2520
+ #
2521
+ # Test of sending connection and socket objects between processes
2522
+ #
2523
+
2524
+ @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
2525
+ class _TestPicklingConnections(BaseTestCase):
2526
+
2527
+ ALLOWED_TYPES = ('processes',)
2528
+
2529
+ @classmethod
2530
+ def tearDownClass(cls):
2531
+ from multiprocessing import resource_sharer
2532
+ resource_sharer.stop(timeout=5)
2533
+
2534
+ @classmethod
2535
+ def _listener(cls, conn, families):
2536
+ for fam in families:
2537
+ l = cls.connection.Listener(family=fam)
2538
+ conn.send(l.address)
2539
+ new_conn = l.accept()
2540
+ conn.send(new_conn)
2541
+ new_conn.close()
2542
+ l.close()
2543
+
2544
+ l = socket.socket()
2545
+ l.bind((test.support.HOST, 0))
2546
+ l.listen(1)
2547
+ conn.send(l.getsockname())
2548
+ new_conn, addr = l.accept()
2549
+ conn.send(new_conn)
2550
+ new_conn.close()
2551
+ l.close()
2552
+
2553
+ conn.recv()
2554
+
2555
+ @classmethod
2556
+ def _remote(cls, conn):
2557
+ for (address, msg) in iter(conn.recv, None):
2558
+ client = cls.connection.Client(address)
2559
+ client.send(msg.upper())
2560
+ client.close()
2561
+
2562
+ address, msg = conn.recv()
2563
+ client = socket.socket()
2564
+ client.connect(address)
2565
+ client.sendall(msg.upper())
2566
+ client.close()
2567
+
2568
+ conn.close()
2569
+
2570
+ def test_pickling(self):
2571
+ families = self.connection.families
2572
+
2573
+ lconn, lconn0 = self.Pipe()
2574
+ lp = self.Process(target=self._listener, args=(lconn0, families))
2575
+ lp.daemon = True
2576
+ lp.start()
2577
+ lconn0.close()
2578
+
2579
+ rconn, rconn0 = self.Pipe()
2580
+ rp = self.Process(target=self._remote, args=(rconn0,))
2581
+ rp.daemon = True
2582
+ rp.start()
2583
+ rconn0.close()
2584
+
2585
+ for fam in families:
2586
+ msg = ('This connection uses family %s' % fam).encode('ascii')
2587
+ address = lconn.recv()
2588
+ rconn.send((address, msg))
2589
+ new_conn = lconn.recv()
2590
+ self.assertEqual(new_conn.recv(), msg.upper())
2591
+
2592
+ rconn.send(None)
2593
+
2594
+ msg = latin('This connection uses a normal socket')
2595
+ address = lconn.recv()
2596
+ rconn.send((address, msg))
2597
+ new_conn = lconn.recv()
2598
+ buf = []
2599
+ while True:
2600
+ s = new_conn.recv(100)
2601
+ if not s:
2602
+ break
2603
+ buf.append(s)
2604
+ buf = b''.join(buf)
2605
+ self.assertEqual(buf, msg.upper())
2606
+ new_conn.close()
2607
+
2608
+ lconn.send(None)
2609
+
2610
+ rconn.close()
2611
+ lconn.close()
2612
+
2613
+ lp.join()
2614
+ rp.join()
2615
+
2616
+ @classmethod
2617
+ def child_access(cls, conn):
2618
+ w = conn.recv()
2619
+ w.send('all is well')
2620
+ w.close()
2621
+
2622
+ r = conn.recv()
2623
+ msg = r.recv()
2624
+ conn.send(msg*2)
2625
+
2626
+ conn.close()
2627
+
2628
+ def test_access(self):
2629
+ # On Windows, if we do not specify a destination pid when
2630
+ # using DupHandle then we need to be careful to use the
2631
+ # correct access flags for DuplicateHandle(), or else
2632
+ # DupHandle.detach() will raise PermissionError. For example,
2633
+ # for a read only pipe handle we should use
2634
+ # access=FILE_GENERIC_READ. (Unfortunately
2635
+ # DUPLICATE_SAME_ACCESS does not work.)
2636
+ conn, child_conn = self.Pipe()
2637
+ p = self.Process(target=self.child_access, args=(child_conn,))
2638
+ p.daemon = True
2639
+ p.start()
2640
+ child_conn.close()
2641
+
2642
+ r, w = self.Pipe(duplex=False)
2643
+ conn.send(w)
2644
+ w.close()
2645
+ self.assertEqual(r.recv(), 'all is well')
2646
+ r.close()
2647
+
2648
+ r, w = self.Pipe(duplex=False)
2649
+ conn.send(r)
2650
+ r.close()
2651
+ w.send('foobar')
2652
+ w.close()
2653
+ self.assertEqual(conn.recv(), 'foobar'*2)
2654
+
2655
+ #
2656
+ #
2657
+ #
2658
+
2659
+ class _TestHeap(BaseTestCase):
2660
+
2661
+ ALLOWED_TYPES = ('processes',)
2662
+
2663
+ def test_heap(self):
2664
+ iterations = 5000
2665
+ maxblocks = 50
2666
+ blocks = []
2667
+
2668
+ # create and destroy lots of blocks of different sizes
2669
+ for i in range(iterations):
2670
+ size = int(random.lognormvariate(0, 1) * 1000)
2671
+ b = multiprocessing.heap.BufferWrapper(size)
2672
+ blocks.append(b)
2673
+ if len(blocks) > maxblocks:
2674
+ i = random.randrange(maxblocks)
2675
+ del blocks[i]
2676
+
2677
+ # get the heap object
2678
+ heap = multiprocessing.heap.BufferWrapper._heap
2679
+
2680
+ # verify the state of the heap
2681
+ all = []
2682
+ occupied = 0
2683
+ heap._lock.acquire()
2684
+ self.addCleanup(heap._lock.release)
2685
+ for L in list(heap._len_to_seq.values()):
2686
+ for arena, start, stop in L:
2687
+ all.append((heap._arenas.index(arena), start, stop,
2688
+ stop-start, 'free'))
2689
+ for arena, start, stop in heap._allocated_blocks:
2690
+ all.append((heap._arenas.index(arena), start, stop,
2691
+ stop-start, 'occupied'))
2692
+ occupied += (stop-start)
2693
+
2694
+ all.sort()
2695
+
2696
+ for i in range(len(all)-1):
2697
+ (arena, start, stop) = all[i][:3]
2698
+ (narena, nstart, nstop) = all[i+1][:3]
2699
+ self.assertTrue((arena != narena and nstart == 0) or
2700
+ (stop == nstart))
2701
+
2702
+ def test_free_from_gc(self):
2703
+ # Check that freeing of blocks by the garbage collector doesn't deadlock
2704
+ # (issue #12352).
2705
+ # Make sure the GC is enabled, and set lower collection thresholds to
2706
+ # make collections more frequent (and increase the probability of
2707
+ # deadlock).
2708
+ if not gc.isenabled():
2709
+ gc.enable()
2710
+ self.addCleanup(gc.disable)
2711
+ thresholds = gc.get_threshold()
2712
+ self.addCleanup(gc.set_threshold, *thresholds)
2713
+ gc.set_threshold(10)
2714
+
2715
+ # perform numerous block allocations, with cyclic references to make
2716
+ # sure objects are collected asynchronously by the gc
2717
+ for i in range(5000):
2718
+ a = multiprocessing.heap.BufferWrapper(1)
2719
+ b = multiprocessing.heap.BufferWrapper(1)
2720
+ # circular references
2721
+ a.buddy = b
2722
+ b.buddy = a
2723
+
2724
+ #
2725
+ #
2726
+ #
2727
+
2728
+ class _Foo(Structure):
2729
+ _fields_ = [
2730
+ ('x', c_int),
2731
+ ('y', c_double)
2732
+ ]
2733
+
2734
+ class _TestSharedCTypes(BaseTestCase):
2735
+
2736
+ ALLOWED_TYPES = ('processes',)
2737
+
2738
+ def setUp(self):
2739
+ if not HAS_SHAREDCTYPES:
2740
+ self.skipTest("requires multiprocessing.sharedctypes")
2741
+
2742
+ @classmethod
2743
+ def _double(cls, x, y, foo, arr, string):
2744
+ x.value *= 2
2745
+ y.value *= 2
2746
+ foo.x *= 2
2747
+ foo.y *= 2
2748
+ string.value *= 2
2749
+ for i in range(len(arr)):
2750
+ arr[i] *= 2
2751
+
2752
+ def test_sharedctypes(self, lock=False):
2753
+ x = Value('i', 7, lock=lock)
2754
+ y = Value(c_double, 1.0/3.0, lock=lock)
2755
+ foo = Value(_Foo, 3, 2, lock=lock)
2756
+ arr = self.Array('d', list(range(10)), lock=lock)
2757
+ string = self.Array('c', 20, lock=lock)
2758
+ string.value = latin('hello')
2759
+
2760
+ p = self.Process(target=self._double, args=(x, y, foo, arr, string))
2761
+ p.daemon = True
2762
+ p.start()
2763
+ p.join()
2764
+
2765
+ self.assertEqual(x.value, 14)
2766
+ self.assertAlmostEqual(y.value, 2.0/3.0)
2767
+ self.assertEqual(foo.x, 6)
2768
+ self.assertAlmostEqual(foo.y, 4.0)
2769
+ for i in range(10):
2770
+ self.assertAlmostEqual(arr[i], i*2)
2771
+ self.assertEqual(string.value, latin('hellohello'))
2772
+
2773
+ def test_synchronize(self):
2774
+ self.test_sharedctypes(lock=True)
2775
+
2776
+ def test_copy(self):
2777
+ foo = _Foo(2, 5.0)
2778
+ bar = copy(foo)
2779
+ foo.x = 0
2780
+ foo.y = 0
2781
+ self.assertEqual(bar.x, 2)
2782
+ self.assertAlmostEqual(bar.y, 5.0)
2783
+
2784
+ #
2785
+ #
2786
+ #
2787
+
2788
+ class _TestFinalize(BaseTestCase):
2789
+
2790
+ ALLOWED_TYPES = ('processes',)
2791
+
2792
+ @classmethod
2793
+ def _test_finalize(cls, conn):
2794
+ class Foo(object):
2795
+ pass
2796
+
2797
+ a = Foo()
2798
+ util.Finalize(a, conn.send, args=('a',))
2799
+ del a # triggers callback for a
2800
+
2801
+ b = Foo()
2802
+ close_b = util.Finalize(b, conn.send, args=('b',))
2803
+ close_b() # triggers callback for b
2804
+ close_b() # does nothing because callback has already been called
2805
+ del b # does nothing because callback has already been called
2806
+
2807
+ c = Foo()
2808
+ util.Finalize(c, conn.send, args=('c',))
2809
+
2810
+ d10 = Foo()
2811
+ util.Finalize(d10, conn.send, args=('d10',), exitpriority=1)
2812
+
2813
+ d01 = Foo()
2814
+ util.Finalize(d01, conn.send, args=('d01',), exitpriority=0)
2815
+ d02 = Foo()
2816
+ util.Finalize(d02, conn.send, args=('d02',), exitpriority=0)
2817
+ d03 = Foo()
2818
+ util.Finalize(d03, conn.send, args=('d03',), exitpriority=0)
2819
+
2820
+ util.Finalize(None, conn.send, args=('e',), exitpriority=-10)
2821
+
2822
+ util.Finalize(None, conn.send, args=('STOP',), exitpriority=-100)
2823
+
2824
+ # call multiprocessing's cleanup function then exit process without
2825
+ # garbage collecting locals
2826
+ util._exit_function()
2827
+ conn.close()
2828
+ os._exit(0)
2829
+
2830
+ def test_finalize(self):
2831
+ conn, child_conn = self.Pipe()
2832
+
2833
+ p = self.Process(target=self._test_finalize, args=(child_conn,))
2834
+ p.daemon = True
2835
+ p.start()
2836
+ p.join()
2837
+
2838
+ result = [obj for obj in iter(conn.recv, 'STOP')]
2839
+ self.assertEqual(result, ['a', 'b', 'd10', 'd03', 'd02', 'd01', 'e'])
2840
+
2841
+ #
2842
+ # Test that from ... import * works for each module
2843
+ #
2844
+
2845
+ class _TestImportStar(unittest.TestCase):
2846
+
2847
+ def get_module_names(self):
2848
+ import glob
2849
+ folder = os.path.dirname(multiprocessing.__file__)
2850
+ pattern = os.path.join(folder, '*.py')
2851
+ files = glob.glob(pattern)
2852
+ modules = [os.path.splitext(os.path.split(f)[1])[0] for f in files]
2853
+ modules = ['multiprocessing.' + m for m in modules]
2854
+ modules.remove('multiprocessing.__init__')
2855
+ modules.append('multiprocessing')
2856
+ return modules
2857
+
2858
+ def test_import(self):
2859
+ modules = self.get_module_names()
2860
+ if sys.platform == 'win32':
2861
+ modules.remove('multiprocessing.popen_fork')
2862
+ modules.remove('multiprocessing.popen_forkserver')
2863
+ modules.remove('multiprocessing.popen_spawn_posix')
2864
+ else:
2865
+ modules.remove('multiprocessing.popen_spawn_win32')
2866
+ if not HAS_REDUCTION:
2867
+ modules.remove('multiprocessing.popen_forkserver')
2868
+
2869
+ if c_int is None:
2870
+ # This module requires _ctypes
2871
+ modules.remove('multiprocessing.sharedctypes')
2872
+
2873
+ for name in modules:
2874
+ __import__(name)
2875
+ mod = sys.modules[name]
2876
+ self.assertTrue(hasattr(mod, '__all__'), name)
2877
+
2878
+ for attr in mod.__all__:
2879
+ self.assertTrue(
2880
+ hasattr(mod, attr),
2881
+ '%r does not have attribute %r' % (mod, attr)
2882
+ )
2883
+
2884
+ #
2885
+ # Quick test that logging works -- does not test logging output
2886
+ #
2887
+
2888
+ class _TestLogging(BaseTestCase):
2889
+
2890
+ ALLOWED_TYPES = ('processes',)
2891
+
2892
+ def test_enable_logging(self):
2893
+ logger = multiprocessing.get_logger()
2894
+ logger.setLevel(util.SUBWARNING)
2895
+ self.assertTrue(logger is not None)
2896
+ logger.debug('this will not be printed')
2897
+ logger.info('nor will this')
2898
+ logger.setLevel(LOG_LEVEL)
2899
+
2900
+ @classmethod
2901
+ def _test_level(cls, conn):
2902
+ logger = multiprocessing.get_logger()
2903
+ conn.send(logger.getEffectiveLevel())
2904
+
2905
+ def test_level(self):
2906
+ LEVEL1 = 32
2907
+ LEVEL2 = 37
2908
+
2909
+ logger = multiprocessing.get_logger()
2910
+ root_logger = logging.getLogger()
2911
+ root_level = root_logger.level
2912
+
2913
+ reader, writer = multiprocessing.Pipe(duplex=False)
2914
+
2915
+ logger.setLevel(LEVEL1)
2916
+ p = self.Process(target=self._test_level, args=(writer,))
2917
+ p.daemon = True
2918
+ p.start()
2919
+ self.assertEqual(LEVEL1, reader.recv())
2920
+
2921
+ logger.setLevel(logging.NOTSET)
2922
+ root_logger.setLevel(LEVEL2)
2923
+ p = self.Process(target=self._test_level, args=(writer,))
2924
+ p.daemon = True
2925
+ p.start()
2926
+ self.assertEqual(LEVEL2, reader.recv())
2927
+
2928
+ root_logger.setLevel(root_level)
2929
+ logger.setLevel(level=LOG_LEVEL)
2930
+
2931
+
2932
+ # class _TestLoggingProcessName(BaseTestCase):
2933
+ #
2934
+ # def handle(self, record):
2935
+ # assert record.processName == multiprocessing.current_process().name
2936
+ # self.__handled = True
2937
+ #
2938
+ # def test_logging(self):
2939
+ # handler = logging.Handler()
2940
+ # handler.handle = self.handle
2941
+ # self.__handled = False
2942
+ # # Bypass getLogger() and side-effects
2943
+ # logger = logging.getLoggerClass()(
2944
+ # 'multiprocessing.test.TestLoggingProcessName')
2945
+ # logger.addHandler(handler)
2946
+ # logger.propagate = False
2947
+ #
2948
+ # logger.warn('foo')
2949
+ # assert self.__handled
2950
+
2951
+ #
2952
+ # Check that Process.join() retries if os.waitpid() fails with EINTR
2953
+ #
2954
+
2955
+ class _TestPollEintr(BaseTestCase):
2956
+
2957
+ ALLOWED_TYPES = ('processes',)
2958
+
2959
+ @classmethod
2960
+ def _killer(cls, pid):
2961
+ time.sleep(0.1)
2962
+ os.kill(pid, signal.SIGUSR1)
2963
+
2964
+ @unittest.skipUnless(hasattr(signal, 'SIGUSR1'), 'requires SIGUSR1')
2965
+ def test_poll_eintr(self):
2966
+ got_signal = [False]
2967
+ def record(*args):
2968
+ got_signal[0] = True
2969
+ pid = os.getpid()
2970
+ oldhandler = signal.signal(signal.SIGUSR1, record)
2971
+ try:
2972
+ killer = self.Process(target=self._killer, args=(pid,))
2973
+ killer.start()
2974
+ try:
2975
+ p = self.Process(target=time.sleep, args=(2,))
2976
+ p.start()
2977
+ p.join()
2978
+ finally:
2979
+ killer.join()
2980
+ self.assertTrue(got_signal[0])
2981
+ self.assertEqual(p.exitcode, 0)
2982
+ finally:
2983
+ signal.signal(signal.SIGUSR1, oldhandler)
2984
+
2985
+ #
2986
+ # Test to verify handle verification, see issue 3321
2987
+ #
2988
+
2989
+ class TestInvalidHandle(unittest.TestCase):
2990
+
2991
+ @unittest.skipIf(WIN32, "skipped on Windows")
2992
+ def test_invalid_handles(self):
2993
+ conn = multiprocessing.connection.Connection(44977608)
2994
+ # check that poll() doesn't crash
2995
+ try:
2996
+ conn.poll()
2997
+ except (ValueError, OSError):
2998
+ pass
2999
+ finally:
3000
+ # Hack private attribute _handle to avoid printing an error
3001
+ # in conn.__del__
3002
+ conn._handle = None
3003
+ self.assertRaises((ValueError, OSError),
3004
+ multiprocessing.connection.Connection, -1)
3005
+
3006
+
3007
+
3008
+ class OtherTest(unittest.TestCase):
3009
+ # TODO: add more tests for deliver/answer challenge.
3010
+ def test_deliver_challenge_auth_failure(self):
3011
+ class _FakeConnection(object):
3012
+ def recv_bytes(self, size):
3013
+ return b'something bogus'
3014
+ def send_bytes(self, data):
3015
+ pass
3016
+ self.assertRaises(multiprocessing.AuthenticationError,
3017
+ multiprocessing.connection.deliver_challenge,
3018
+ _FakeConnection(), b'abc')
3019
+
3020
+ def test_answer_challenge_auth_failure(self):
3021
+ class _FakeConnection(object):
3022
+ def __init__(self):
3023
+ self.count = 0
3024
+ def recv_bytes(self, size):
3025
+ self.count += 1
3026
+ if self.count == 1:
3027
+ return multiprocessing.connection.CHALLENGE
3028
+ elif self.count == 2:
3029
+ return b'something bogus'
3030
+ return b''
3031
+ def send_bytes(self, data):
3032
+ pass
3033
+ self.assertRaises(multiprocessing.AuthenticationError,
3034
+ multiprocessing.connection.answer_challenge,
3035
+ _FakeConnection(), b'abc')
3036
+
3037
+ #
3038
+ # Test Manager.start()/Pool.__init__() initializer feature - see issue 5585
3039
+ #
3040
+
3041
+ def initializer(ns):
3042
+ ns.test += 1
3043
+
3044
+ class TestInitializers(unittest.TestCase):
3045
+ def setUp(self):
3046
+ self.mgr = multiprocessing.Manager()
3047
+ self.ns = self.mgr.Namespace()
3048
+ self.ns.test = 0
3049
+
3050
+ def tearDown(self):
3051
+ self.mgr.shutdown()
3052
+ self.mgr.join()
3053
+
3054
+ def test_manager_initializer(self):
3055
+ m = multiprocessing.managers.SyncManager()
3056
+ self.assertRaises(TypeError, m.start, 1)
3057
+ m.start(initializer, (self.ns,))
3058
+ self.assertEqual(self.ns.test, 1)
3059
+ m.shutdown()
3060
+ m.join()
3061
+
3062
+ def test_pool_initializer(self):
3063
+ self.assertRaises(TypeError, multiprocessing.Pool, initializer=1)
3064
+ p = multiprocessing.Pool(1, initializer, (self.ns,))
3065
+ p.close()
3066
+ p.join()
3067
+ self.assertEqual(self.ns.test, 1)
3068
+
3069
+ #
3070
+ # Issue 5155, 5313, 5331: Test process in processes
3071
+ # Verifies os.close(sys.stdin.fileno) vs. sys.stdin.close() behavior
3072
+ #
3073
+
3074
+ def _this_sub_process(q):
3075
+ try:
3076
+ item = q.get(block=False)
3077
+ except pyqueue.Empty:
3078
+ pass
3079
+
3080
+ def _test_process(q):
3081
+ queue = multiprocessing.Queue()
3082
+ subProc = multiprocessing.Process(target=_this_sub_process, args=(queue,))
3083
+ subProc.daemon = True
3084
+ subProc.start()
3085
+ subProc.join()
3086
+
3087
+ def _afunc(x):
3088
+ return x*x
3089
+
3090
+ def pool_in_process():
3091
+ pool = multiprocessing.Pool(processes=4)
3092
+ x = pool.map(_afunc, [1, 2, 3, 4, 5, 6, 7])
3093
+ pool.close()
3094
+ pool.join()
3095
+
3096
+ class _file_like(object):
3097
+ def __init__(self, delegate):
3098
+ self._delegate = delegate
3099
+ self._pid = None
3100
+
3101
+ @property
3102
+ def cache(self):
3103
+ pid = os.getpid()
3104
+ # There are no race conditions since fork keeps only the running thread
3105
+ if pid != self._pid:
3106
+ self._pid = pid
3107
+ self._cache = []
3108
+ return self._cache
3109
+
3110
+ def write(self, data):
3111
+ self.cache.append(data)
3112
+
3113
+ def flush(self):
3114
+ self._delegate.write(''.join(self.cache))
3115
+ self._cache = []
3116
+
3117
+ class TestStdinBadfiledescriptor(unittest.TestCase):
3118
+
3119
+ def test_queue_in_process(self):
3120
+ queue = multiprocessing.Queue()
3121
+ proc = multiprocessing.Process(target=_test_process, args=(queue,))
3122
+ proc.start()
3123
+ proc.join()
3124
+
3125
+ def test_pool_in_process(self):
3126
+ p = multiprocessing.Process(target=pool_in_process)
3127
+ p.start()
3128
+ p.join()
3129
+
3130
+ def test_flushing(self):
3131
+ sio = io.StringIO()
3132
+ flike = _file_like(sio)
3133
+ flike.write('foo')
3134
+ proc = multiprocessing.Process(target=lambda: flike.flush())
3135
+ flike.flush()
3136
+ assert sio.getvalue() == 'foo'
3137
+
3138
+
3139
+ class TestWait(unittest.TestCase):
3140
+
3141
+ @classmethod
3142
+ def _child_test_wait(cls, w, slow):
3143
+ for i in range(10):
3144
+ if slow:
3145
+ time.sleep(random.random()*0.1)
3146
+ w.send((i, os.getpid()))
3147
+ w.close()
3148
+
3149
+ def test_wait(self, slow=False):
3150
+ from multiprocessing.connection import wait
3151
+ readers = []
3152
+ procs = []
3153
+ messages = []
3154
+
3155
+ for i in range(4):
3156
+ r, w = multiprocessing.Pipe(duplex=False)
3157
+ p = multiprocessing.Process(target=self._child_test_wait, args=(w, slow))
3158
+ p.daemon = True
3159
+ p.start()
3160
+ w.close()
3161
+ readers.append(r)
3162
+ procs.append(p)
3163
+ self.addCleanup(p.join)
3164
+
3165
+ while readers:
3166
+ for r in wait(readers):
3167
+ try:
3168
+ msg = r.recv()
3169
+ except EOFError:
3170
+ readers.remove(r)
3171
+ r.close()
3172
+ else:
3173
+ messages.append(msg)
3174
+
3175
+ messages.sort()
3176
+ expected = sorted((i, p.pid) for i in range(10) for p in procs)
3177
+ self.assertEqual(messages, expected)
3178
+
3179
+ @classmethod
3180
+ def _child_test_wait_socket(cls, address, slow):
3181
+ s = socket.socket()
3182
+ s.connect(address)
3183
+ for i in range(10):
3184
+ if slow:
3185
+ time.sleep(random.random()*0.1)
3186
+ s.sendall(('%s\n' % i).encode('ascii'))
3187
+ s.close()
3188
+
3189
+ def test_wait_socket(self, slow=False):
3190
+ from multiprocessing.connection import wait
3191
+ l = socket.socket()
3192
+ l.bind((test.support.HOST, 0))
3193
+ l.listen(4)
3194
+ addr = l.getsockname()
3195
+ readers = []
3196
+ procs = []
3197
+ dic = {}
3198
+
3199
+ for i in range(4):
3200
+ p = multiprocessing.Process(target=self._child_test_wait_socket,
3201
+ args=(addr, slow))
3202
+ p.daemon = True
3203
+ p.start()
3204
+ procs.append(p)
3205
+ self.addCleanup(p.join)
3206
+
3207
+ for i in range(4):
3208
+ r, _ = l.accept()
3209
+ readers.append(r)
3210
+ dic[r] = []
3211
+ l.close()
3212
+
3213
+ while readers:
3214
+ for r in wait(readers):
3215
+ msg = r.recv(32)
3216
+ if not msg:
3217
+ readers.remove(r)
3218
+ r.close()
3219
+ else:
3220
+ dic[r].append(msg)
3221
+
3222
+ expected = ''.join('%s\n' % i for i in range(10)).encode('ascii')
3223
+ for v in dic.values():
3224
+ self.assertEqual(b''.join(v), expected)
3225
+
3226
+ def test_wait_slow(self):
3227
+ self.test_wait(True)
3228
+
3229
+ def test_wait_socket_slow(self):
3230
+ self.test_wait_socket(True)
3231
+
3232
+ def test_wait_timeout(self):
3233
+ from multiprocessing.connection import wait
3234
+
3235
+ expected = 5
3236
+ a, b = multiprocessing.Pipe()
3237
+
3238
+ start = time.time()
3239
+ res = wait([a, b], expected)
3240
+ delta = time.time() - start
3241
+
3242
+ self.assertEqual(res, [])
3243
+ self.assertLess(delta, expected * 2)
3244
+ self.assertGreater(delta, expected * 0.5)
3245
+
3246
+ b.send(None)
3247
+
3248
+ start = time.time()
3249
+ res = wait([a, b], 20)
3250
+ delta = time.time() - start
3251
+
3252
+ self.assertEqual(res, [a])
3253
+ self.assertLess(delta, 0.4)
3254
+
3255
+ @classmethod
3256
+ def signal_and_sleep(cls, sem, period):
3257
+ sem.release()
3258
+ time.sleep(period)
3259
+
3260
+ def test_wait_integer(self):
3261
+ from multiprocessing.connection import wait
3262
+
3263
+ expected = 3
3264
+ sorted_ = lambda l: sorted(l, key=lambda x: id(x))
3265
+ sem = multiprocessing.Semaphore(0)
3266
+ a, b = multiprocessing.Pipe()
3267
+ p = multiprocessing.Process(target=self.signal_and_sleep,
3268
+ args=(sem, expected))
3269
+
3270
+ p.start()
3271
+ self.assertIsInstance(p.sentinel, int)
3272
+ self.assertTrue(sem.acquire(timeout=20))
3273
+
3274
+ start = time.time()
3275
+ res = wait([a, p.sentinel, b], expected + 20)
3276
+ delta = time.time() - start
3277
+
3278
+ self.assertEqual(res, [p.sentinel])
3279
+ self.assertLess(delta, expected + 2)
3280
+ self.assertGreater(delta, expected - 2)
3281
+
3282
+ a.send(None)
3283
+
3284
+ start = time.time()
3285
+ res = wait([a, p.sentinel, b], 20)
3286
+ delta = time.time() - start
3287
+
3288
+ self.assertEqual(sorted_(res), sorted_([p.sentinel, b]))
3289
+ self.assertLess(delta, 0.4)
3290
+
3291
+ b.send(None)
3292
+
3293
+ start = time.time()
3294
+ res = wait([a, p.sentinel, b], 20)
3295
+ delta = time.time() - start
3296
+
3297
+ self.assertEqual(sorted_(res), sorted_([a, p.sentinel, b]))
3298
+ self.assertLess(delta, 0.4)
3299
+
3300
+ p.terminate()
3301
+ p.join()
3302
+
3303
+ def test_neg_timeout(self):
3304
+ from multiprocessing.connection import wait
3305
+ a, b = multiprocessing.Pipe()
3306
+ t = time.time()
3307
+ res = wait([a], timeout=-1)
3308
+ t = time.time() - t
3309
+ self.assertEqual(res, [])
3310
+ self.assertLess(t, 1)
3311
+ a.close()
3312
+ b.close()
3313
+
3314
+ #
3315
+ # Issue 14151: Test invalid family on invalid environment
3316
+ #
3317
+
3318
+ class TestInvalidFamily(unittest.TestCase):
3319
+
3320
+ @unittest.skipIf(WIN32, "skipped on Windows")
3321
+ def test_invalid_family(self):
3322
+ with self.assertRaises(ValueError):
3323
+ multiprocessing.connection.Listener(r'\\.\test')
3324
+
3325
+ @unittest.skipUnless(WIN32, "skipped on non-Windows platforms")
3326
+ def test_invalid_family_win32(self):
3327
+ with self.assertRaises(ValueError):
3328
+ multiprocessing.connection.Listener('/var/test.pipe')
3329
+
3330
+ #
3331
+ # Issue 12098: check sys.flags of child matches that for parent
3332
+ #
3333
+
3334
+ class TestFlags(unittest.TestCase):
3335
+ @classmethod
3336
+ def run_in_grandchild(cls, conn):
3337
+ conn.send(tuple(sys.flags))
3338
+
3339
+ @classmethod
3340
+ def run_in_child(cls):
3341
+ import json
3342
+ r, w = multiprocessing.Pipe(duplex=False)
3343
+ p = multiprocessing.Process(target=cls.run_in_grandchild, args=(w,))
3344
+ p.start()
3345
+ grandchild_flags = r.recv()
3346
+ p.join()
3347
+ r.close()
3348
+ w.close()
3349
+ flags = (tuple(sys.flags), grandchild_flags)
3350
+ print(json.dumps(flags))
3351
+
3352
+ def test_flags(self):
3353
+ import json, subprocess
3354
+ # start child process using unusual flags
3355
+ prog = ('from test._test_multiprocessing import TestFlags; ' +
3356
+ 'TestFlags.run_in_child()')
3357
+ data = subprocess.check_output(
3358
+ [sys.executable, '-E', '-S', '-O', '-c', prog])
3359
+ child_flags, grandchild_flags = json.loads(data.decode('ascii'))
3360
+ self.assertEqual(child_flags, grandchild_flags)
3361
+
3362
+ #
3363
+ # Test interaction with socket timeouts - see Issue #6056
3364
+ #
3365
+
3366
+ class TestTimeouts(unittest.TestCase):
3367
+ @classmethod
3368
+ def _test_timeout(cls, child, address):
3369
+ time.sleep(1)
3370
+ child.send(123)
3371
+ child.close()
3372
+ conn = multiprocessing.connection.Client(address)
3373
+ conn.send(456)
3374
+ conn.close()
3375
+
3376
+ def test_timeout(self):
3377
+ old_timeout = socket.getdefaulttimeout()
3378
+ try:
3379
+ socket.setdefaulttimeout(0.1)
3380
+ parent, child = multiprocessing.Pipe(duplex=True)
3381
+ l = multiprocessing.connection.Listener(family='AF_INET')
3382
+ p = multiprocessing.Process(target=self._test_timeout,
3383
+ args=(child, l.address))
3384
+ p.start()
3385
+ child.close()
3386
+ self.assertEqual(parent.recv(), 123)
3387
+ parent.close()
3388
+ conn = l.accept()
3389
+ self.assertEqual(conn.recv(), 456)
3390
+ conn.close()
3391
+ l.close()
3392
+ p.join(10)
3393
+ finally:
3394
+ socket.setdefaulttimeout(old_timeout)
3395
+
3396
+ #
3397
+ # Test what happens with no "if __name__ == '__main__'"
3398
+ #
3399
+
3400
+ class TestNoForkBomb(unittest.TestCase):
3401
+ def test_noforkbomb(self):
3402
+ sm = multiprocessing.get_start_method()
3403
+ name = os.path.join(os.path.dirname(__file__), 'mp_fork_bomb.py')
3404
+ if sm != 'fork':
3405
+ rc, out, err = test.script_helper.assert_python_failure(name, sm)
3406
+ self.assertEqual('', out.decode('ascii'))
3407
+ self.assertIn('RuntimeError', err.decode('ascii'))
3408
+ else:
3409
+ rc, out, err = test.script_helper.assert_python_ok(name, sm)
3410
+ self.assertEqual('123', out.decode('ascii').rstrip())
3411
+ self.assertEqual('', err.decode('ascii'))
3412
+
3413
+ #
3414
+ # Issue #17555: ForkAwareThreadLock
3415
+ #
3416
+
3417
+ class TestForkAwareThreadLock(unittest.TestCase):
3418
+ # We recurisvely start processes. Issue #17555 meant that the
3419
+ # after fork registry would get duplicate entries for the same
3420
+ # lock. The size of the registry at generation n was ~2**n.
3421
+
3422
+ @classmethod
3423
+ def child(cls, n, conn):
3424
+ if n > 1:
3425
+ p = multiprocessing.Process(target=cls.child, args=(n-1, conn))
3426
+ p.start()
3427
+ conn.close()
3428
+ p.join(timeout=5)
3429
+ else:
3430
+ conn.send(len(util._afterfork_registry))
3431
+ conn.close()
3432
+
3433
+ def test_lock(self):
3434
+ r, w = multiprocessing.Pipe(False)
3435
+ l = util.ForkAwareThreadLock()
3436
+ old_size = len(util._afterfork_registry)
3437
+ p = multiprocessing.Process(target=self.child, args=(5, w))
3438
+ p.start()
3439
+ w.close()
3440
+ new_size = r.recv()
3441
+ p.join(timeout=5)
3442
+ self.assertLessEqual(new_size, old_size)
3443
+
3444
+ #
3445
+ # Check that non-forked child processes do not inherit unneeded fds/handles
3446
+ #
3447
+
3448
+ class TestCloseFds(unittest.TestCase):
3449
+
3450
+ def get_high_socket_fd(self):
3451
+ if WIN32:
3452
+ # The child process will not have any socket handles, so
3453
+ # calling socket.fromfd() should produce WSAENOTSOCK even
3454
+ # if there is a handle of the same number.
3455
+ return socket.socket().detach()
3456
+ else:
3457
+ # We want to produce a socket with an fd high enough that a
3458
+ # freshly created child process will not have any fds as high.
3459
+ fd = socket.socket().detach()
3460
+ to_close = []
3461
+ while fd < 50:
3462
+ to_close.append(fd)
3463
+ fd = os.dup(fd)
3464
+ for x in to_close:
3465
+ os.close(x)
3466
+ return fd
3467
+
3468
+ def close(self, fd):
3469
+ if WIN32:
3470
+ socket.socket(fileno=fd).close()
3471
+ else:
3472
+ os.close(fd)
3473
+
3474
+ @classmethod
3475
+ def _test_closefds(cls, conn, fd):
3476
+ try:
3477
+ s = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
3478
+ except Exception as e:
3479
+ conn.send(e)
3480
+ else:
3481
+ s.close()
3482
+ conn.send(None)
3483
+
3484
+ def test_closefd(self):
3485
+ if not HAS_REDUCTION:
3486
+ raise unittest.SkipTest('requires fd pickling')
3487
+
3488
+ reader, writer = multiprocessing.Pipe()
3489
+ fd = self.get_high_socket_fd()
3490
+ try:
3491
+ p = multiprocessing.Process(target=self._test_closefds,
3492
+ args=(writer, fd))
3493
+ p.start()
3494
+ writer.close()
3495
+ e = reader.recv()
3496
+ p.join(timeout=5)
3497
+ finally:
3498
+ self.close(fd)
3499
+ writer.close()
3500
+ reader.close()
3501
+
3502
+ if multiprocessing.get_start_method() == 'fork':
3503
+ self.assertIs(e, None)
3504
+ else:
3505
+ WSAENOTSOCK = 10038
3506
+ self.assertIsInstance(e, OSError)
3507
+ self.assertTrue(e.errno == errno.EBADF or
3508
+ e.winerror == WSAENOTSOCK, e)
3509
+
3510
+ #
3511
+ # Issue #17097: EINTR should be ignored by recv(), send(), accept() etc
3512
+ #
3513
+
3514
+ class TestIgnoreEINTR(unittest.TestCase):
3515
+
3516
+ @classmethod
3517
+ def _test_ignore(cls, conn):
3518
+ def handler(signum, frame):
3519
+ pass
3520
+ signal.signal(signal.SIGUSR1, handler)
3521
+ conn.send('ready')
3522
+ x = conn.recv()
3523
+ conn.send(x)
3524
+ conn.send_bytes(b'x'*(1024*1024)) # sending 1 MB should block
3525
+
3526
+ @unittest.skipUnless(hasattr(signal, 'SIGUSR1'), 'requires SIGUSR1')
3527
+ def test_ignore(self):
3528
+ conn, child_conn = multiprocessing.Pipe()
3529
+ try:
3530
+ p = multiprocessing.Process(target=self._test_ignore,
3531
+ args=(child_conn,))
3532
+ p.daemon = True
3533
+ p.start()
3534
+ child_conn.close()
3535
+ self.assertEqual(conn.recv(), 'ready')
3536
+ time.sleep(0.1)
3537
+ os.kill(p.pid, signal.SIGUSR1)
3538
+ time.sleep(0.1)
3539
+ conn.send(1234)
3540
+ self.assertEqual(conn.recv(), 1234)
3541
+ time.sleep(0.1)
3542
+ os.kill(p.pid, signal.SIGUSR1)
3543
+ self.assertEqual(conn.recv_bytes(), b'x'*(1024*1024))
3544
+ time.sleep(0.1)
3545
+ p.join()
3546
+ finally:
3547
+ conn.close()
3548
+
3549
+ @classmethod
3550
+ def _test_ignore_listener(cls, conn):
3551
+ def handler(signum, frame):
3552
+ pass
3553
+ signal.signal(signal.SIGUSR1, handler)
3554
+ with multiprocessing.connection.Listener() as l:
3555
+ conn.send(l.address)
3556
+ a = l.accept()
3557
+ a.send('welcome')
3558
+
3559
+ @unittest.skipUnless(hasattr(signal, 'SIGUSR1'), 'requires SIGUSR1')
3560
+ def test_ignore_listener(self):
3561
+ conn, child_conn = multiprocessing.Pipe()
3562
+ try:
3563
+ p = multiprocessing.Process(target=self._test_ignore_listener,
3564
+ args=(child_conn,))
3565
+ p.daemon = True
3566
+ p.start()
3567
+ child_conn.close()
3568
+ address = conn.recv()
3569
+ time.sleep(0.1)
3570
+ os.kill(p.pid, signal.SIGUSR1)
3571
+ time.sleep(0.1)
3572
+ client = multiprocessing.connection.Client(address)
3573
+ self.assertEqual(client.recv(), 'welcome')
3574
+ p.join()
3575
+ finally:
3576
+ conn.close()
3577
+
3578
+ class TestStartMethod(unittest.TestCase):
3579
+ @classmethod
3580
+ def _check_context(cls, conn):
3581
+ conn.send(multiprocessing.get_start_method())
3582
+
3583
+ def check_context(self, ctx):
3584
+ r, w = ctx.Pipe(duplex=False)
3585
+ p = ctx.Process(target=self._check_context, args=(w,))
3586
+ p.start()
3587
+ w.close()
3588
+ child_method = r.recv()
3589
+ r.close()
3590
+ p.join()
3591
+ self.assertEqual(child_method, ctx.get_start_method())
3592
+
3593
+ def test_context(self):
3594
+ for method in ('fork', 'spawn', 'forkserver'):
3595
+ try:
3596
+ ctx = multiprocessing.get_context(method)
3597
+ except ValueError:
3598
+ continue
3599
+ self.assertEqual(ctx.get_start_method(), method)
3600
+ self.assertIs(ctx.get_context(), ctx)
3601
+ self.assertRaises(ValueError, ctx.set_start_method, 'spawn')
3602
+ self.assertRaises(ValueError, ctx.set_start_method, None)
3603
+ self.check_context(ctx)
3604
+
3605
+ def test_set_get(self):
3606
+ multiprocessing.set_forkserver_preload(PRELOAD)
3607
+ count = 0
3608
+ old_method = multiprocessing.get_start_method()
3609
+ try:
3610
+ for method in ('fork', 'spawn', 'forkserver'):
3611
+ try:
3612
+ multiprocessing.set_start_method(method, force=True)
3613
+ except ValueError:
3614
+ continue
3615
+ self.assertEqual(multiprocessing.get_start_method(), method)
3616
+ ctx = multiprocessing.get_context()
3617
+ self.assertEqual(ctx.get_start_method(), method)
3618
+ self.assertTrue(type(ctx).__name__.lower().startswith(method))
3619
+ self.assertTrue(
3620
+ ctx.Process.__name__.lower().startswith(method))
3621
+ self.check_context(multiprocessing)
3622
+ count += 1
3623
+ finally:
3624
+ multiprocessing.set_start_method(old_method, force=True)
3625
+ self.assertGreaterEqual(count, 1)
3626
+
3627
+ def test_get_all(self):
3628
+ methods = multiprocessing.get_all_start_methods()
3629
+ if sys.platform == 'win32':
3630
+ self.assertEqual(methods, ['spawn'])
3631
+ else:
3632
+ self.assertTrue(methods == ['fork', 'spawn'] or
3633
+ methods == ['fork', 'spawn', 'forkserver'])
3634
+
3635
+ #
3636
+ # Check that killing process does not leak named semaphores
3637
+ #
3638
+
3639
+ @unittest.skipIf(sys.platform == "win32",
3640
+ "test semantics don't make sense on Windows")
3641
+ class TestSemaphoreTracker(unittest.TestCase):
3642
+ def test_semaphore_tracker(self):
3643
+ import subprocess
3644
+ cmd = '''if 1:
3645
+ import multiprocessing as mp, time, os
3646
+ mp.set_start_method("spawn")
3647
+ lock1 = mp.Lock()
3648
+ lock2 = mp.Lock()
3649
+ os.write(%d, lock1._semlock.name.encode("ascii") + b"\\n")
3650
+ os.write(%d, lock2._semlock.name.encode("ascii") + b"\\n")
3651
+ time.sleep(10)
3652
+ '''
3653
+ r, w = os.pipe()
3654
+ p = subprocess.Popen([sys.executable,
3655
+ '-c', cmd % (w, w)],
3656
+ pass_fds=[w],
3657
+ stderr=subprocess.PIPE)
3658
+ os.close(w)
3659
+ with open(r, 'rb', closefd=True) as f:
3660
+ name1 = f.readline().rstrip().decode('ascii')
3661
+ name2 = f.readline().rstrip().decode('ascii')
3662
+ _multiprocessing.sem_unlink(name1)
3663
+ p.terminate()
3664
+ p.wait()
3665
+ time.sleep(2.0)
3666
+ with self.assertRaises(OSError) as ctx:
3667
+ _multiprocessing.sem_unlink(name2)
3668
+ # docs say it should be ENOENT, but OSX seems to give EINVAL
3669
+ self.assertIn(ctx.exception.errno, (errno.ENOENT, errno.EINVAL))
3670
+ err = p.stderr.read().decode('utf-8')
3671
+ p.stderr.close()
3672
+ expected = 'semaphore_tracker: There appear to be 2 leaked semaphores'
3673
+ self.assertRegex(err, expected)
3674
+ self.assertRegex(err, 'semaphore_tracker: %r: \[Errno' % name1)
3675
+
3676
+ #
3677
+ # Mixins
3678
+ #
3679
+
3680
+ class ProcessesMixin(object):
3681
+ TYPE = 'processes'
3682
+ Process = multiprocessing.Process
3683
+ connection = multiprocessing.connection
3684
+ current_process = staticmethod(multiprocessing.current_process)
3685
+ active_children = staticmethod(multiprocessing.active_children)
3686
+ Pool = staticmethod(multiprocessing.Pool)
3687
+ Pipe = staticmethod(multiprocessing.Pipe)
3688
+ Queue = staticmethod(multiprocessing.Queue)
3689
+ JoinableQueue = staticmethod(multiprocessing.JoinableQueue)
3690
+ Lock = staticmethod(multiprocessing.Lock)
3691
+ RLock = staticmethod(multiprocessing.RLock)
3692
+ Semaphore = staticmethod(multiprocessing.Semaphore)
3693
+ BoundedSemaphore = staticmethod(multiprocessing.BoundedSemaphore)
3694
+ Condition = staticmethod(multiprocessing.Condition)
3695
+ Event = staticmethod(multiprocessing.Event)
3696
+ Barrier = staticmethod(multiprocessing.Barrier)
3697
+ Value = staticmethod(multiprocessing.Value)
3698
+ Array = staticmethod(multiprocessing.Array)
3699
+ RawValue = staticmethod(multiprocessing.RawValue)
3700
+ RawArray = staticmethod(multiprocessing.RawArray)
3701
+
3702
+
3703
+ class ManagerMixin(object):
3704
+ TYPE = 'manager'
3705
+ Process = multiprocessing.Process
3706
+ Queue = property(operator.attrgetter('manager.Queue'))
3707
+ JoinableQueue = property(operator.attrgetter('manager.JoinableQueue'))
3708
+ Lock = property(operator.attrgetter('manager.Lock'))
3709
+ RLock = property(operator.attrgetter('manager.RLock'))
3710
+ Semaphore = property(operator.attrgetter('manager.Semaphore'))
3711
+ BoundedSemaphore = property(operator.attrgetter('manager.BoundedSemaphore'))
3712
+ Condition = property(operator.attrgetter('manager.Condition'))
3713
+ Event = property(operator.attrgetter('manager.Event'))
3714
+ Barrier = property(operator.attrgetter('manager.Barrier'))
3715
+ Value = property(operator.attrgetter('manager.Value'))
3716
+ Array = property(operator.attrgetter('manager.Array'))
3717
+ list = property(operator.attrgetter('manager.list'))
3718
+ dict = property(operator.attrgetter('manager.dict'))
3719
+ Namespace = property(operator.attrgetter('manager.Namespace'))
3720
+
3721
+ @classmethod
3722
+ def Pool(cls, *args, **kwds):
3723
+ return cls.manager.Pool(*args, **kwds)
3724
+
3725
+ @classmethod
3726
+ def setUpClass(cls):
3727
+ cls.manager = multiprocessing.Manager()
3728
+
3729
+ @classmethod
3730
+ def tearDownClass(cls):
3731
+ # only the manager process should be returned by active_children()
3732
+ # but this can take a bit on slow machines, so wait a few seconds
3733
+ # if there are other children too (see #17395)
3734
+ t = 0.01
3735
+ while len(multiprocessing.active_children()) > 1 and t < 5:
3736
+ time.sleep(t)
3737
+ t *= 2
3738
+ gc.collect() # do garbage collection
3739
+ if cls.manager._number_of_objects() != 0:
3740
+ # This is not really an error since some tests do not
3741
+ # ensure that all processes which hold a reference to a
3742
+ # managed object have been joined.
3743
+ print('Shared objects which still exist at manager shutdown:')
3744
+ print(cls.manager._debug_info())
3745
+ cls.manager.shutdown()
3746
+ cls.manager.join()
3747
+ cls.manager = None
3748
+
3749
+
3750
+ class ThreadsMixin(object):
3751
+ TYPE = 'threads'
3752
+ Process = multiprocessing.dummy.Process
3753
+ connection = multiprocessing.dummy.connection
3754
+ current_process = staticmethod(multiprocessing.dummy.current_process)
3755
+ active_children = staticmethod(multiprocessing.dummy.active_children)
3756
+ Pool = staticmethod(multiprocessing.Pool)
3757
+ Pipe = staticmethod(multiprocessing.dummy.Pipe)
3758
+ Queue = staticmethod(multiprocessing.dummy.Queue)
3759
+ JoinableQueue = staticmethod(multiprocessing.dummy.JoinableQueue)
3760
+ Lock = staticmethod(multiprocessing.dummy.Lock)
3761
+ RLock = staticmethod(multiprocessing.dummy.RLock)
3762
+ Semaphore = staticmethod(multiprocessing.dummy.Semaphore)
3763
+ BoundedSemaphore = staticmethod(multiprocessing.dummy.BoundedSemaphore)
3764
+ Condition = staticmethod(multiprocessing.dummy.Condition)
3765
+ Event = staticmethod(multiprocessing.dummy.Event)
3766
+ Barrier = staticmethod(multiprocessing.dummy.Barrier)
3767
+ Value = staticmethod(multiprocessing.dummy.Value)
3768
+ Array = staticmethod(multiprocessing.dummy.Array)
3769
+
3770
+ #
3771
+ # Functions used to create test cases from the base ones in this module
3772
+ #
3773
+
3774
+ def install_tests_in_module_dict(remote_globs, start_method):
3775
+ __module__ = remote_globs['__name__']
3776
+ local_globs = globals()
3777
+ ALL_TYPES = {'processes', 'threads', 'manager'}
3778
+
3779
+ for name, base in local_globs.items():
3780
+ if not isinstance(base, type):
3781
+ continue
3782
+ if issubclass(base, BaseTestCase):
3783
+ if base is BaseTestCase:
3784
+ continue
3785
+ assert set(base.ALLOWED_TYPES) <= ALL_TYPES, base.ALLOWED_TYPES
3786
+ for type_ in base.ALLOWED_TYPES:
3787
+ newname = 'With' + type_.capitalize() + name[1:]
3788
+ Mixin = local_globs[type_.capitalize() + 'Mixin']
3789
+ class Temp(base, Mixin, unittest.TestCase):
3790
+ pass
3791
+ Temp.__name__ = Temp.__qualname__ = newname
3792
+ Temp.__module__ = __module__
3793
+ remote_globs[newname] = Temp
3794
+ elif issubclass(base, unittest.TestCase):
3795
+ class Temp(base, object):
3796
+ pass
3797
+ Temp.__name__ = Temp.__qualname__ = name
3798
+ Temp.__module__ = __module__
3799
+ remote_globs[name] = Temp
3800
+
3801
+ dangling = [None, None]
3802
+ old_start_method = [None]
3803
+
3804
+ def setUpModule():
3805
+ multiprocessing.set_forkserver_preload(PRELOAD)
3806
+ multiprocessing.process._cleanup()
3807
+ dangling[0] = multiprocessing.process._dangling.copy()
3808
+ dangling[1] = threading._dangling.copy()
3809
+ old_start_method[0] = multiprocessing.get_start_method(allow_none=True)
3810
+ try:
3811
+ multiprocessing.set_start_method(start_method, force=True)
3812
+ except ValueError:
3813
+ raise unittest.SkipTest(start_method +
3814
+ ' start method not supported')
3815
+
3816
+ if sys.platform.startswith("linux"):
3817
+ try:
3818
+ lock = multiprocessing.RLock()
3819
+ except OSError:
3820
+ raise unittest.SkipTest("OSError raises on RLock creation, "
3821
+ "see issue 3111!")
3822
+ check_enough_semaphores()
3823
+ util.get_temp_dir() # creates temp directory
3824
+ multiprocessing.get_logger().setLevel(LOG_LEVEL)
3825
+
3826
+ def tearDownModule():
3827
+ multiprocessing.set_start_method(old_start_method[0], force=True)
3828
+ # pause a bit so we don't get warning about dangling threads/processes
3829
+ time.sleep(0.5)
3830
+ multiprocessing.process._cleanup()
3831
+ gc.collect()
3832
+ tmp = set(multiprocessing.process._dangling) - set(dangling[0])
3833
+ if tmp:
3834
+ print('Dangling processes:', tmp, file=sys.stderr)
3835
+ del tmp
3836
+ tmp = set(threading._dangling) - set(dangling[1])
3837
+ if tmp:
3838
+ print('Dangling threads:', tmp, file=sys.stderr)
3839
+
3840
+ remote_globs['setUpModule'] = setUpModule
3841
+ remote_globs['tearDownModule'] = tearDownModule