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,3103 @@
1
+ import collections
2
+ import datetime
3
+ import functools
4
+ import importlib
5
+ import inspect
6
+ import io
7
+ import linecache
8
+ import os
9
+ from os.path import normcase
10
+ import _pickle
11
+ import re
12
+ import shutil
13
+ import sys
14
+ import types
15
+ import unicodedata
16
+ import unittest
17
+ import unittest.mock
18
+
19
+ try:
20
+ from concurrent.futures import ThreadPoolExecutor
21
+ except ImportError:
22
+ ThreadPoolExecutor = None
23
+
24
+ from test.support import run_unittest, TESTFN, DirsOnSysPath, cpython_only
25
+ from test.support import MISSING_C_DOCSTRINGS
26
+ from test.script_helper import assert_python_ok, assert_python_failure
27
+ from test import inspect_fodder as mod
28
+ from test import inspect_fodder2 as mod2
29
+
30
+
31
+ # Functions tested in this suite:
32
+ # ismodule, isclass, ismethod, isfunction, istraceback, isframe, iscode,
33
+ # isbuiltin, isroutine, isgenerator, isgeneratorfunction, getmembers,
34
+ # getdoc, getfile, getmodule, getsourcefile, getcomments, getsource,
35
+ # getclasstree, getargspec, getargvalues, formatargspec, formatargvalues,
36
+ # currentframe, stack, trace, isdatadescriptor
37
+
38
+ # NOTE: There are some additional tests relating to interaction with
39
+ # zipimport in the test_zipimport_support test module.
40
+
41
+ modfile = mod.__file__
42
+ if modfile.endswith(('c', 'o')):
43
+ modfile = modfile[:-1]
44
+
45
+ # Normalize file names: on Windows, the case of file names of compiled
46
+ # modules depends on the path used to start the python executable.
47
+ modfile = normcase(modfile)
48
+
49
+ def revise(filename, *args):
50
+ return (normcase(filename),) + args
51
+
52
+ import builtins
53
+
54
+ git = mod.StupidGit()
55
+
56
+ class IsTestBase(unittest.TestCase):
57
+ predicates = set([inspect.isbuiltin, inspect.isclass, inspect.iscode,
58
+ inspect.isframe, inspect.isfunction, inspect.ismethod,
59
+ inspect.ismodule, inspect.istraceback,
60
+ inspect.isgenerator, inspect.isgeneratorfunction])
61
+
62
+ def istest(self, predicate, exp):
63
+ obj = eval(exp)
64
+ self.assertTrue(predicate(obj), '%s(%s)' % (predicate.__name__, exp))
65
+
66
+ for other in self.predicates - set([predicate]):
67
+ if predicate == inspect.isgeneratorfunction and\
68
+ other == inspect.isfunction:
69
+ continue
70
+ self.assertFalse(other(obj), 'not %s(%s)' % (other.__name__, exp))
71
+
72
+ def generator_function_example(self):
73
+ for i in range(2):
74
+ yield i
75
+
76
+ class TestPredicates(IsTestBase):
77
+ def test_sixteen(self):
78
+ count = len([x for x in dir(inspect) if x.startswith('is')])
79
+ # This test is here for remember you to update Doc/library/inspect.rst
80
+ # which claims there are 16 such functions
81
+ expected = 16
82
+ err_msg = "There are %d (not %d) is* functions" % (count, expected)
83
+ self.assertEqual(count, expected, err_msg)
84
+
85
+
86
+ def test_excluding_predicates(self):
87
+ global tb
88
+ self.istest(inspect.isbuiltin, 'sys.exit')
89
+ self.istest(inspect.isbuiltin, '[].append')
90
+ self.istest(inspect.iscode, 'mod.spam.__code__')
91
+ try:
92
+ 1/0
93
+ except:
94
+ tb = sys.exc_info()[2]
95
+ self.istest(inspect.isframe, 'tb.tb_frame')
96
+ self.istest(inspect.istraceback, 'tb')
97
+ if hasattr(types, 'GetSetDescriptorType'):
98
+ self.istest(inspect.isgetsetdescriptor,
99
+ 'type(tb.tb_frame).f_locals')
100
+ else:
101
+ self.assertFalse(inspect.isgetsetdescriptor(type(tb.tb_frame).f_locals))
102
+ finally:
103
+ # Clear traceback and all the frames and local variables hanging to it.
104
+ tb = None
105
+ self.istest(inspect.isfunction, 'mod.spam')
106
+ self.istest(inspect.isfunction, 'mod.StupidGit.abuse')
107
+ self.istest(inspect.ismethod, 'git.argue')
108
+ self.istest(inspect.ismodule, 'mod')
109
+ self.istest(inspect.isdatadescriptor, 'collections.defaultdict.default_factory')
110
+ self.istest(inspect.isgenerator, '(x for x in range(2))')
111
+ self.istest(inspect.isgeneratorfunction, 'generator_function_example')
112
+ if hasattr(types, 'MemberDescriptorType'):
113
+ self.istest(inspect.ismemberdescriptor, 'datetime.timedelta.days')
114
+ else:
115
+ self.assertFalse(inspect.ismemberdescriptor(datetime.timedelta.days))
116
+
117
+ def test_isroutine(self):
118
+ self.assertTrue(inspect.isroutine(mod.spam))
119
+ self.assertTrue(inspect.isroutine([].count))
120
+
121
+ def test_isclass(self):
122
+ self.istest(inspect.isclass, 'mod.StupidGit')
123
+ self.assertTrue(inspect.isclass(list))
124
+
125
+ class CustomGetattr(object):
126
+ def __getattr__(self, attr):
127
+ return None
128
+ self.assertFalse(inspect.isclass(CustomGetattr()))
129
+
130
+ def test_get_slot_members(self):
131
+ class C(object):
132
+ __slots__ = ("a", "b")
133
+ x = C()
134
+ x.a = 42
135
+ members = dict(inspect.getmembers(x))
136
+ self.assertIn('a', members)
137
+ self.assertNotIn('b', members)
138
+
139
+ def test_isabstract(self):
140
+ from abc import ABCMeta, abstractmethod
141
+
142
+ class AbstractClassExample(metaclass=ABCMeta):
143
+
144
+ @abstractmethod
145
+ def foo(self):
146
+ pass
147
+
148
+ class ClassExample(AbstractClassExample):
149
+ def foo(self):
150
+ pass
151
+
152
+ a = ClassExample()
153
+
154
+ # Test general behaviour.
155
+ self.assertTrue(inspect.isabstract(AbstractClassExample))
156
+ self.assertFalse(inspect.isabstract(ClassExample))
157
+ self.assertFalse(inspect.isabstract(a))
158
+ self.assertFalse(inspect.isabstract(int))
159
+ self.assertFalse(inspect.isabstract(5))
160
+
161
+
162
+ class TestInterpreterStack(IsTestBase):
163
+ def __init__(self, *args, **kwargs):
164
+ unittest.TestCase.__init__(self, *args, **kwargs)
165
+
166
+ git.abuse(7, 8, 9)
167
+
168
+ def test_abuse_done(self):
169
+ self.istest(inspect.istraceback, 'git.ex[2]')
170
+ self.istest(inspect.isframe, 'mod.fr')
171
+
172
+ def test_stack(self):
173
+ self.assertTrue(len(mod.st) >= 5)
174
+ self.assertEqual(revise(*mod.st[0][1:]),
175
+ (modfile, 16, 'eggs', [' st = inspect.stack()\n'], 0))
176
+ self.assertEqual(revise(*mod.st[1][1:]),
177
+ (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
178
+ self.assertEqual(revise(*mod.st[2][1:]),
179
+ (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
180
+ self.assertEqual(revise(*mod.st[3][1:]),
181
+ (modfile, 39, 'abuse', [' self.argue(a, b, c)\n'], 0))
182
+
183
+ def test_trace(self):
184
+ self.assertEqual(len(git.tr), 3)
185
+ self.assertEqual(revise(*git.tr[0][1:]),
186
+ (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
187
+ self.assertEqual(revise(*git.tr[1][1:]),
188
+ (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
189
+ self.assertEqual(revise(*git.tr[2][1:]),
190
+ (modfile, 18, 'eggs', [' q = y / 0\n'], 0))
191
+
192
+ def test_frame(self):
193
+ args, varargs, varkw, locals = inspect.getargvalues(mod.fr)
194
+ self.assertEqual(args, ['x', 'y'])
195
+ self.assertEqual(varargs, None)
196
+ self.assertEqual(varkw, None)
197
+ self.assertEqual(locals, {'x': 11, 'p': 11, 'y': 14})
198
+ self.assertEqual(inspect.formatargvalues(args, varargs, varkw, locals),
199
+ '(x=11, y=14)')
200
+
201
+ def test_previous_frame(self):
202
+ args, varargs, varkw, locals = inspect.getargvalues(mod.fr.f_back)
203
+ self.assertEqual(args, ['a', 'b', 'c', 'd', 'e', 'f'])
204
+ self.assertEqual(varargs, 'g')
205
+ self.assertEqual(varkw, 'h')
206
+ self.assertEqual(inspect.formatargvalues(args, varargs, varkw, locals),
207
+ '(a=7, b=8, c=9, d=3, e=4, f=5, *g=(), **h={})')
208
+
209
+ class GetSourceBase(unittest.TestCase):
210
+ # Subclasses must override.
211
+ fodderModule = None
212
+
213
+ def __init__(self, *args, **kwargs):
214
+ unittest.TestCase.__init__(self, *args, **kwargs)
215
+
216
+ with open(inspect.getsourcefile(self.fodderModule)) as fp:
217
+ self.source = fp.read()
218
+
219
+ def sourcerange(self, top, bottom):
220
+ lines = self.source.split("\n")
221
+ return "\n".join(lines[top-1:bottom]) + "\n"
222
+
223
+ def assertSourceEqual(self, obj, top, bottom):
224
+ self.assertEqual(inspect.getsource(obj),
225
+ self.sourcerange(top, bottom))
226
+
227
+ class TestRetrievingSourceCode(GetSourceBase):
228
+ fodderModule = mod
229
+
230
+ def test_getclasses(self):
231
+ classes = inspect.getmembers(mod, inspect.isclass)
232
+ self.assertEqual(classes,
233
+ [('FesteringGob', mod.FesteringGob),
234
+ ('MalodorousPervert', mod.MalodorousPervert),
235
+ ('ParrotDroppings', mod.ParrotDroppings),
236
+ ('StupidGit', mod.StupidGit),
237
+ ('Tit', mod.MalodorousPervert),
238
+ ])
239
+ tree = inspect.getclasstree([cls[1] for cls in classes])
240
+ self.assertEqual(tree,
241
+ [(object, ()),
242
+ [(mod.ParrotDroppings, (object,)),
243
+ [(mod.FesteringGob, (mod.MalodorousPervert,
244
+ mod.ParrotDroppings))
245
+ ],
246
+ (mod.StupidGit, (object,)),
247
+ [(mod.MalodorousPervert, (mod.StupidGit,)),
248
+ [(mod.FesteringGob, (mod.MalodorousPervert,
249
+ mod.ParrotDroppings))
250
+ ]
251
+ ]
252
+ ]
253
+ ])
254
+ tree = inspect.getclasstree([cls[1] for cls in classes], True)
255
+ self.assertEqual(tree,
256
+ [(object, ()),
257
+ [(mod.ParrotDroppings, (object,)),
258
+ (mod.StupidGit, (object,)),
259
+ [(mod.MalodorousPervert, (mod.StupidGit,)),
260
+ [(mod.FesteringGob, (mod.MalodorousPervert,
261
+ mod.ParrotDroppings))
262
+ ]
263
+ ]
264
+ ]
265
+ ])
266
+
267
+ def test_getfunctions(self):
268
+ functions = inspect.getmembers(mod, inspect.isfunction)
269
+ self.assertEqual(functions, [('eggs', mod.eggs),
270
+ ('spam', mod.spam)])
271
+
272
+ @unittest.skipIf(sys.flags.optimize >= 2,
273
+ "Docstrings are omitted with -O2 and above")
274
+ def test_getdoc(self):
275
+ self.assertEqual(inspect.getdoc(mod), 'A module docstring.')
276
+ self.assertEqual(inspect.getdoc(mod.StupidGit),
277
+ 'A longer,\n\nindented\n\ndocstring.')
278
+ self.assertEqual(inspect.getdoc(git.abuse),
279
+ 'Another\n\ndocstring\n\ncontaining\n\ntabs')
280
+
281
+ def test_cleandoc(self):
282
+ self.assertEqual(inspect.cleandoc('An\n indented\n docstring.'),
283
+ 'An\nindented\ndocstring.')
284
+
285
+ def test_getcomments(self):
286
+ self.assertEqual(inspect.getcomments(mod), '# line 1\n')
287
+ self.assertEqual(inspect.getcomments(mod.StupidGit), '# line 20\n')
288
+
289
+ def test_getmodule(self):
290
+ # Check actual module
291
+ self.assertEqual(inspect.getmodule(mod), mod)
292
+ # Check class (uses __module__ attribute)
293
+ self.assertEqual(inspect.getmodule(mod.StupidGit), mod)
294
+ # Check a method (no __module__ attribute, falls back to filename)
295
+ self.assertEqual(inspect.getmodule(mod.StupidGit.abuse), mod)
296
+ # Do it again (check the caching isn't broken)
297
+ self.assertEqual(inspect.getmodule(mod.StupidGit.abuse), mod)
298
+ # Check a builtin
299
+ self.assertEqual(inspect.getmodule(str), sys.modules["builtins"])
300
+ # Check filename override
301
+ self.assertEqual(inspect.getmodule(None, modfile), mod)
302
+
303
+ def test_getsource(self):
304
+ self.assertSourceEqual(git.abuse, 29, 39)
305
+ self.assertSourceEqual(mod.StupidGit, 21, 46)
306
+
307
+ def test_getsourcefile(self):
308
+ self.assertEqual(normcase(inspect.getsourcefile(mod.spam)), modfile)
309
+ self.assertEqual(normcase(inspect.getsourcefile(git.abuse)), modfile)
310
+ fn = "_non_existing_filename_used_for_sourcefile_test.py"
311
+ co = compile("None", fn, "exec")
312
+ self.assertEqual(inspect.getsourcefile(co), None)
313
+ linecache.cache[co.co_filename] = (1, None, "None", co.co_filename)
314
+ try:
315
+ self.assertEqual(normcase(inspect.getsourcefile(co)), fn)
316
+ finally:
317
+ del linecache.cache[co.co_filename]
318
+
319
+ def test_getfile(self):
320
+ self.assertEqual(inspect.getfile(mod.StupidGit), mod.__file__)
321
+
322
+ def test_getfile_class_without_module(self):
323
+ class CM(type):
324
+ @property
325
+ def __module__(cls):
326
+ raise AttributeError
327
+ class C(metaclass=CM):
328
+ pass
329
+ with self.assertRaises(TypeError):
330
+ inspect.getfile(C)
331
+
332
+ def test_getmodule_recursion(self):
333
+ from types import ModuleType
334
+ name = '__inspect_dummy'
335
+ m = sys.modules[name] = ModuleType(name)
336
+ m.__file__ = "<string>" # hopefully not a real filename...
337
+ m.__loader__ = "dummy" # pretend the filename is understood by a loader
338
+ exec("def x(): pass", m.__dict__)
339
+ self.assertEqual(inspect.getsourcefile(m.x.__code__), '<string>')
340
+ del sys.modules[name]
341
+ inspect.getmodule(compile('a=10','','single'))
342
+
343
+ def test_proceed_with_fake_filename(self):
344
+ '''doctest monkeypatches linecache to enable inspection'''
345
+ fn, source = '<test>', 'def x(): pass\n'
346
+ getlines = linecache.getlines
347
+ def monkey(filename, module_globals=None):
348
+ if filename == fn:
349
+ return source.splitlines(keepends=True)
350
+ else:
351
+ return getlines(filename, module_globals)
352
+ linecache.getlines = monkey
353
+ try:
354
+ ns = {}
355
+ exec(compile(source, fn, 'single'), ns)
356
+ inspect.getsource(ns["x"])
357
+ finally:
358
+ linecache.getlines = getlines
359
+
360
+ class TestDecorators(GetSourceBase):
361
+ fodderModule = mod2
362
+
363
+ def test_wrapped_decorator(self):
364
+ self.assertSourceEqual(mod2.wrapped, 14, 17)
365
+
366
+ def test_replacing_decorator(self):
367
+ self.assertSourceEqual(mod2.gone, 9, 10)
368
+
369
+ class TestOneliners(GetSourceBase):
370
+ fodderModule = mod2
371
+ def test_oneline_lambda(self):
372
+ # Test inspect.getsource with a one-line lambda function.
373
+ self.assertSourceEqual(mod2.oll, 25, 25)
374
+
375
+ def test_threeline_lambda(self):
376
+ # Test inspect.getsource with a three-line lambda function,
377
+ # where the second and third lines are _not_ indented.
378
+ self.assertSourceEqual(mod2.tll, 28, 30)
379
+
380
+ def test_twoline_indented_lambda(self):
381
+ # Test inspect.getsource with a two-line lambda function,
382
+ # where the second line _is_ indented.
383
+ self.assertSourceEqual(mod2.tlli, 33, 34)
384
+
385
+ def test_onelinefunc(self):
386
+ # Test inspect.getsource with a regular one-line function.
387
+ self.assertSourceEqual(mod2.onelinefunc, 37, 37)
388
+
389
+ def test_manyargs(self):
390
+ # Test inspect.getsource with a regular function where
391
+ # the arguments are on two lines and _not_ indented and
392
+ # the body on the second line with the last arguments.
393
+ self.assertSourceEqual(mod2.manyargs, 40, 41)
394
+
395
+ def test_twolinefunc(self):
396
+ # Test inspect.getsource with a regular function where
397
+ # the body is on two lines, following the argument list and
398
+ # continued on the next line by a \\.
399
+ self.assertSourceEqual(mod2.twolinefunc, 44, 45)
400
+
401
+ def test_lambda_in_list(self):
402
+ # Test inspect.getsource with a one-line lambda function
403
+ # defined in a list, indented.
404
+ self.assertSourceEqual(mod2.a[1], 49, 49)
405
+
406
+ def test_anonymous(self):
407
+ # Test inspect.getsource with a lambda function defined
408
+ # as argument to another function.
409
+ self.assertSourceEqual(mod2.anonymous, 55, 55)
410
+
411
+ class TestBuggyCases(GetSourceBase):
412
+ fodderModule = mod2
413
+
414
+ def test_with_comment(self):
415
+ self.assertSourceEqual(mod2.with_comment, 58, 59)
416
+
417
+ def test_multiline_sig(self):
418
+ self.assertSourceEqual(mod2.multiline_sig[0], 63, 64)
419
+
420
+ def test_nested_class(self):
421
+ self.assertSourceEqual(mod2.func69().func71, 71, 72)
422
+
423
+ def test_one_liner_followed_by_non_name(self):
424
+ self.assertSourceEqual(mod2.func77, 77, 77)
425
+
426
+ def test_one_liner_dedent_non_name(self):
427
+ self.assertSourceEqual(mod2.cls82.func83, 83, 83)
428
+
429
+ def test_with_comment_instead_of_docstring(self):
430
+ self.assertSourceEqual(mod2.func88, 88, 90)
431
+
432
+ def test_method_in_dynamic_class(self):
433
+ self.assertSourceEqual(mod2.method_in_dynamic_class, 95, 97)
434
+
435
+ @unittest.skipIf(
436
+ not hasattr(unicodedata, '__file__') or
437
+ unicodedata.__file__[-4:] in (".pyc", ".pyo"),
438
+ "unicodedata is not an external binary module")
439
+ def test_findsource_binary(self):
440
+ self.assertRaises(OSError, inspect.getsource, unicodedata)
441
+ self.assertRaises(OSError, inspect.findsource, unicodedata)
442
+
443
+ def test_findsource_code_in_linecache(self):
444
+ lines = ["x=1"]
445
+ co = compile(lines[0], "_dynamically_created_file", "exec")
446
+ self.assertRaises(OSError, inspect.findsource, co)
447
+ self.assertRaises(OSError, inspect.getsource, co)
448
+ linecache.cache[co.co_filename] = (1, None, lines, co.co_filename)
449
+ try:
450
+ self.assertEqual(inspect.findsource(co), (lines,0))
451
+ self.assertEqual(inspect.getsource(co), lines[0])
452
+ finally:
453
+ del linecache.cache[co.co_filename]
454
+
455
+ def test_findsource_without_filename(self):
456
+ for fname in ['', '<string>']:
457
+ co = compile('x=1', fname, "exec")
458
+ self.assertRaises(IOError, inspect.findsource, co)
459
+ self.assertRaises(IOError, inspect.getsource, co)
460
+
461
+ class TestNoEOL(GetSourceBase):
462
+ def __init__(self, *args, **kwargs):
463
+ self.tempdir = TESTFN + '_dir'
464
+ os.mkdir(self.tempdir)
465
+ with open(os.path.join(self.tempdir,
466
+ 'inspect_fodder3%spy' % os.extsep), 'w') as f:
467
+ f.write("class X:\n pass # No EOL")
468
+ with DirsOnSysPath(self.tempdir):
469
+ import inspect_fodder3 as mod3
470
+ self.fodderModule = mod3
471
+ GetSourceBase.__init__(self, *args, **kwargs)
472
+
473
+ def tearDown(self):
474
+ shutil.rmtree(self.tempdir)
475
+
476
+ def test_class(self):
477
+ self.assertSourceEqual(self.fodderModule.X, 1, 2)
478
+
479
+
480
+ class _BrokenDataDescriptor(object):
481
+ """
482
+ A broken data descriptor. See bug #1785.
483
+ """
484
+ def __get__(*args):
485
+ raise AttributeError("broken data descriptor")
486
+
487
+ def __set__(*args):
488
+ raise RuntimeError
489
+
490
+ def __getattr__(*args):
491
+ raise AttributeError("broken data descriptor")
492
+
493
+
494
+ class _BrokenMethodDescriptor(object):
495
+ """
496
+ A broken method descriptor. See bug #1785.
497
+ """
498
+ def __get__(*args):
499
+ raise AttributeError("broken method descriptor")
500
+
501
+ def __getattr__(*args):
502
+ raise AttributeError("broken method descriptor")
503
+
504
+
505
+ # Helper for testing classify_class_attrs.
506
+ def attrs_wo_objs(cls):
507
+ return [t[:3] for t in inspect.classify_class_attrs(cls)]
508
+
509
+
510
+ class TestClassesAndFunctions(unittest.TestCase):
511
+ def test_newstyle_mro(self):
512
+ # The same w/ new-class MRO.
513
+ class A(object): pass
514
+ class B(A): pass
515
+ class C(A): pass
516
+ class D(B, C): pass
517
+
518
+ expected = (D, B, C, A, object)
519
+ got = inspect.getmro(D)
520
+ self.assertEqual(expected, got)
521
+
522
+ def assertArgSpecEquals(self, routine, args_e, varargs_e=None,
523
+ varkw_e=None, defaults_e=None, formatted=None):
524
+ args, varargs, varkw, defaults = inspect.getargspec(routine)
525
+ self.assertEqual(args, args_e)
526
+ self.assertEqual(varargs, varargs_e)
527
+ self.assertEqual(varkw, varkw_e)
528
+ self.assertEqual(defaults, defaults_e)
529
+ if formatted is not None:
530
+ self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults),
531
+ formatted)
532
+
533
+ def assertFullArgSpecEquals(self, routine, args_e, varargs_e=None,
534
+ varkw_e=None, defaults_e=None,
535
+ kwonlyargs_e=[], kwonlydefaults_e=None,
536
+ ann_e={}, formatted=None):
537
+ args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = \
538
+ inspect.getfullargspec(routine)
539
+ self.assertEqual(args, args_e)
540
+ self.assertEqual(varargs, varargs_e)
541
+ self.assertEqual(varkw, varkw_e)
542
+ self.assertEqual(defaults, defaults_e)
543
+ self.assertEqual(kwonlyargs, kwonlyargs_e)
544
+ self.assertEqual(kwonlydefaults, kwonlydefaults_e)
545
+ self.assertEqual(ann, ann_e)
546
+ if formatted is not None:
547
+ self.assertEqual(inspect.formatargspec(args, varargs, varkw, defaults,
548
+ kwonlyargs, kwonlydefaults, ann),
549
+ formatted)
550
+
551
+ def test_getargspec(self):
552
+ self.assertArgSpecEquals(mod.eggs, ['x', 'y'], formatted='(x, y)')
553
+
554
+ self.assertArgSpecEquals(mod.spam,
555
+ ['a', 'b', 'c', 'd', 'e', 'f'],
556
+ 'g', 'h', (3, 4, 5),
557
+ '(a, b, c, d=3, e=4, f=5, *g, **h)')
558
+
559
+ self.assertRaises(ValueError, self.assertArgSpecEquals,
560
+ mod2.keyworded, [])
561
+
562
+ self.assertRaises(ValueError, self.assertArgSpecEquals,
563
+ mod2.annotated, [])
564
+ self.assertRaises(ValueError, self.assertArgSpecEquals,
565
+ mod2.keyword_only_arg, [])
566
+
567
+
568
+ def test_getfullargspec(self):
569
+ self.assertFullArgSpecEquals(mod2.keyworded, [], varargs_e='arg1',
570
+ kwonlyargs_e=['arg2'],
571
+ kwonlydefaults_e={'arg2':1},
572
+ formatted='(*arg1, arg2=1)')
573
+
574
+ self.assertFullArgSpecEquals(mod2.annotated, ['arg1'],
575
+ ann_e={'arg1' : list},
576
+ formatted='(arg1: list)')
577
+ self.assertFullArgSpecEquals(mod2.keyword_only_arg, [],
578
+ kwonlyargs_e=['arg'],
579
+ formatted='(*, arg)')
580
+
581
+ def test_argspec_api_ignores_wrapped(self):
582
+ # Issue 20684: low level introspection API must ignore __wrapped__
583
+ @functools.wraps(mod.spam)
584
+ def ham(x, y):
585
+ pass
586
+ # Basic check
587
+ self.assertArgSpecEquals(ham, ['x', 'y'], formatted='(x, y)')
588
+ self.assertFullArgSpecEquals(ham, ['x', 'y'], formatted='(x, y)')
589
+ self.assertFullArgSpecEquals(functools.partial(ham),
590
+ ['x', 'y'], formatted='(x, y)')
591
+ # Other variants
592
+ def check_method(f):
593
+ self.assertArgSpecEquals(f, ['self', 'x', 'y'],
594
+ formatted='(self, x, y)')
595
+ class C:
596
+ @functools.wraps(mod.spam)
597
+ def ham(self, x, y):
598
+ pass
599
+ pham = functools.partialmethod(ham)
600
+ @functools.wraps(mod.spam)
601
+ def __call__(self, x, y):
602
+ pass
603
+ check_method(C())
604
+ check_method(C.ham)
605
+ check_method(C().ham)
606
+ check_method(C.pham)
607
+ check_method(C().pham)
608
+
609
+ class C_new:
610
+ @functools.wraps(mod.spam)
611
+ def __new__(self, x, y):
612
+ pass
613
+ check_method(C_new)
614
+
615
+ class C_init:
616
+ @functools.wraps(mod.spam)
617
+ def __init__(self, x, y):
618
+ pass
619
+ check_method(C_init)
620
+
621
+ def test_getfullargspec_signature_attr(self):
622
+ def test():
623
+ pass
624
+ spam_param = inspect.Parameter('spam', inspect.Parameter.POSITIONAL_ONLY)
625
+ test.__signature__ = inspect.Signature(parameters=(spam_param,))
626
+
627
+ self.assertFullArgSpecEquals(test, args_e=['spam'], formatted='(spam)')
628
+
629
+ def test_getfullargspec_signature_annos(self):
630
+ def test(a:'spam') -> 'ham': pass
631
+ spec = inspect.getfullargspec(test)
632
+ self.assertEqual(test.__annotations__, spec.annotations)
633
+
634
+ def test(): pass
635
+ spec = inspect.getfullargspec(test)
636
+ self.assertEqual(test.__annotations__, spec.annotations)
637
+
638
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
639
+ "Signature information for builtins requires docstrings")
640
+ def test_getfullargspec_builtin_methods(self):
641
+ self.assertFullArgSpecEquals(_pickle.Pickler.dump,
642
+ args_e=['self', 'obj'], formatted='(self, obj)')
643
+
644
+ self.assertFullArgSpecEquals(_pickle.Pickler(io.BytesIO()).dump,
645
+ args_e=['self', 'obj'], formatted='(self, obj)')
646
+
647
+ self.assertFullArgSpecEquals(
648
+ os.stat,
649
+ args_e=['path'],
650
+ kwonlyargs_e=['dir_fd', 'follow_symlinks'],
651
+ kwonlydefaults_e={'dir_fd': None, 'follow_symlinks': True},
652
+ formatted='(path, *, dir_fd=None, follow_symlinks=True)')
653
+
654
+ @cpython_only
655
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
656
+ "Signature information for builtins requires docstrings")
657
+ def test_getfullagrspec_builtin_func(self):
658
+ import _testcapi
659
+ builtin = _testcapi.docstring_with_signature_with_defaults
660
+ spec = inspect.getfullargspec(builtin)
661
+ self.assertEqual(spec.defaults[0], 'avocado')
662
+
663
+ @cpython_only
664
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
665
+ "Signature information for builtins requires docstrings")
666
+ def test_getfullagrspec_builtin_func_no_signature(self):
667
+ import _testcapi
668
+ builtin = _testcapi.docstring_no_signature
669
+ with self.assertRaises(TypeError):
670
+ inspect.getfullargspec(builtin)
671
+
672
+ def test_getargspec_method(self):
673
+ class A(object):
674
+ def m(self):
675
+ pass
676
+ self.assertArgSpecEquals(A.m, ['self'])
677
+
678
+ def test_classify_newstyle(self):
679
+ class A(object):
680
+
681
+ def s(): pass
682
+ s = staticmethod(s)
683
+
684
+ def c(cls): pass
685
+ c = classmethod(c)
686
+
687
+ def getp(self): pass
688
+ p = property(getp)
689
+
690
+ def m(self): pass
691
+
692
+ def m1(self): pass
693
+
694
+ datablob = '1'
695
+
696
+ dd = _BrokenDataDescriptor()
697
+ md = _BrokenMethodDescriptor()
698
+
699
+ attrs = attrs_wo_objs(A)
700
+
701
+ self.assertIn(('__new__', 'method', object), attrs, 'missing __new__')
702
+ self.assertIn(('__init__', 'method', object), attrs, 'missing __init__')
703
+
704
+ self.assertIn(('s', 'static method', A), attrs, 'missing static method')
705
+ self.assertIn(('c', 'class method', A), attrs, 'missing class method')
706
+ self.assertIn(('p', 'property', A), attrs, 'missing property')
707
+ self.assertIn(('m', 'method', A), attrs,
708
+ 'missing plain method: %r' % attrs)
709
+ self.assertIn(('m1', 'method', A), attrs, 'missing plain method')
710
+ self.assertIn(('datablob', 'data', A), attrs, 'missing data')
711
+ self.assertIn(('md', 'method', A), attrs, 'missing method descriptor')
712
+ self.assertIn(('dd', 'data', A), attrs, 'missing data descriptor')
713
+
714
+ class B(A):
715
+
716
+ def m(self): pass
717
+
718
+ attrs = attrs_wo_objs(B)
719
+ self.assertIn(('s', 'static method', A), attrs, 'missing static method')
720
+ self.assertIn(('c', 'class method', A), attrs, 'missing class method')
721
+ self.assertIn(('p', 'property', A), attrs, 'missing property')
722
+ self.assertIn(('m', 'method', B), attrs, 'missing plain method')
723
+ self.assertIn(('m1', 'method', A), attrs, 'missing plain method')
724
+ self.assertIn(('datablob', 'data', A), attrs, 'missing data')
725
+ self.assertIn(('md', 'method', A), attrs, 'missing method descriptor')
726
+ self.assertIn(('dd', 'data', A), attrs, 'missing data descriptor')
727
+
728
+
729
+ class C(A):
730
+
731
+ def m(self): pass
732
+ def c(self): pass
733
+
734
+ attrs = attrs_wo_objs(C)
735
+ self.assertIn(('s', 'static method', A), attrs, 'missing static method')
736
+ self.assertIn(('c', 'method', C), attrs, 'missing plain method')
737
+ self.assertIn(('p', 'property', A), attrs, 'missing property')
738
+ self.assertIn(('m', 'method', C), attrs, 'missing plain method')
739
+ self.assertIn(('m1', 'method', A), attrs, 'missing plain method')
740
+ self.assertIn(('datablob', 'data', A), attrs, 'missing data')
741
+ self.assertIn(('md', 'method', A), attrs, 'missing method descriptor')
742
+ self.assertIn(('dd', 'data', A), attrs, 'missing data descriptor')
743
+
744
+ class D(B, C):
745
+
746
+ def m1(self): pass
747
+
748
+ attrs = attrs_wo_objs(D)
749
+ self.assertIn(('s', 'static method', A), attrs, 'missing static method')
750
+ self.assertIn(('c', 'method', C), attrs, 'missing plain method')
751
+ self.assertIn(('p', 'property', A), attrs, 'missing property')
752
+ self.assertIn(('m', 'method', B), attrs, 'missing plain method')
753
+ self.assertIn(('m1', 'method', D), attrs, 'missing plain method')
754
+ self.assertIn(('datablob', 'data', A), attrs, 'missing data')
755
+ self.assertIn(('md', 'method', A), attrs, 'missing method descriptor')
756
+ self.assertIn(('dd', 'data', A), attrs, 'missing data descriptor')
757
+
758
+ def test_classify_builtin_types(self):
759
+ # Simple sanity check that all built-in types can have their
760
+ # attributes classified.
761
+ for name in dir(__builtins__):
762
+ builtin = getattr(__builtins__, name)
763
+ if isinstance(builtin, type):
764
+ inspect.classify_class_attrs(builtin)
765
+
766
+ def test_classify_DynamicClassAttribute(self):
767
+ class Meta(type):
768
+ def __getattr__(self, name):
769
+ if name == 'ham':
770
+ return 'spam'
771
+ return super().__getattr__(name)
772
+ class VA(metaclass=Meta):
773
+ @types.DynamicClassAttribute
774
+ def ham(self):
775
+ return 'eggs'
776
+ should_find_dca = inspect.Attribute('ham', 'data', VA, VA.__dict__['ham'])
777
+ self.assertIn(should_find_dca, inspect.classify_class_attrs(VA))
778
+ should_find_ga = inspect.Attribute('ham', 'data', Meta, 'spam')
779
+ self.assertIn(should_find_ga, inspect.classify_class_attrs(VA))
780
+
781
+ def test_classify_metaclass_class_attribute(self):
782
+ class Meta(type):
783
+ fish = 'slap'
784
+ def __dir__(self):
785
+ return ['__class__', '__modules__', '__name__', 'fish']
786
+ class Class(metaclass=Meta):
787
+ pass
788
+ should_find = inspect.Attribute('fish', 'data', Meta, 'slap')
789
+ self.assertIn(should_find, inspect.classify_class_attrs(Class))
790
+
791
+ def test_classify_VirtualAttribute(self):
792
+ class Meta(type):
793
+ def __dir__(cls):
794
+ return ['__class__', '__module__', '__name__', 'BOOM']
795
+ def __getattr__(self, name):
796
+ if name =='BOOM':
797
+ return 42
798
+ return super().__getattr(name)
799
+ class Class(metaclass=Meta):
800
+ pass
801
+ should_find = inspect.Attribute('BOOM', 'data', Meta, 42)
802
+ self.assertIn(should_find, inspect.classify_class_attrs(Class))
803
+
804
+ def test_classify_VirtualAttribute_multi_classes(self):
805
+ class Meta1(type):
806
+ def __dir__(cls):
807
+ return ['__class__', '__module__', '__name__', 'one']
808
+ def __getattr__(self, name):
809
+ if name =='one':
810
+ return 1
811
+ return super().__getattr__(name)
812
+ class Meta2(type):
813
+ def __dir__(cls):
814
+ return ['__class__', '__module__', '__name__', 'two']
815
+ def __getattr__(self, name):
816
+ if name =='two':
817
+ return 2
818
+ return super().__getattr__(name)
819
+ class Meta3(Meta1, Meta2):
820
+ def __dir__(cls):
821
+ return list(sorted(set(['__class__', '__module__', '__name__', 'three'] +
822
+ Meta1.__dir__(cls) + Meta2.__dir__(cls))))
823
+ def __getattr__(self, name):
824
+ if name =='three':
825
+ return 3
826
+ return super().__getattr__(name)
827
+ class Class1(metaclass=Meta1):
828
+ pass
829
+ class Class2(Class1, metaclass=Meta3):
830
+ pass
831
+
832
+ should_find1 = inspect.Attribute('one', 'data', Meta1, 1)
833
+ should_find2 = inspect.Attribute('two', 'data', Meta2, 2)
834
+ should_find3 = inspect.Attribute('three', 'data', Meta3, 3)
835
+ cca = inspect.classify_class_attrs(Class2)
836
+ for sf in (should_find1, should_find2, should_find3):
837
+ self.assertIn(sf, cca)
838
+
839
+ def test_classify_class_attrs_with_buggy_dir(self):
840
+ class M(type):
841
+ def __dir__(cls):
842
+ return ['__class__', '__name__', 'missing']
843
+ class C(metaclass=M):
844
+ pass
845
+ attrs = [a[0] for a in inspect.classify_class_attrs(C)]
846
+ self.assertNotIn('missing', attrs)
847
+
848
+ def test_getmembers_descriptors(self):
849
+ class A(object):
850
+ dd = _BrokenDataDescriptor()
851
+ md = _BrokenMethodDescriptor()
852
+
853
+ def pred_wrapper(pred):
854
+ # A quick'n'dirty way to discard standard attributes of new-style
855
+ # classes.
856
+ class Empty(object):
857
+ pass
858
+ def wrapped(x):
859
+ if '__name__' in dir(x) and hasattr(Empty, x.__name__):
860
+ return False
861
+ return pred(x)
862
+ return wrapped
863
+
864
+ ismethoddescriptor = pred_wrapper(inspect.ismethoddescriptor)
865
+ isdatadescriptor = pred_wrapper(inspect.isdatadescriptor)
866
+
867
+ self.assertEqual(inspect.getmembers(A, ismethoddescriptor),
868
+ [('md', A.__dict__['md'])])
869
+ self.assertEqual(inspect.getmembers(A, isdatadescriptor),
870
+ [('dd', A.__dict__['dd'])])
871
+
872
+ class B(A):
873
+ pass
874
+
875
+ self.assertEqual(inspect.getmembers(B, ismethoddescriptor),
876
+ [('md', A.__dict__['md'])])
877
+ self.assertEqual(inspect.getmembers(B, isdatadescriptor),
878
+ [('dd', A.__dict__['dd'])])
879
+
880
+ def test_getmembers_method(self):
881
+ class B:
882
+ def f(self):
883
+ pass
884
+
885
+ self.assertIn(('f', B.f), inspect.getmembers(B))
886
+ self.assertNotIn(('f', B.f), inspect.getmembers(B, inspect.ismethod))
887
+ b = B()
888
+ self.assertIn(('f', b.f), inspect.getmembers(b))
889
+ self.assertIn(('f', b.f), inspect.getmembers(b, inspect.ismethod))
890
+
891
+ def test_getmembers_VirtualAttribute(self):
892
+ class M(type):
893
+ def __getattr__(cls, name):
894
+ if name == 'eggs':
895
+ return 'scrambled'
896
+ return super().__getattr__(name)
897
+ class A(metaclass=M):
898
+ @types.DynamicClassAttribute
899
+ def eggs(self):
900
+ return 'spam'
901
+ self.assertIn(('eggs', 'scrambled'), inspect.getmembers(A))
902
+ self.assertIn(('eggs', 'spam'), inspect.getmembers(A()))
903
+
904
+ def test_getmembers_with_buggy_dir(self):
905
+ class M(type):
906
+ def __dir__(cls):
907
+ return ['__class__', '__name__', 'missing']
908
+ class C(metaclass=M):
909
+ pass
910
+ attrs = [a[0] for a in inspect.getmembers(C)]
911
+ self.assertNotIn('missing', attrs)
912
+
913
+
914
+ _global_ref = object()
915
+ class TestGetClosureVars(unittest.TestCase):
916
+
917
+ def test_name_resolution(self):
918
+ # Basic test of the 4 different resolution mechanisms
919
+ def f(nonlocal_ref):
920
+ def g(local_ref):
921
+ print(local_ref, nonlocal_ref, _global_ref, unbound_ref)
922
+ return g
923
+ _arg = object()
924
+ nonlocal_vars = {"nonlocal_ref": _arg}
925
+ global_vars = {"_global_ref": _global_ref}
926
+ builtin_vars = {"print": print}
927
+ unbound_names = {"unbound_ref"}
928
+ expected = inspect.ClosureVars(nonlocal_vars, global_vars,
929
+ builtin_vars, unbound_names)
930
+ self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
931
+
932
+ def test_generator_closure(self):
933
+ def f(nonlocal_ref):
934
+ def g(local_ref):
935
+ print(local_ref, nonlocal_ref, _global_ref, unbound_ref)
936
+ yield
937
+ return g
938
+ _arg = object()
939
+ nonlocal_vars = {"nonlocal_ref": _arg}
940
+ global_vars = {"_global_ref": _global_ref}
941
+ builtin_vars = {"print": print}
942
+ unbound_names = {"unbound_ref"}
943
+ expected = inspect.ClosureVars(nonlocal_vars, global_vars,
944
+ builtin_vars, unbound_names)
945
+ self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
946
+
947
+ def test_method_closure(self):
948
+ class C:
949
+ def f(self, nonlocal_ref):
950
+ def g(local_ref):
951
+ print(local_ref, nonlocal_ref, _global_ref, unbound_ref)
952
+ return g
953
+ _arg = object()
954
+ nonlocal_vars = {"nonlocal_ref": _arg}
955
+ global_vars = {"_global_ref": _global_ref}
956
+ builtin_vars = {"print": print}
957
+ unbound_names = {"unbound_ref"}
958
+ expected = inspect.ClosureVars(nonlocal_vars, global_vars,
959
+ builtin_vars, unbound_names)
960
+ self.assertEqual(inspect.getclosurevars(C().f(_arg)), expected)
961
+
962
+ def test_nonlocal_vars(self):
963
+ # More complex tests of nonlocal resolution
964
+ def _nonlocal_vars(f):
965
+ return inspect.getclosurevars(f).nonlocals
966
+
967
+ def make_adder(x):
968
+ def add(y):
969
+ return x + y
970
+ return add
971
+
972
+ def curry(func, arg1):
973
+ return lambda arg2: func(arg1, arg2)
974
+
975
+ def less_than(a, b):
976
+ return a < b
977
+
978
+ # The infamous Y combinator.
979
+ def Y(le):
980
+ def g(f):
981
+ return le(lambda x: f(f)(x))
982
+ Y.g_ref = g
983
+ return g(g)
984
+
985
+ def check_y_combinator(func):
986
+ self.assertEqual(_nonlocal_vars(func), {'f': Y.g_ref})
987
+
988
+ inc = make_adder(1)
989
+ add_two = make_adder(2)
990
+ greater_than_five = curry(less_than, 5)
991
+
992
+ self.assertEqual(_nonlocal_vars(inc), {'x': 1})
993
+ self.assertEqual(_nonlocal_vars(add_two), {'x': 2})
994
+ self.assertEqual(_nonlocal_vars(greater_than_five),
995
+ {'arg1': 5, 'func': less_than})
996
+ self.assertEqual(_nonlocal_vars((lambda x: lambda y: x + y)(3)),
997
+ {'x': 3})
998
+ Y(check_y_combinator)
999
+
1000
+ def test_getclosurevars_empty(self):
1001
+ def foo(): pass
1002
+ _empty = inspect.ClosureVars({}, {}, {}, set())
1003
+ self.assertEqual(inspect.getclosurevars(lambda: True), _empty)
1004
+ self.assertEqual(inspect.getclosurevars(foo), _empty)
1005
+
1006
+ def test_getclosurevars_error(self):
1007
+ class T: pass
1008
+ self.assertRaises(TypeError, inspect.getclosurevars, 1)
1009
+ self.assertRaises(TypeError, inspect.getclosurevars, list)
1010
+ self.assertRaises(TypeError, inspect.getclosurevars, {})
1011
+
1012
+ def _private_globals(self):
1013
+ code = """def f(): print(path)"""
1014
+ ns = {}
1015
+ exec(code, ns)
1016
+ return ns["f"], ns
1017
+
1018
+ def test_builtins_fallback(self):
1019
+ f, ns = self._private_globals()
1020
+ ns.pop("__builtins__", None)
1021
+ expected = inspect.ClosureVars({}, {}, {"print":print}, {"path"})
1022
+ self.assertEqual(inspect.getclosurevars(f), expected)
1023
+
1024
+ def test_builtins_as_dict(self):
1025
+ f, ns = self._private_globals()
1026
+ ns["__builtins__"] = {"path":1}
1027
+ expected = inspect.ClosureVars({}, {}, {"path":1}, {"print"})
1028
+ self.assertEqual(inspect.getclosurevars(f), expected)
1029
+
1030
+ def test_builtins_as_module(self):
1031
+ f, ns = self._private_globals()
1032
+ ns["__builtins__"] = os
1033
+ expected = inspect.ClosureVars({}, {}, {"path":os.path}, {"print"})
1034
+ self.assertEqual(inspect.getclosurevars(f), expected)
1035
+
1036
+
1037
+ class TestGetcallargsFunctions(unittest.TestCase):
1038
+
1039
+ def assertEqualCallArgs(self, func, call_params_string, locs=None):
1040
+ locs = dict(locs or {}, func=func)
1041
+ r1 = eval('func(%s)' % call_params_string, None, locs)
1042
+ r2 = eval('inspect.getcallargs(func, %s)' % call_params_string, None,
1043
+ locs)
1044
+ self.assertEqual(r1, r2)
1045
+
1046
+ def assertEqualException(self, func, call_param_string, locs=None):
1047
+ locs = dict(locs or {}, func=func)
1048
+ try:
1049
+ eval('func(%s)' % call_param_string, None, locs)
1050
+ except Exception as e:
1051
+ ex1 = e
1052
+ else:
1053
+ self.fail('Exception not raised')
1054
+ try:
1055
+ eval('inspect.getcallargs(func, %s)' % call_param_string, None,
1056
+ locs)
1057
+ except Exception as e:
1058
+ ex2 = e
1059
+ else:
1060
+ self.fail('Exception not raised')
1061
+ self.assertIs(type(ex1), type(ex2))
1062
+ self.assertEqual(str(ex1), str(ex2))
1063
+ del ex1, ex2
1064
+
1065
+ def makeCallable(self, signature):
1066
+ """Create a function that returns its locals()"""
1067
+ code = "lambda %s: locals()"
1068
+ return eval(code % signature)
1069
+
1070
+ def test_plain(self):
1071
+ f = self.makeCallable('a, b=1')
1072
+ self.assertEqualCallArgs(f, '2')
1073
+ self.assertEqualCallArgs(f, '2, 3')
1074
+ self.assertEqualCallArgs(f, 'a=2')
1075
+ self.assertEqualCallArgs(f, 'b=3, a=2')
1076
+ self.assertEqualCallArgs(f, '2, b=3')
1077
+ # expand *iterable / **mapping
1078
+ self.assertEqualCallArgs(f, '*(2,)')
1079
+ self.assertEqualCallArgs(f, '*[2]')
1080
+ self.assertEqualCallArgs(f, '*(2, 3)')
1081
+ self.assertEqualCallArgs(f, '*[2, 3]')
1082
+ self.assertEqualCallArgs(f, '**{"a":2}')
1083
+ self.assertEqualCallArgs(f, 'b=3, **{"a":2}')
1084
+ self.assertEqualCallArgs(f, '2, **{"b":3}')
1085
+ self.assertEqualCallArgs(f, '**{"b":3, "a":2}')
1086
+ # expand UserList / UserDict
1087
+ self.assertEqualCallArgs(f, '*collections.UserList([2])')
1088
+ self.assertEqualCallArgs(f, '*collections.UserList([2, 3])')
1089
+ self.assertEqualCallArgs(f, '**collections.UserDict(a=2)')
1090
+ self.assertEqualCallArgs(f, '2, **collections.UserDict(b=3)')
1091
+ self.assertEqualCallArgs(f, 'b=2, **collections.UserDict(a=3)')
1092
+
1093
+ def test_varargs(self):
1094
+ f = self.makeCallable('a, b=1, *c')
1095
+ self.assertEqualCallArgs(f, '2')
1096
+ self.assertEqualCallArgs(f, '2, 3')
1097
+ self.assertEqualCallArgs(f, '2, 3, 4')
1098
+ self.assertEqualCallArgs(f, '*(2,3,4)')
1099
+ self.assertEqualCallArgs(f, '2, *[3,4]')
1100
+ self.assertEqualCallArgs(f, '2, 3, *collections.UserList([4])')
1101
+
1102
+ def test_varkw(self):
1103
+ f = self.makeCallable('a, b=1, **c')
1104
+ self.assertEqualCallArgs(f, 'a=2')
1105
+ self.assertEqualCallArgs(f, '2, b=3, c=4')
1106
+ self.assertEqualCallArgs(f, 'b=3, a=2, c=4')
1107
+ self.assertEqualCallArgs(f, 'c=4, **{"a":2, "b":3}')
1108
+ self.assertEqualCallArgs(f, '2, c=4, **{"b":3}')
1109
+ self.assertEqualCallArgs(f, 'b=2, **{"a":3, "c":4}')
1110
+ self.assertEqualCallArgs(f, '**collections.UserDict(a=2, b=3, c=4)')
1111
+ self.assertEqualCallArgs(f, '2, c=4, **collections.UserDict(b=3)')
1112
+ self.assertEqualCallArgs(f, 'b=2, **collections.UserDict(a=3, c=4)')
1113
+
1114
+ def test_varkw_only(self):
1115
+ # issue11256:
1116
+ f = self.makeCallable('**c')
1117
+ self.assertEqualCallArgs(f, '')
1118
+ self.assertEqualCallArgs(f, 'a=1')
1119
+ self.assertEqualCallArgs(f, 'a=1, b=2')
1120
+ self.assertEqualCallArgs(f, 'c=3, **{"a": 1, "b": 2}')
1121
+ self.assertEqualCallArgs(f, '**collections.UserDict(a=1, b=2)')
1122
+ self.assertEqualCallArgs(f, 'c=3, **collections.UserDict(a=1, b=2)')
1123
+
1124
+ def test_keyword_only(self):
1125
+ f = self.makeCallable('a=3, *, c, d=2')
1126
+ self.assertEqualCallArgs(f, 'c=3')
1127
+ self.assertEqualCallArgs(f, 'c=3, a=3')
1128
+ self.assertEqualCallArgs(f, 'a=2, c=4')
1129
+ self.assertEqualCallArgs(f, '4, c=4')
1130
+ self.assertEqualException(f, '')
1131
+ self.assertEqualException(f, '3')
1132
+ self.assertEqualException(f, 'a=3')
1133
+ self.assertEqualException(f, 'd=4')
1134
+
1135
+ f = self.makeCallable('*, c, d=2')
1136
+ self.assertEqualCallArgs(f, 'c=3')
1137
+ self.assertEqualCallArgs(f, 'c=3, d=4')
1138
+ self.assertEqualCallArgs(f, 'd=4, c=3')
1139
+
1140
+ def test_multiple_features(self):
1141
+ f = self.makeCallable('a, b=2, *f, **g')
1142
+ self.assertEqualCallArgs(f, '2, 3, 7')
1143
+ self.assertEqualCallArgs(f, '2, 3, x=8')
1144
+ self.assertEqualCallArgs(f, '2, 3, x=8, *[(4,[5,6]), 7]')
1145
+ self.assertEqualCallArgs(f, '2, x=8, *[3, (4,[5,6]), 7], y=9')
1146
+ self.assertEqualCallArgs(f, 'x=8, *[2, 3, (4,[5,6])], y=9')
1147
+ self.assertEqualCallArgs(f, 'x=8, *collections.UserList('
1148
+ '[2, 3, (4,[5,6])]), **{"y":9, "z":10}')
1149
+ self.assertEqualCallArgs(f, '2, x=8, *collections.UserList([3, '
1150
+ '(4,[5,6])]), **collections.UserDict('
1151
+ 'y=9, z=10)')
1152
+
1153
+ f = self.makeCallable('a, b=2, *f, x, y=99, **g')
1154
+ self.assertEqualCallArgs(f, '2, 3, x=8')
1155
+ self.assertEqualCallArgs(f, '2, 3, x=8, *[(4,[5,6]), 7]')
1156
+ self.assertEqualCallArgs(f, '2, x=8, *[3, (4,[5,6]), 7], y=9, z=10')
1157
+ self.assertEqualCallArgs(f, 'x=8, *[2, 3, (4,[5,6])], y=9, z=10')
1158
+ self.assertEqualCallArgs(f, 'x=8, *collections.UserList('
1159
+ '[2, 3, (4,[5,6])]), q=0, **{"y":9, "z":10}')
1160
+ self.assertEqualCallArgs(f, '2, x=8, *collections.UserList([3, '
1161
+ '(4,[5,6])]), q=0, **collections.UserDict('
1162
+ 'y=9, z=10)')
1163
+
1164
+ def test_errors(self):
1165
+ f0 = self.makeCallable('')
1166
+ f1 = self.makeCallable('a, b')
1167
+ f2 = self.makeCallable('a, b=1')
1168
+ # f0 takes no arguments
1169
+ self.assertEqualException(f0, '1')
1170
+ self.assertEqualException(f0, 'x=1')
1171
+ self.assertEqualException(f0, '1,x=1')
1172
+ # f1 takes exactly 2 arguments
1173
+ self.assertEqualException(f1, '')
1174
+ self.assertEqualException(f1, '1')
1175
+ self.assertEqualException(f1, 'a=2')
1176
+ self.assertEqualException(f1, 'b=3')
1177
+ # f2 takes at least 1 argument
1178
+ self.assertEqualException(f2, '')
1179
+ self.assertEqualException(f2, 'b=3')
1180
+ for f in f1, f2:
1181
+ # f1/f2 takes exactly/at most 2 arguments
1182
+ self.assertEqualException(f, '2, 3, 4')
1183
+ self.assertEqualException(f, '1, 2, 3, a=1')
1184
+ self.assertEqualException(f, '2, 3, 4, c=5')
1185
+ # XXX: success of this one depends on dict order
1186
+ ## self.assertEqualException(f, '2, 3, 4, a=1, c=5')
1187
+ # f got an unexpected keyword argument
1188
+ self.assertEqualException(f, 'c=2')
1189
+ self.assertEqualException(f, '2, c=3')
1190
+ self.assertEqualException(f, '2, 3, c=4')
1191
+ self.assertEqualException(f, '2, c=4, b=3')
1192
+ self.assertEqualException(f, '**{u"\u03c0\u03b9": 4}')
1193
+ # f got multiple values for keyword argument
1194
+ self.assertEqualException(f, '1, a=2')
1195
+ self.assertEqualException(f, '1, **{"a":2}')
1196
+ self.assertEqualException(f, '1, 2, b=3')
1197
+ # XXX: Python inconsistency
1198
+ # - for functions and bound methods: unexpected keyword 'c'
1199
+ # - for unbound methods: multiple values for keyword 'a'
1200
+ #self.assertEqualException(f, '1, c=3, a=2')
1201
+ # issue11256:
1202
+ f3 = self.makeCallable('**c')
1203
+ self.assertEqualException(f3, '1, 2')
1204
+ self.assertEqualException(f3, '1, 2, a=1, b=2')
1205
+ f4 = self.makeCallable('*, a, b=0')
1206
+ self.assertEqualException(f3, '1, 2')
1207
+ self.assertEqualException(f3, '1, 2, a=1, b=2')
1208
+
1209
+ # issue #20816: getcallargs() fails to iterate over non-existent
1210
+ # kwonlydefaults and raises a wrong TypeError
1211
+ def f5(*, a): pass
1212
+ with self.assertRaisesRegex(TypeError,
1213
+ 'missing 1 required keyword-only'):
1214
+ inspect.getcallargs(f5)
1215
+
1216
+
1217
+ # issue20817:
1218
+ def f6(a, b, c):
1219
+ pass
1220
+ with self.assertRaisesRegex(TypeError, "'a', 'b' and 'c'"):
1221
+ inspect.getcallargs(f6)
1222
+
1223
+ class TestGetcallargsMethods(TestGetcallargsFunctions):
1224
+
1225
+ def setUp(self):
1226
+ class Foo(object):
1227
+ pass
1228
+ self.cls = Foo
1229
+ self.inst = Foo()
1230
+
1231
+ def makeCallable(self, signature):
1232
+ assert 'self' not in signature
1233
+ mk = super(TestGetcallargsMethods, self).makeCallable
1234
+ self.cls.method = mk('self, ' + signature)
1235
+ return self.inst.method
1236
+
1237
+ class TestGetcallargsUnboundMethods(TestGetcallargsMethods):
1238
+
1239
+ def makeCallable(self, signature):
1240
+ super(TestGetcallargsUnboundMethods, self).makeCallable(signature)
1241
+ return self.cls.method
1242
+
1243
+ def assertEqualCallArgs(self, func, call_params_string, locs=None):
1244
+ return super(TestGetcallargsUnboundMethods, self).assertEqualCallArgs(
1245
+ *self._getAssertEqualParams(func, call_params_string, locs))
1246
+
1247
+ def assertEqualException(self, func, call_params_string, locs=None):
1248
+ return super(TestGetcallargsUnboundMethods, self).assertEqualException(
1249
+ *self._getAssertEqualParams(func, call_params_string, locs))
1250
+
1251
+ def _getAssertEqualParams(self, func, call_params_string, locs=None):
1252
+ assert 'inst' not in call_params_string
1253
+ locs = dict(locs or {}, inst=self.inst)
1254
+ return (func, 'inst,' + call_params_string, locs)
1255
+
1256
+
1257
+ class TestGetattrStatic(unittest.TestCase):
1258
+
1259
+ def test_basic(self):
1260
+ class Thing(object):
1261
+ x = object()
1262
+
1263
+ thing = Thing()
1264
+ self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1265
+ self.assertEqual(inspect.getattr_static(thing, 'x', None), Thing.x)
1266
+ with self.assertRaises(AttributeError):
1267
+ inspect.getattr_static(thing, 'y')
1268
+
1269
+ self.assertEqual(inspect.getattr_static(thing, 'y', 3), 3)
1270
+
1271
+ def test_inherited(self):
1272
+ class Thing(object):
1273
+ x = object()
1274
+ class OtherThing(Thing):
1275
+ pass
1276
+
1277
+ something = OtherThing()
1278
+ self.assertEqual(inspect.getattr_static(something, 'x'), Thing.x)
1279
+
1280
+ def test_instance_attr(self):
1281
+ class Thing(object):
1282
+ x = 2
1283
+ def __init__(self, x):
1284
+ self.x = x
1285
+ thing = Thing(3)
1286
+ self.assertEqual(inspect.getattr_static(thing, 'x'), 3)
1287
+ del thing.x
1288
+ self.assertEqual(inspect.getattr_static(thing, 'x'), 2)
1289
+
1290
+ def test_property(self):
1291
+ class Thing(object):
1292
+ @property
1293
+ def x(self):
1294
+ raise AttributeError("I'm pretending not to exist")
1295
+ thing = Thing()
1296
+ self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1297
+
1298
+ def test_descriptor_raises_AttributeError(self):
1299
+ class descriptor(object):
1300
+ def __get__(*_):
1301
+ raise AttributeError("I'm pretending not to exist")
1302
+ desc = descriptor()
1303
+ class Thing(object):
1304
+ x = desc
1305
+ thing = Thing()
1306
+ self.assertEqual(inspect.getattr_static(thing, 'x'), desc)
1307
+
1308
+ def test_classAttribute(self):
1309
+ class Thing(object):
1310
+ x = object()
1311
+
1312
+ self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.x)
1313
+
1314
+ def test_classVirtualAttribute(self):
1315
+ class Thing(object):
1316
+ @types.DynamicClassAttribute
1317
+ def x(self):
1318
+ return self._x
1319
+ _x = object()
1320
+
1321
+ self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.__dict__['x'])
1322
+
1323
+ def test_inherited_classattribute(self):
1324
+ class Thing(object):
1325
+ x = object()
1326
+ class OtherThing(Thing):
1327
+ pass
1328
+
1329
+ self.assertEqual(inspect.getattr_static(OtherThing, 'x'), Thing.x)
1330
+
1331
+ def test_slots(self):
1332
+ class Thing(object):
1333
+ y = 'bar'
1334
+ __slots__ = ['x']
1335
+ def __init__(self):
1336
+ self.x = 'foo'
1337
+ thing = Thing()
1338
+ self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1339
+ self.assertEqual(inspect.getattr_static(thing, 'y'), 'bar')
1340
+
1341
+ del thing.x
1342
+ self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1343
+
1344
+ def test_metaclass(self):
1345
+ class meta(type):
1346
+ attr = 'foo'
1347
+ class Thing(object, metaclass=meta):
1348
+ pass
1349
+ self.assertEqual(inspect.getattr_static(Thing, 'attr'), 'foo')
1350
+
1351
+ class sub(meta):
1352
+ pass
1353
+ class OtherThing(object, metaclass=sub):
1354
+ x = 3
1355
+ self.assertEqual(inspect.getattr_static(OtherThing, 'attr'), 'foo')
1356
+
1357
+ class OtherOtherThing(OtherThing):
1358
+ pass
1359
+ # this test is odd, but it was added as it exposed a bug
1360
+ self.assertEqual(inspect.getattr_static(OtherOtherThing, 'x'), 3)
1361
+
1362
+ def test_no_dict_no_slots(self):
1363
+ self.assertEqual(inspect.getattr_static(1, 'foo', None), None)
1364
+ self.assertNotEqual(inspect.getattr_static('foo', 'lower'), None)
1365
+
1366
+ def test_no_dict_no_slots_instance_member(self):
1367
+ # returns descriptor
1368
+ with open(__file__) as handle:
1369
+ self.assertEqual(inspect.getattr_static(handle, 'name'), type(handle).name)
1370
+
1371
+ def test_inherited_slots(self):
1372
+ # returns descriptor
1373
+ class Thing(object):
1374
+ __slots__ = ['x']
1375
+ def __init__(self):
1376
+ self.x = 'foo'
1377
+
1378
+ class OtherThing(Thing):
1379
+ pass
1380
+ # it would be nice if this worked...
1381
+ # we get the descriptor instead of the instance attribute
1382
+ self.assertEqual(inspect.getattr_static(OtherThing(), 'x'), Thing.x)
1383
+
1384
+ def test_descriptor(self):
1385
+ class descriptor(object):
1386
+ def __get__(self, instance, owner):
1387
+ return 3
1388
+ class Foo(object):
1389
+ d = descriptor()
1390
+
1391
+ foo = Foo()
1392
+
1393
+ # for a non data descriptor we return the instance attribute
1394
+ foo.__dict__['d'] = 1
1395
+ self.assertEqual(inspect.getattr_static(foo, 'd'), 1)
1396
+
1397
+ # if the descriptor is a data-desciptor we should return the
1398
+ # descriptor
1399
+ descriptor.__set__ = lambda s, i, v: None
1400
+ self.assertEqual(inspect.getattr_static(foo, 'd'), Foo.__dict__['d'])
1401
+
1402
+
1403
+ def test_metaclass_with_descriptor(self):
1404
+ class descriptor(object):
1405
+ def __get__(self, instance, owner):
1406
+ return 3
1407
+ class meta(type):
1408
+ d = descriptor()
1409
+ class Thing(object, metaclass=meta):
1410
+ pass
1411
+ self.assertEqual(inspect.getattr_static(Thing, 'd'), meta.__dict__['d'])
1412
+
1413
+
1414
+ def test_class_as_property(self):
1415
+ class Base(object):
1416
+ foo = 3
1417
+
1418
+ class Something(Base):
1419
+ executed = False
1420
+ @property
1421
+ def __class__(self):
1422
+ self.executed = True
1423
+ return object
1424
+
1425
+ instance = Something()
1426
+ self.assertEqual(inspect.getattr_static(instance, 'foo'), 3)
1427
+ self.assertFalse(instance.executed)
1428
+ self.assertEqual(inspect.getattr_static(Something, 'foo'), 3)
1429
+
1430
+ def test_mro_as_property(self):
1431
+ class Meta(type):
1432
+ @property
1433
+ def __mro__(self):
1434
+ return (object,)
1435
+
1436
+ class Base(object):
1437
+ foo = 3
1438
+
1439
+ class Something(Base, metaclass=Meta):
1440
+ pass
1441
+
1442
+ self.assertEqual(inspect.getattr_static(Something(), 'foo'), 3)
1443
+ self.assertEqual(inspect.getattr_static(Something, 'foo'), 3)
1444
+
1445
+ def test_dict_as_property(self):
1446
+ test = self
1447
+ test.called = False
1448
+
1449
+ class Foo(dict):
1450
+ a = 3
1451
+ @property
1452
+ def __dict__(self):
1453
+ test.called = True
1454
+ return {}
1455
+
1456
+ foo = Foo()
1457
+ foo.a = 4
1458
+ self.assertEqual(inspect.getattr_static(foo, 'a'), 3)
1459
+ self.assertFalse(test.called)
1460
+
1461
+ def test_custom_object_dict(self):
1462
+ test = self
1463
+ test.called = False
1464
+
1465
+ class Custom(dict):
1466
+ def get(self, key, default=None):
1467
+ test.called = True
1468
+ super().get(key, default)
1469
+
1470
+ class Foo(object):
1471
+ a = 3
1472
+ foo = Foo()
1473
+ foo.__dict__ = Custom()
1474
+ self.assertEqual(inspect.getattr_static(foo, 'a'), 3)
1475
+ self.assertFalse(test.called)
1476
+
1477
+ def test_metaclass_dict_as_property(self):
1478
+ class Meta(type):
1479
+ @property
1480
+ def __dict__(self):
1481
+ self.executed = True
1482
+
1483
+ class Thing(metaclass=Meta):
1484
+ executed = False
1485
+
1486
+ def __init__(self):
1487
+ self.spam = 42
1488
+
1489
+ instance = Thing()
1490
+ self.assertEqual(inspect.getattr_static(instance, "spam"), 42)
1491
+ self.assertFalse(Thing.executed)
1492
+
1493
+ def test_module(self):
1494
+ sentinel = object()
1495
+ self.assertIsNot(inspect.getattr_static(sys, "version", sentinel),
1496
+ sentinel)
1497
+
1498
+ def test_metaclass_with_metaclass_with_dict_as_property(self):
1499
+ class MetaMeta(type):
1500
+ @property
1501
+ def __dict__(self):
1502
+ self.executed = True
1503
+ return dict(spam=42)
1504
+
1505
+ class Meta(type, metaclass=MetaMeta):
1506
+ executed = False
1507
+
1508
+ class Thing(metaclass=Meta):
1509
+ pass
1510
+
1511
+ with self.assertRaises(AttributeError):
1512
+ inspect.getattr_static(Thing, "spam")
1513
+ self.assertFalse(Thing.executed)
1514
+
1515
+ class TestGetGeneratorState(unittest.TestCase):
1516
+
1517
+ def setUp(self):
1518
+ def number_generator():
1519
+ for number in range(5):
1520
+ yield number
1521
+ self.generator = number_generator()
1522
+
1523
+ def _generatorstate(self):
1524
+ return inspect.getgeneratorstate(self.generator)
1525
+
1526
+ def test_created(self):
1527
+ self.assertEqual(self._generatorstate(), inspect.GEN_CREATED)
1528
+
1529
+ def test_suspended(self):
1530
+ next(self.generator)
1531
+ self.assertEqual(self._generatorstate(), inspect.GEN_SUSPENDED)
1532
+
1533
+ def test_closed_after_exhaustion(self):
1534
+ for i in self.generator:
1535
+ pass
1536
+ self.assertEqual(self._generatorstate(), inspect.GEN_CLOSED)
1537
+
1538
+ def test_closed_after_immediate_exception(self):
1539
+ with self.assertRaises(RuntimeError):
1540
+ self.generator.throw(RuntimeError)
1541
+ self.assertEqual(self._generatorstate(), inspect.GEN_CLOSED)
1542
+
1543
+ def test_running(self):
1544
+ # As mentioned on issue #10220, checking for the RUNNING state only
1545
+ # makes sense inside the generator itself.
1546
+ # The following generator checks for this by using the closure's
1547
+ # reference to self and the generator state checking helper method
1548
+ def running_check_generator():
1549
+ for number in range(5):
1550
+ self.assertEqual(self._generatorstate(), inspect.GEN_RUNNING)
1551
+ yield number
1552
+ self.assertEqual(self._generatorstate(), inspect.GEN_RUNNING)
1553
+ self.generator = running_check_generator()
1554
+ # Running up to the first yield
1555
+ next(self.generator)
1556
+ # Running after the first yield
1557
+ next(self.generator)
1558
+
1559
+ def test_easy_debugging(self):
1560
+ # repr() and str() of a generator state should contain the state name
1561
+ names = 'GEN_CREATED GEN_RUNNING GEN_SUSPENDED GEN_CLOSED'.split()
1562
+ for name in names:
1563
+ state = getattr(inspect, name)
1564
+ self.assertIn(name, repr(state))
1565
+ self.assertIn(name, str(state))
1566
+
1567
+ def test_getgeneratorlocals(self):
1568
+ def each(lst, a=None):
1569
+ b=(1, 2, 3)
1570
+ for v in lst:
1571
+ if v == 3:
1572
+ c = 12
1573
+ yield v
1574
+
1575
+ numbers = each([1, 2, 3])
1576
+ self.assertEqual(inspect.getgeneratorlocals(numbers),
1577
+ {'a': None, 'lst': [1, 2, 3]})
1578
+ next(numbers)
1579
+ self.assertEqual(inspect.getgeneratorlocals(numbers),
1580
+ {'a': None, 'lst': [1, 2, 3], 'v': 1,
1581
+ 'b': (1, 2, 3)})
1582
+ next(numbers)
1583
+ self.assertEqual(inspect.getgeneratorlocals(numbers),
1584
+ {'a': None, 'lst': [1, 2, 3], 'v': 2,
1585
+ 'b': (1, 2, 3)})
1586
+ next(numbers)
1587
+ self.assertEqual(inspect.getgeneratorlocals(numbers),
1588
+ {'a': None, 'lst': [1, 2, 3], 'v': 3,
1589
+ 'b': (1, 2, 3), 'c': 12})
1590
+ try:
1591
+ next(numbers)
1592
+ except StopIteration:
1593
+ pass
1594
+ self.assertEqual(inspect.getgeneratorlocals(numbers), {})
1595
+
1596
+ def test_getgeneratorlocals_empty(self):
1597
+ def yield_one():
1598
+ yield 1
1599
+ one = yield_one()
1600
+ self.assertEqual(inspect.getgeneratorlocals(one), {})
1601
+ try:
1602
+ next(one)
1603
+ except StopIteration:
1604
+ pass
1605
+ self.assertEqual(inspect.getgeneratorlocals(one), {})
1606
+
1607
+ def test_getgeneratorlocals_error(self):
1608
+ self.assertRaises(TypeError, inspect.getgeneratorlocals, 1)
1609
+ self.assertRaises(TypeError, inspect.getgeneratorlocals, lambda x: True)
1610
+ self.assertRaises(TypeError, inspect.getgeneratorlocals, set)
1611
+ self.assertRaises(TypeError, inspect.getgeneratorlocals, (2,3))
1612
+
1613
+
1614
+ class TestSignatureObject(unittest.TestCase):
1615
+ @staticmethod
1616
+ def signature(func):
1617
+ sig = inspect.signature(func)
1618
+ return (tuple((param.name,
1619
+ (... if param.default is param.empty else param.default),
1620
+ (... if param.annotation is param.empty
1621
+ else param.annotation),
1622
+ str(param.kind).lower())
1623
+ for param in sig.parameters.values()),
1624
+ (... if sig.return_annotation is sig.empty
1625
+ else sig.return_annotation))
1626
+
1627
+ def test_signature_object(self):
1628
+ S = inspect.Signature
1629
+ P = inspect.Parameter
1630
+
1631
+ self.assertEqual(str(S()), '()')
1632
+
1633
+ def test(po, pk, pod=42, pkd=100, *args, ko, **kwargs):
1634
+ pass
1635
+ sig = inspect.signature(test)
1636
+ po = sig.parameters['po'].replace(kind=P.POSITIONAL_ONLY)
1637
+ pod = sig.parameters['pod'].replace(kind=P.POSITIONAL_ONLY)
1638
+ pk = sig.parameters['pk']
1639
+ pkd = sig.parameters['pkd']
1640
+ args = sig.parameters['args']
1641
+ ko = sig.parameters['ko']
1642
+ kwargs = sig.parameters['kwargs']
1643
+
1644
+ S((po, pk, args, ko, kwargs))
1645
+
1646
+ with self.assertRaisesRegex(ValueError, 'wrong parameter order'):
1647
+ S((pk, po, args, ko, kwargs))
1648
+
1649
+ with self.assertRaisesRegex(ValueError, 'wrong parameter order'):
1650
+ S((po, args, pk, ko, kwargs))
1651
+
1652
+ with self.assertRaisesRegex(ValueError, 'wrong parameter order'):
1653
+ S((args, po, pk, ko, kwargs))
1654
+
1655
+ with self.assertRaisesRegex(ValueError, 'wrong parameter order'):
1656
+ S((po, pk, args, kwargs, ko))
1657
+
1658
+ kwargs2 = kwargs.replace(name='args')
1659
+ with self.assertRaisesRegex(ValueError, 'duplicate parameter name'):
1660
+ S((po, pk, args, kwargs2, ko))
1661
+
1662
+ with self.assertRaisesRegex(ValueError, 'follows default argument'):
1663
+ S((pod, po))
1664
+
1665
+ with self.assertRaisesRegex(ValueError, 'follows default argument'):
1666
+ S((po, pkd, pk))
1667
+
1668
+ with self.assertRaisesRegex(ValueError, 'follows default argument'):
1669
+ S((pkd, pk))
1670
+
1671
+ def test_signature_immutability(self):
1672
+ def test(a):
1673
+ pass
1674
+ sig = inspect.signature(test)
1675
+
1676
+ with self.assertRaises(AttributeError):
1677
+ sig.foo = 'bar'
1678
+
1679
+ with self.assertRaises(TypeError):
1680
+ sig.parameters['a'] = None
1681
+
1682
+ def test_signature_on_noarg(self):
1683
+ def test():
1684
+ pass
1685
+ self.assertEqual(self.signature(test), ((), ...))
1686
+
1687
+ def test_signature_on_wargs(self):
1688
+ def test(a, b:'foo') -> 123:
1689
+ pass
1690
+ self.assertEqual(self.signature(test),
1691
+ ((('a', ..., ..., "positional_or_keyword"),
1692
+ ('b', ..., 'foo', "positional_or_keyword")),
1693
+ 123))
1694
+
1695
+ def test_signature_on_wkwonly(self):
1696
+ def test(*, a:float, b:str) -> int:
1697
+ pass
1698
+ self.assertEqual(self.signature(test),
1699
+ ((('a', ..., float, "keyword_only"),
1700
+ ('b', ..., str, "keyword_only")),
1701
+ int))
1702
+
1703
+ def test_signature_on_complex_args(self):
1704
+ def test(a, b:'foo'=10, *args:'bar', spam:'baz', ham=123, **kwargs:int):
1705
+ pass
1706
+ self.assertEqual(self.signature(test),
1707
+ ((('a', ..., ..., "positional_or_keyword"),
1708
+ ('b', 10, 'foo', "positional_or_keyword"),
1709
+ ('args', ..., 'bar', "var_positional"),
1710
+ ('spam', ..., 'baz', "keyword_only"),
1711
+ ('ham', 123, ..., "keyword_only"),
1712
+ ('kwargs', ..., int, "var_keyword")),
1713
+ ...))
1714
+
1715
+ @cpython_only
1716
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
1717
+ "Signature information for builtins requires docstrings")
1718
+ def test_signature_on_builtins(self):
1719
+ import _testcapi
1720
+
1721
+ def test_unbound_method(o):
1722
+ """Use this to test unbound methods (things that should have a self)"""
1723
+ signature = inspect.signature(o)
1724
+ self.assertTrue(isinstance(signature, inspect.Signature))
1725
+ self.assertEqual(list(signature.parameters.values())[0].name, 'self')
1726
+ return signature
1727
+
1728
+ def test_callable(o):
1729
+ """Use this to test bound methods or normal callables (things that don't expect self)"""
1730
+ signature = inspect.signature(o)
1731
+ self.assertTrue(isinstance(signature, inspect.Signature))
1732
+ if signature.parameters:
1733
+ self.assertNotEqual(list(signature.parameters.values())[0].name, 'self')
1734
+ return signature
1735
+
1736
+ signature = test_callable(_testcapi.docstring_with_signature_with_defaults)
1737
+ def p(name): return signature.parameters[name].default
1738
+ self.assertEqual(p('s'), 'avocado')
1739
+ self.assertEqual(p('b'), b'bytes')
1740
+ self.assertEqual(p('d'), 3.14)
1741
+ self.assertEqual(p('i'), 35)
1742
+ self.assertEqual(p('n'), None)
1743
+ self.assertEqual(p('t'), True)
1744
+ self.assertEqual(p('f'), False)
1745
+ self.assertEqual(p('local'), 3)
1746
+ self.assertEqual(p('sys'), sys.maxsize)
1747
+ self.assertEqual(p('exp'), sys.maxsize - 1)
1748
+
1749
+ test_callable(object)
1750
+
1751
+ # normal method
1752
+ # (PyMethodDescr_Type, "method_descriptor")
1753
+ test_unbound_method(_pickle.Pickler.dump)
1754
+ d = _pickle.Pickler(io.StringIO())
1755
+ test_callable(d.dump)
1756
+
1757
+ # static method
1758
+ test_callable(str.maketrans)
1759
+ test_callable('abc'.maketrans)
1760
+
1761
+ # class method
1762
+ test_callable(dict.fromkeys)
1763
+ test_callable({}.fromkeys)
1764
+
1765
+ # wrapper around slot (PyWrapperDescr_Type, "wrapper_descriptor")
1766
+ test_unbound_method(type.__call__)
1767
+ test_unbound_method(int.__add__)
1768
+ test_callable((3).__add__)
1769
+
1770
+ # _PyMethodWrapper_Type
1771
+ # support for 'method-wrapper'
1772
+ test_callable(min.__call__)
1773
+
1774
+ # This doesn't work now.
1775
+ # (We don't have a valid signature for "type" in 3.4)
1776
+ with self.assertRaisesRegex(ValueError, "no signature found"):
1777
+ class ThisWorksNow:
1778
+ __call__ = type
1779
+ test_callable(ThisWorksNow())
1780
+
1781
+ # Regression test for issue #20786
1782
+ test_unbound_method(dict.__delitem__)
1783
+ test_unbound_method(property.__delete__)
1784
+
1785
+
1786
+ @cpython_only
1787
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
1788
+ "Signature information for builtins requires docstrings")
1789
+ def test_signature_on_decorated_builtins(self):
1790
+ import _testcapi
1791
+ func = _testcapi.docstring_with_signature_with_defaults
1792
+
1793
+ def decorator(func):
1794
+ @functools.wraps(func)
1795
+ def wrapper(*args, **kwargs) -> int:
1796
+ return func(*args, **kwargs)
1797
+ return wrapper
1798
+
1799
+ decorated_func = decorator(func)
1800
+
1801
+ self.assertEqual(inspect.signature(func),
1802
+ inspect.signature(decorated_func))
1803
+
1804
+ @cpython_only
1805
+ def test_signature_on_builtins_no_signature(self):
1806
+ import _testcapi
1807
+ with self.assertRaisesRegex(ValueError, 'no signature found for builtin'):
1808
+ inspect.signature(_testcapi.docstring_no_signature)
1809
+
1810
+ def test_signature_on_non_function(self):
1811
+ with self.assertRaisesRegex(TypeError, 'is not a callable object'):
1812
+ inspect.signature(42)
1813
+
1814
+ with self.assertRaisesRegex(TypeError, 'is not a Python function'):
1815
+ inspect.Signature.from_function(42)
1816
+
1817
+ def test_signature_from_builtin_errors(self):
1818
+ with self.assertRaisesRegex(TypeError, 'is not a Python builtin'):
1819
+ inspect.Signature.from_builtin(42)
1820
+
1821
+ def test_signature_from_functionlike_object(self):
1822
+ def func(a,b, *args, kwonly=True, kwonlyreq, **kwargs):
1823
+ pass
1824
+
1825
+ class funclike:
1826
+ # Has to be callable, and have correct
1827
+ # __code__, __annotations__, __defaults__, __name__,
1828
+ # and __kwdefaults__ attributes
1829
+
1830
+ def __init__(self, func):
1831
+ self.__name__ = func.__name__
1832
+ self.__code__ = func.__code__
1833
+ self.__annotations__ = func.__annotations__
1834
+ self.__defaults__ = func.__defaults__
1835
+ self.__kwdefaults__ = func.__kwdefaults__
1836
+ self.func = func
1837
+
1838
+ def __call__(self, *args, **kwargs):
1839
+ return self.func(*args, **kwargs)
1840
+
1841
+ sig_func = inspect.Signature.from_function(func)
1842
+
1843
+ sig_funclike = inspect.Signature.from_function(funclike(func))
1844
+ self.assertEqual(sig_funclike, sig_func)
1845
+
1846
+ sig_funclike = inspect.signature(funclike(func))
1847
+ self.assertEqual(sig_funclike, sig_func)
1848
+
1849
+ # If object is not a duck type of function, then
1850
+ # signature will try to get a signature for its '__call__'
1851
+ # method
1852
+ fl = funclike(func)
1853
+ del fl.__defaults__
1854
+ self.assertEqual(self.signature(fl),
1855
+ ((('args', ..., ..., "var_positional"),
1856
+ ('kwargs', ..., ..., "var_keyword")),
1857
+ ...))
1858
+
1859
+ # Test with cython-like builtins:
1860
+ _orig_isdesc = inspect.ismethoddescriptor
1861
+ def _isdesc(obj):
1862
+ if hasattr(obj, '_builtinmock'):
1863
+ return True
1864
+ return _orig_isdesc(obj)
1865
+
1866
+ with unittest.mock.patch('inspect.ismethoddescriptor', _isdesc):
1867
+ builtin_func = funclike(func)
1868
+ # Make sure that our mock setup is working
1869
+ self.assertFalse(inspect.ismethoddescriptor(builtin_func))
1870
+ builtin_func._builtinmock = True
1871
+ self.assertTrue(inspect.ismethoddescriptor(builtin_func))
1872
+ self.assertEqual(inspect.signature(builtin_func), sig_func)
1873
+
1874
+ def test_signature_functionlike_class(self):
1875
+ # We only want to duck type function-like objects,
1876
+ # not classes.
1877
+
1878
+ def func(a,b, *args, kwonly=True, kwonlyreq, **kwargs):
1879
+ pass
1880
+
1881
+ class funclike:
1882
+ def __init__(self, marker):
1883
+ pass
1884
+
1885
+ __name__ = func.__name__
1886
+ __code__ = func.__code__
1887
+ __annotations__ = func.__annotations__
1888
+ __defaults__ = func.__defaults__
1889
+ __kwdefaults__ = func.__kwdefaults__
1890
+
1891
+ with self.assertRaisesRegex(TypeError, 'is not a Python function'):
1892
+ inspect.Signature.from_function(funclike)
1893
+
1894
+ self.assertEqual(str(inspect.signature(funclike)), '(marker)')
1895
+
1896
+ def test_signature_on_method(self):
1897
+ class Test:
1898
+ def __init__(*args):
1899
+ pass
1900
+ def m1(self, arg1, arg2=1) -> int:
1901
+ pass
1902
+ def m2(*args):
1903
+ pass
1904
+ def __call__(*, a):
1905
+ pass
1906
+
1907
+ self.assertEqual(self.signature(Test().m1),
1908
+ ((('arg1', ..., ..., "positional_or_keyword"),
1909
+ ('arg2', 1, ..., "positional_or_keyword")),
1910
+ int))
1911
+
1912
+ self.assertEqual(self.signature(Test().m2),
1913
+ ((('args', ..., ..., "var_positional"),),
1914
+ ...))
1915
+
1916
+ self.assertEqual(self.signature(Test),
1917
+ ((('args', ..., ..., "var_positional"),),
1918
+ ...))
1919
+
1920
+ with self.assertRaisesRegex(ValueError, 'invalid method signature'):
1921
+ self.signature(Test())
1922
+
1923
+ def test_signature_on_classmethod(self):
1924
+ class Test:
1925
+ @classmethod
1926
+ def foo(cls, arg1, *, arg2=1):
1927
+ pass
1928
+
1929
+ meth = Test().foo
1930
+ self.assertEqual(self.signature(meth),
1931
+ ((('arg1', ..., ..., "positional_or_keyword"),
1932
+ ('arg2', 1, ..., "keyword_only")),
1933
+ ...))
1934
+
1935
+ meth = Test.foo
1936
+ self.assertEqual(self.signature(meth),
1937
+ ((('arg1', ..., ..., "positional_or_keyword"),
1938
+ ('arg2', 1, ..., "keyword_only")),
1939
+ ...))
1940
+
1941
+ def test_signature_on_staticmethod(self):
1942
+ class Test:
1943
+ @staticmethod
1944
+ def foo(cls, *, arg):
1945
+ pass
1946
+
1947
+ meth = Test().foo
1948
+ self.assertEqual(self.signature(meth),
1949
+ ((('cls', ..., ..., "positional_or_keyword"),
1950
+ ('arg', ..., ..., "keyword_only")),
1951
+ ...))
1952
+
1953
+ meth = Test.foo
1954
+ self.assertEqual(self.signature(meth),
1955
+ ((('cls', ..., ..., "positional_or_keyword"),
1956
+ ('arg', ..., ..., "keyword_only")),
1957
+ ...))
1958
+
1959
+ def test_signature_on_partial(self):
1960
+ from functools import partial
1961
+
1962
+ Parameter = inspect.Parameter
1963
+
1964
+ def test():
1965
+ pass
1966
+
1967
+ self.assertEqual(self.signature(partial(test)), ((), ...))
1968
+
1969
+ with self.assertRaisesRegex(ValueError, "has incorrect arguments"):
1970
+ inspect.signature(partial(test, 1))
1971
+
1972
+ with self.assertRaisesRegex(ValueError, "has incorrect arguments"):
1973
+ inspect.signature(partial(test, a=1))
1974
+
1975
+ def test(a, b, *, c, d):
1976
+ pass
1977
+
1978
+ self.assertEqual(self.signature(partial(test)),
1979
+ ((('a', ..., ..., "positional_or_keyword"),
1980
+ ('b', ..., ..., "positional_or_keyword"),
1981
+ ('c', ..., ..., "keyword_only"),
1982
+ ('d', ..., ..., "keyword_only")),
1983
+ ...))
1984
+
1985
+ self.assertEqual(self.signature(partial(test, 1)),
1986
+ ((('b', ..., ..., "positional_or_keyword"),
1987
+ ('c', ..., ..., "keyword_only"),
1988
+ ('d', ..., ..., "keyword_only")),
1989
+ ...))
1990
+
1991
+ self.assertEqual(self.signature(partial(test, 1, c=2)),
1992
+ ((('b', ..., ..., "positional_or_keyword"),
1993
+ ('c', 2, ..., "keyword_only"),
1994
+ ('d', ..., ..., "keyword_only")),
1995
+ ...))
1996
+
1997
+ self.assertEqual(self.signature(partial(test, b=1, c=2)),
1998
+ ((('a', ..., ..., "positional_or_keyword"),
1999
+ ('b', 1, ..., "keyword_only"),
2000
+ ('c', 2, ..., "keyword_only"),
2001
+ ('d', ..., ..., "keyword_only")),
2002
+ ...))
2003
+
2004
+ self.assertEqual(self.signature(partial(test, 0, b=1, c=2)),
2005
+ ((('b', 1, ..., "keyword_only"),
2006
+ ('c', 2, ..., "keyword_only"),
2007
+ ('d', ..., ..., "keyword_only")),
2008
+ ...))
2009
+
2010
+ self.assertEqual(self.signature(partial(test, a=1)),
2011
+ ((('a', 1, ..., "keyword_only"),
2012
+ ('b', ..., ..., "keyword_only"),
2013
+ ('c', ..., ..., "keyword_only"),
2014
+ ('d', ..., ..., "keyword_only")),
2015
+ ...))
2016
+
2017
+ def test(a, *args, b, **kwargs):
2018
+ pass
2019
+
2020
+ self.assertEqual(self.signature(partial(test, 1)),
2021
+ ((('args', ..., ..., "var_positional"),
2022
+ ('b', ..., ..., "keyword_only"),
2023
+ ('kwargs', ..., ..., "var_keyword")),
2024
+ ...))
2025
+
2026
+ self.assertEqual(self.signature(partial(test, a=1)),
2027
+ ((('a', 1, ..., "keyword_only"),
2028
+ ('b', ..., ..., "keyword_only"),
2029
+ ('kwargs', ..., ..., "var_keyword")),
2030
+ ...))
2031
+
2032
+ self.assertEqual(self.signature(partial(test, 1, 2, 3)),
2033
+ ((('args', ..., ..., "var_positional"),
2034
+ ('b', ..., ..., "keyword_only"),
2035
+ ('kwargs', ..., ..., "var_keyword")),
2036
+ ...))
2037
+
2038
+ self.assertEqual(self.signature(partial(test, 1, 2, 3, test=True)),
2039
+ ((('args', ..., ..., "var_positional"),
2040
+ ('b', ..., ..., "keyword_only"),
2041
+ ('kwargs', ..., ..., "var_keyword")),
2042
+ ...))
2043
+
2044
+ self.assertEqual(self.signature(partial(test, 1, 2, 3, test=1, b=0)),
2045
+ ((('args', ..., ..., "var_positional"),
2046
+ ('b', 0, ..., "keyword_only"),
2047
+ ('kwargs', ..., ..., "var_keyword")),
2048
+ ...))
2049
+
2050
+ self.assertEqual(self.signature(partial(test, b=0)),
2051
+ ((('a', ..., ..., "positional_or_keyword"),
2052
+ ('args', ..., ..., "var_positional"),
2053
+ ('b', 0, ..., "keyword_only"),
2054
+ ('kwargs', ..., ..., "var_keyword")),
2055
+ ...))
2056
+
2057
+ self.assertEqual(self.signature(partial(test, b=0, test=1)),
2058
+ ((('a', ..., ..., "positional_or_keyword"),
2059
+ ('args', ..., ..., "var_positional"),
2060
+ ('b', 0, ..., "keyword_only"),
2061
+ ('kwargs', ..., ..., "var_keyword")),
2062
+ ...))
2063
+
2064
+ def test(a, b, c:int) -> 42:
2065
+ pass
2066
+
2067
+ sig = test.__signature__ = inspect.signature(test)
2068
+
2069
+ self.assertEqual(self.signature(partial(partial(test, 1))),
2070
+ ((('b', ..., ..., "positional_or_keyword"),
2071
+ ('c', ..., int, "positional_or_keyword")),
2072
+ 42))
2073
+
2074
+ self.assertEqual(self.signature(partial(partial(test, 1), 2)),
2075
+ ((('c', ..., int, "positional_or_keyword"),),
2076
+ 42))
2077
+
2078
+ psig = inspect.signature(partial(partial(test, 1), 2))
2079
+
2080
+ def foo(a):
2081
+ return a
2082
+ _foo = partial(partial(foo, a=10), a=20)
2083
+ self.assertEqual(self.signature(_foo),
2084
+ ((('a', 20, ..., "keyword_only"),),
2085
+ ...))
2086
+ # check that we don't have any side-effects in signature(),
2087
+ # and the partial object is still functioning
2088
+ self.assertEqual(_foo(), 20)
2089
+
2090
+ def foo(a, b, c):
2091
+ return a, b, c
2092
+ _foo = partial(partial(foo, 1, b=20), b=30)
2093
+
2094
+ self.assertEqual(self.signature(_foo),
2095
+ ((('b', 30, ..., "keyword_only"),
2096
+ ('c', ..., ..., "keyword_only")),
2097
+ ...))
2098
+ self.assertEqual(_foo(c=10), (1, 30, 10))
2099
+
2100
+ def foo(a, b, c, *, d):
2101
+ return a, b, c, d
2102
+ _foo = partial(partial(foo, d=20, c=20), b=10, d=30)
2103
+ self.assertEqual(self.signature(_foo),
2104
+ ((('a', ..., ..., "positional_or_keyword"),
2105
+ ('b', 10, ..., "keyword_only"),
2106
+ ('c', 20, ..., "keyword_only"),
2107
+ ('d', 30, ..., "keyword_only"),
2108
+ ),
2109
+ ...))
2110
+ ba = inspect.signature(_foo).bind(a=200, b=11)
2111
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (200, 11, 20, 30))
2112
+
2113
+ def foo(a=1, b=2, c=3):
2114
+ return a, b, c
2115
+ _foo = partial(foo, c=13) # (a=1, b=2, *, c=13)
2116
+
2117
+ ba = inspect.signature(_foo).bind(a=11)
2118
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (11, 2, 13))
2119
+
2120
+ ba = inspect.signature(_foo).bind(11, 12)
2121
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (11, 12, 13))
2122
+
2123
+ ba = inspect.signature(_foo).bind(11, b=12)
2124
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (11, 12, 13))
2125
+
2126
+ ba = inspect.signature(_foo).bind(b=12)
2127
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (1, 12, 13))
2128
+
2129
+ _foo = partial(_foo, b=10, c=20)
2130
+ ba = inspect.signature(_foo).bind(12)
2131
+ self.assertEqual(_foo(*ba.args, **ba.kwargs), (12, 10, 20))
2132
+
2133
+
2134
+ def foo(a, b, c, d, **kwargs):
2135
+ pass
2136
+ sig = inspect.signature(foo)
2137
+ params = sig.parameters.copy()
2138
+ params['a'] = params['a'].replace(kind=Parameter.POSITIONAL_ONLY)
2139
+ params['b'] = params['b'].replace(kind=Parameter.POSITIONAL_ONLY)
2140
+ foo.__signature__ = inspect.Signature(params.values())
2141
+ sig = inspect.signature(foo)
2142
+ self.assertEqual(str(sig), '(a, b, /, c, d, **kwargs)')
2143
+
2144
+ self.assertEqual(self.signature(partial(foo, 1)),
2145
+ ((('b', ..., ..., 'positional_only'),
2146
+ ('c', ..., ..., 'positional_or_keyword'),
2147
+ ('d', ..., ..., 'positional_or_keyword'),
2148
+ ('kwargs', ..., ..., 'var_keyword')),
2149
+ ...))
2150
+
2151
+ self.assertEqual(self.signature(partial(foo, 1, 2)),
2152
+ ((('c', ..., ..., 'positional_or_keyword'),
2153
+ ('d', ..., ..., 'positional_or_keyword'),
2154
+ ('kwargs', ..., ..., 'var_keyword')),
2155
+ ...))
2156
+
2157
+ self.assertEqual(self.signature(partial(foo, 1, 2, 3)),
2158
+ ((('d', ..., ..., 'positional_or_keyword'),
2159
+ ('kwargs', ..., ..., 'var_keyword')),
2160
+ ...))
2161
+
2162
+ self.assertEqual(self.signature(partial(foo, 1, 2, c=3)),
2163
+ ((('c', 3, ..., 'keyword_only'),
2164
+ ('d', ..., ..., 'keyword_only'),
2165
+ ('kwargs', ..., ..., 'var_keyword')),
2166
+ ...))
2167
+
2168
+ self.assertEqual(self.signature(partial(foo, 1, c=3)),
2169
+ ((('b', ..., ..., 'positional_only'),
2170
+ ('c', 3, ..., 'keyword_only'),
2171
+ ('d', ..., ..., 'keyword_only'),
2172
+ ('kwargs', ..., ..., 'var_keyword')),
2173
+ ...))
2174
+
2175
+ def test_signature_on_partialmethod(self):
2176
+ from functools import partialmethod
2177
+
2178
+ class Spam:
2179
+ def test():
2180
+ pass
2181
+ ham = partialmethod(test)
2182
+
2183
+ with self.assertRaisesRegex(ValueError, "has incorrect arguments"):
2184
+ inspect.signature(Spam.ham)
2185
+
2186
+ class Spam:
2187
+ def test(it, a, *, c) -> 'spam':
2188
+ pass
2189
+ ham = partialmethod(test, c=1)
2190
+
2191
+ self.assertEqual(self.signature(Spam.ham),
2192
+ ((('it', ..., ..., 'positional_or_keyword'),
2193
+ ('a', ..., ..., 'positional_or_keyword'),
2194
+ ('c', 1, ..., 'keyword_only')),
2195
+ 'spam'))
2196
+
2197
+ self.assertEqual(self.signature(Spam().ham),
2198
+ ((('a', ..., ..., 'positional_or_keyword'),
2199
+ ('c', 1, ..., 'keyword_only')),
2200
+ 'spam'))
2201
+
2202
+ def test_signature_on_fake_partialmethod(self):
2203
+ def foo(a): pass
2204
+ foo._partialmethod = 'spam'
2205
+ self.assertEqual(str(inspect.signature(foo)), '(a)')
2206
+
2207
+ def test_signature_on_decorated(self):
2208
+ import functools
2209
+
2210
+ def decorator(func):
2211
+ @functools.wraps(func)
2212
+ def wrapper(*args, **kwargs) -> int:
2213
+ return func(*args, **kwargs)
2214
+ return wrapper
2215
+
2216
+ class Foo:
2217
+ @decorator
2218
+ def bar(self, a, b):
2219
+ pass
2220
+
2221
+ self.assertEqual(self.signature(Foo.bar),
2222
+ ((('self', ..., ..., "positional_or_keyword"),
2223
+ ('a', ..., ..., "positional_or_keyword"),
2224
+ ('b', ..., ..., "positional_or_keyword")),
2225
+ ...))
2226
+
2227
+ self.assertEqual(self.signature(Foo().bar),
2228
+ ((('a', ..., ..., "positional_or_keyword"),
2229
+ ('b', ..., ..., "positional_or_keyword")),
2230
+ ...))
2231
+
2232
+ # Test that we handle method wrappers correctly
2233
+ def decorator(func):
2234
+ @functools.wraps(func)
2235
+ def wrapper(*args, **kwargs) -> int:
2236
+ return func(42, *args, **kwargs)
2237
+ sig = inspect.signature(func)
2238
+ new_params = tuple(sig.parameters.values())[1:]
2239
+ wrapper.__signature__ = sig.replace(parameters=new_params)
2240
+ return wrapper
2241
+
2242
+ class Foo:
2243
+ @decorator
2244
+ def __call__(self, a, b):
2245
+ pass
2246
+
2247
+ self.assertEqual(self.signature(Foo.__call__),
2248
+ ((('a', ..., ..., "positional_or_keyword"),
2249
+ ('b', ..., ..., "positional_or_keyword")),
2250
+ ...))
2251
+
2252
+ self.assertEqual(self.signature(Foo().__call__),
2253
+ ((('b', ..., ..., "positional_or_keyword"),),
2254
+ ...))
2255
+
2256
+ # Test we handle __signature__ partway down the wrapper stack
2257
+ def wrapped_foo_call():
2258
+ pass
2259
+ wrapped_foo_call.__wrapped__ = Foo.__call__
2260
+
2261
+ self.assertEqual(self.signature(wrapped_foo_call),
2262
+ ((('a', ..., ..., "positional_or_keyword"),
2263
+ ('b', ..., ..., "positional_or_keyword")),
2264
+ ...))
2265
+
2266
+
2267
+ def test_signature_on_class(self):
2268
+ class C:
2269
+ def __init__(self, a):
2270
+ pass
2271
+
2272
+ self.assertEqual(self.signature(C),
2273
+ ((('a', ..., ..., "positional_or_keyword"),),
2274
+ ...))
2275
+
2276
+ class CM(type):
2277
+ def __call__(cls, a):
2278
+ pass
2279
+ class C(metaclass=CM):
2280
+ def __init__(self, b):
2281
+ pass
2282
+
2283
+ self.assertEqual(self.signature(C),
2284
+ ((('a', ..., ..., "positional_or_keyword"),),
2285
+ ...))
2286
+
2287
+ class CM(type):
2288
+ def __new__(mcls, name, bases, dct, *, foo=1):
2289
+ return super().__new__(mcls, name, bases, dct)
2290
+ class C(metaclass=CM):
2291
+ def __init__(self, b):
2292
+ pass
2293
+
2294
+ self.assertEqual(self.signature(C),
2295
+ ((('b', ..., ..., "positional_or_keyword"),),
2296
+ ...))
2297
+
2298
+ self.assertEqual(self.signature(CM),
2299
+ ((('name', ..., ..., "positional_or_keyword"),
2300
+ ('bases', ..., ..., "positional_or_keyword"),
2301
+ ('dct', ..., ..., "positional_or_keyword"),
2302
+ ('foo', 1, ..., "keyword_only")),
2303
+ ...))
2304
+
2305
+ class CMM(type):
2306
+ def __new__(mcls, name, bases, dct, *, foo=1):
2307
+ return super().__new__(mcls, name, bases, dct)
2308
+ def __call__(cls, nm, bs, dt):
2309
+ return type(nm, bs, dt)
2310
+ class CM(type, metaclass=CMM):
2311
+ def __new__(mcls, name, bases, dct, *, bar=2):
2312
+ return super().__new__(mcls, name, bases, dct)
2313
+ class C(metaclass=CM):
2314
+ def __init__(self, b):
2315
+ pass
2316
+
2317
+ self.assertEqual(self.signature(CMM),
2318
+ ((('name', ..., ..., "positional_or_keyword"),
2319
+ ('bases', ..., ..., "positional_or_keyword"),
2320
+ ('dct', ..., ..., "positional_or_keyword"),
2321
+ ('foo', 1, ..., "keyword_only")),
2322
+ ...))
2323
+
2324
+ self.assertEqual(self.signature(CM),
2325
+ ((('nm', ..., ..., "positional_or_keyword"),
2326
+ ('bs', ..., ..., "positional_or_keyword"),
2327
+ ('dt', ..., ..., "positional_or_keyword")),
2328
+ ...))
2329
+
2330
+ self.assertEqual(self.signature(C),
2331
+ ((('b', ..., ..., "positional_or_keyword"),),
2332
+ ...))
2333
+
2334
+ class CM(type):
2335
+ def __init__(cls, name, bases, dct, *, bar=2):
2336
+ return super().__init__(name, bases, dct)
2337
+ class C(metaclass=CM):
2338
+ def __init__(self, b):
2339
+ pass
2340
+
2341
+ self.assertEqual(self.signature(CM),
2342
+ ((('name', ..., ..., "positional_or_keyword"),
2343
+ ('bases', ..., ..., "positional_or_keyword"),
2344
+ ('dct', ..., ..., "positional_or_keyword"),
2345
+ ('bar', 2, ..., "keyword_only")),
2346
+ ...))
2347
+
2348
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
2349
+ "Signature information for builtins requires docstrings")
2350
+ def test_signature_on_class_without_init(self):
2351
+ # Test classes without user-defined __init__ or __new__
2352
+ class C: pass
2353
+ self.assertEqual(str(inspect.signature(C)), '()')
2354
+ class D(C): pass
2355
+ self.assertEqual(str(inspect.signature(D)), '()')
2356
+
2357
+ # Test meta-classes without user-defined __init__ or __new__
2358
+ class C(type): pass
2359
+ class D(C): pass
2360
+ with self.assertRaisesRegex(ValueError, "callable.*is not supported"):
2361
+ self.assertEqual(inspect.signature(C), None)
2362
+ with self.assertRaisesRegex(ValueError, "callable.*is not supported"):
2363
+ self.assertEqual(inspect.signature(D), None)
2364
+
2365
+ @unittest.skipIf(MISSING_C_DOCSTRINGS,
2366
+ "Signature information for builtins requires docstrings")
2367
+ def test_signature_on_builtin_class(self):
2368
+ self.assertEqual(str(inspect.signature(_pickle.Pickler)),
2369
+ '(file, protocol=None, fix_imports=True)')
2370
+
2371
+ class P(_pickle.Pickler): pass
2372
+ class EmptyTrait: pass
2373
+ class P2(EmptyTrait, P): pass
2374
+ self.assertEqual(str(inspect.signature(P)),
2375
+ '(file, protocol=None, fix_imports=True)')
2376
+ self.assertEqual(str(inspect.signature(P2)),
2377
+ '(file, protocol=None, fix_imports=True)')
2378
+
2379
+ class P3(P2):
2380
+ def __init__(self, spam):
2381
+ pass
2382
+ self.assertEqual(str(inspect.signature(P3)), '(spam)')
2383
+
2384
+ class MetaP(type):
2385
+ def __call__(cls, foo, bar):
2386
+ pass
2387
+ class P4(P2, metaclass=MetaP):
2388
+ pass
2389
+ self.assertEqual(str(inspect.signature(P4)), '(foo, bar)')
2390
+
2391
+ def test_signature_on_callable_objects(self):
2392
+ class Foo:
2393
+ def __call__(self, a):
2394
+ pass
2395
+
2396
+ self.assertEqual(self.signature(Foo()),
2397
+ ((('a', ..., ..., "positional_or_keyword"),),
2398
+ ...))
2399
+
2400
+ class Spam:
2401
+ pass
2402
+ with self.assertRaisesRegex(TypeError, "is not a callable object"):
2403
+ inspect.signature(Spam())
2404
+
2405
+ class Bar(Spam, Foo):
2406
+ pass
2407
+
2408
+ self.assertEqual(self.signature(Bar()),
2409
+ ((('a', ..., ..., "positional_or_keyword"),),
2410
+ ...))
2411
+
2412
+ class Wrapped:
2413
+ pass
2414
+ Wrapped.__wrapped__ = lambda a: None
2415
+ self.assertEqual(self.signature(Wrapped),
2416
+ ((('a', ..., ..., "positional_or_keyword"),),
2417
+ ...))
2418
+ # wrapper loop:
2419
+ Wrapped.__wrapped__ = Wrapped
2420
+ with self.assertRaisesRegex(ValueError, 'wrapper loop'):
2421
+ self.signature(Wrapped)
2422
+
2423
+ def test_signature_on_lambdas(self):
2424
+ self.assertEqual(self.signature((lambda a=10: a)),
2425
+ ((('a', 10, ..., "positional_or_keyword"),),
2426
+ ...))
2427
+
2428
+ def test_signature_equality(self):
2429
+ def foo(a, *, b:int) -> float: pass
2430
+ self.assertNotEqual(inspect.signature(foo), 42)
2431
+
2432
+ def bar(a, *, b:int) -> float: pass
2433
+ self.assertEqual(inspect.signature(foo), inspect.signature(bar))
2434
+
2435
+ def bar(a, *, b:int) -> int: pass
2436
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2437
+
2438
+ def bar(a, *, b:int): pass
2439
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2440
+
2441
+ def bar(a, *, b:int=42) -> float: pass
2442
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2443
+
2444
+ def bar(a, *, c) -> float: pass
2445
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2446
+
2447
+ def bar(a, b:int) -> float: pass
2448
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2449
+ def spam(b:int, a) -> float: pass
2450
+ self.assertNotEqual(inspect.signature(spam), inspect.signature(bar))
2451
+
2452
+ def foo(*, a, b, c): pass
2453
+ def bar(*, c, b, a): pass
2454
+ self.assertEqual(inspect.signature(foo), inspect.signature(bar))
2455
+
2456
+ def foo(*, a=1, b, c): pass
2457
+ def bar(*, c, b, a=1): pass
2458
+ self.assertEqual(inspect.signature(foo), inspect.signature(bar))
2459
+
2460
+ def foo(pos, *, a=1, b, c): pass
2461
+ def bar(pos, *, c, b, a=1): pass
2462
+ self.assertEqual(inspect.signature(foo), inspect.signature(bar))
2463
+
2464
+ def foo(pos, *, a, b, c): pass
2465
+ def bar(pos, *, c, b, a=1): pass
2466
+ self.assertNotEqual(inspect.signature(foo), inspect.signature(bar))
2467
+
2468
+ def foo(pos, *args, a=42, b, c, **kwargs:int): pass
2469
+ def bar(pos, *args, c, b, a=42, **kwargs:int): pass
2470
+ self.assertEqual(inspect.signature(foo), inspect.signature(bar))
2471
+
2472
+ def test_signature_unhashable(self):
2473
+ def foo(a): pass
2474
+ sig = inspect.signature(foo)
2475
+ with self.assertRaisesRegex(TypeError, 'unhashable type'):
2476
+ hash(sig)
2477
+
2478
+ def test_signature_str(self):
2479
+ def foo(a:int=1, *, b, c=None, **kwargs) -> 42:
2480
+ pass
2481
+ self.assertEqual(str(inspect.signature(foo)),
2482
+ '(a:int=1, *, b, c=None, **kwargs) -> 42')
2483
+
2484
+ def foo(a:int=1, *args, b, c=None, **kwargs) -> 42:
2485
+ pass
2486
+ self.assertEqual(str(inspect.signature(foo)),
2487
+ '(a:int=1, *args, b, c=None, **kwargs) -> 42')
2488
+
2489
+ def foo():
2490
+ pass
2491
+ self.assertEqual(str(inspect.signature(foo)), '()')
2492
+
2493
+ def test_signature_str_positional_only(self):
2494
+ P = inspect.Parameter
2495
+ S = inspect.Signature
2496
+
2497
+ def test(a_po, *, b, **kwargs):
2498
+ return a_po, kwargs
2499
+
2500
+ sig = inspect.signature(test)
2501
+ new_params = list(sig.parameters.values())
2502
+ new_params[0] = new_params[0].replace(kind=P.POSITIONAL_ONLY)
2503
+ test.__signature__ = sig.replace(parameters=new_params)
2504
+
2505
+ self.assertEqual(str(inspect.signature(test)),
2506
+ '(a_po, /, *, b, **kwargs)')
2507
+
2508
+ self.assertEqual(str(S(parameters=[P('foo', P.POSITIONAL_ONLY)])),
2509
+ '(foo, /)')
2510
+
2511
+ self.assertEqual(str(S(parameters=[
2512
+ P('foo', P.POSITIONAL_ONLY),
2513
+ P('bar', P.VAR_KEYWORD)])),
2514
+ '(foo, /, **bar)')
2515
+
2516
+ self.assertEqual(str(S(parameters=[
2517
+ P('foo', P.POSITIONAL_ONLY),
2518
+ P('bar', P.VAR_POSITIONAL)])),
2519
+ '(foo, /, *bar)')
2520
+
2521
+ def test_signature_replace_anno(self):
2522
+ def test() -> 42:
2523
+ pass
2524
+
2525
+ sig = inspect.signature(test)
2526
+ sig = sig.replace(return_annotation=None)
2527
+ self.assertIs(sig.return_annotation, None)
2528
+ sig = sig.replace(return_annotation=sig.empty)
2529
+ self.assertIs(sig.return_annotation, sig.empty)
2530
+ sig = sig.replace(return_annotation=42)
2531
+ self.assertEqual(sig.return_annotation, 42)
2532
+ self.assertEqual(sig, inspect.signature(test))
2533
+
2534
+ def test_signature_on_mangled_parameters(self):
2535
+ class Spam:
2536
+ def foo(self, __p1:1=2, *, __p2:2=3):
2537
+ pass
2538
+ class Ham(Spam):
2539
+ pass
2540
+
2541
+ self.assertEqual(self.signature(Spam.foo),
2542
+ ((('self', ..., ..., "positional_or_keyword"),
2543
+ ('_Spam__p1', 2, 1, "positional_or_keyword"),
2544
+ ('_Spam__p2', 3, 2, "keyword_only")),
2545
+ ...))
2546
+
2547
+ self.assertEqual(self.signature(Spam.foo),
2548
+ self.signature(Ham.foo))
2549
+
2550
+
2551
+ class TestParameterObject(unittest.TestCase):
2552
+ def test_signature_parameter_kinds(self):
2553
+ P = inspect.Parameter
2554
+ self.assertTrue(P.POSITIONAL_ONLY < P.POSITIONAL_OR_KEYWORD < \
2555
+ P.VAR_POSITIONAL < P.KEYWORD_ONLY < P.VAR_KEYWORD)
2556
+
2557
+ self.assertEqual(str(P.POSITIONAL_ONLY), 'POSITIONAL_ONLY')
2558
+ self.assertTrue('POSITIONAL_ONLY' in repr(P.POSITIONAL_ONLY))
2559
+
2560
+ def test_signature_parameter_object(self):
2561
+ p = inspect.Parameter('foo', default=10,
2562
+ kind=inspect.Parameter.POSITIONAL_ONLY)
2563
+ self.assertEqual(p.name, 'foo')
2564
+ self.assertEqual(p.default, 10)
2565
+ self.assertIs(p.annotation, p.empty)
2566
+ self.assertEqual(p.kind, inspect.Parameter.POSITIONAL_ONLY)
2567
+
2568
+ with self.assertRaisesRegex(ValueError, 'invalid value'):
2569
+ inspect.Parameter('foo', default=10, kind='123')
2570
+
2571
+ with self.assertRaisesRegex(ValueError, 'not a valid parameter name'):
2572
+ inspect.Parameter('1', kind=inspect.Parameter.VAR_KEYWORD)
2573
+
2574
+ with self.assertRaisesRegex(TypeError, 'name must be a str'):
2575
+ inspect.Parameter(None, kind=inspect.Parameter.VAR_KEYWORD)
2576
+
2577
+ with self.assertRaisesRegex(ValueError,
2578
+ 'is not a valid parameter name'):
2579
+ inspect.Parameter('$', kind=inspect.Parameter.VAR_KEYWORD)
2580
+
2581
+ with self.assertRaisesRegex(ValueError, 'cannot have default values'):
2582
+ inspect.Parameter('a', default=42,
2583
+ kind=inspect.Parameter.VAR_KEYWORD)
2584
+
2585
+ with self.assertRaisesRegex(ValueError, 'cannot have default values'):
2586
+ inspect.Parameter('a', default=42,
2587
+ kind=inspect.Parameter.VAR_POSITIONAL)
2588
+
2589
+ p = inspect.Parameter('a', default=42,
2590
+ kind=inspect.Parameter.POSITIONAL_OR_KEYWORD)
2591
+ with self.assertRaisesRegex(ValueError, 'cannot have default values'):
2592
+ p.replace(kind=inspect.Parameter.VAR_POSITIONAL)
2593
+
2594
+ self.assertTrue(repr(p).startswith('<Parameter'))
2595
+
2596
+ def test_signature_parameter_equality(self):
2597
+ P = inspect.Parameter
2598
+ p = P('foo', default=42, kind=inspect.Parameter.KEYWORD_ONLY)
2599
+
2600
+ self.assertEqual(p, p)
2601
+ self.assertNotEqual(p, 42)
2602
+
2603
+ self.assertEqual(p, P('foo', default=42,
2604
+ kind=inspect.Parameter.KEYWORD_ONLY))
2605
+
2606
+ def test_signature_parameter_unhashable(self):
2607
+ p = inspect.Parameter('foo', default=42,
2608
+ kind=inspect.Parameter.KEYWORD_ONLY)
2609
+
2610
+ with self.assertRaisesRegex(TypeError, 'unhashable type'):
2611
+ hash(p)
2612
+
2613
+ def test_signature_parameter_replace(self):
2614
+ p = inspect.Parameter('foo', default=42,
2615
+ kind=inspect.Parameter.KEYWORD_ONLY)
2616
+
2617
+ self.assertIsNot(p, p.replace())
2618
+ self.assertEqual(p, p.replace())
2619
+
2620
+ p2 = p.replace(annotation=1)
2621
+ self.assertEqual(p2.annotation, 1)
2622
+ p2 = p2.replace(annotation=p2.empty)
2623
+ self.assertEqual(p, p2)
2624
+
2625
+ p2 = p2.replace(name='bar')
2626
+ self.assertEqual(p2.name, 'bar')
2627
+ self.assertNotEqual(p2, p)
2628
+
2629
+ with self.assertRaisesRegex(ValueError,
2630
+ 'name is a required attribute'):
2631
+ p2 = p2.replace(name=p2.empty)
2632
+
2633
+ p2 = p2.replace(name='foo', default=None)
2634
+ self.assertIs(p2.default, None)
2635
+ self.assertNotEqual(p2, p)
2636
+
2637
+ p2 = p2.replace(name='foo', default=p2.empty)
2638
+ self.assertIs(p2.default, p2.empty)
2639
+
2640
+
2641
+ p2 = p2.replace(default=42, kind=p2.POSITIONAL_OR_KEYWORD)
2642
+ self.assertEqual(p2.kind, p2.POSITIONAL_OR_KEYWORD)
2643
+ self.assertNotEqual(p2, p)
2644
+
2645
+ with self.assertRaisesRegex(ValueError, 'invalid value for'):
2646
+ p2 = p2.replace(kind=p2.empty)
2647
+
2648
+ p2 = p2.replace(kind=p2.KEYWORD_ONLY)
2649
+ self.assertEqual(p2, p)
2650
+
2651
+ def test_signature_parameter_positional_only(self):
2652
+ with self.assertRaisesRegex(TypeError, 'name must be a str'):
2653
+ inspect.Parameter(None, kind=inspect.Parameter.POSITIONAL_ONLY)
2654
+
2655
+ def test_signature_parameter_immutability(self):
2656
+ p = inspect.Parameter('spam', kind=inspect.Parameter.KEYWORD_ONLY)
2657
+
2658
+ with self.assertRaises(AttributeError):
2659
+ p.foo = 'bar'
2660
+
2661
+ with self.assertRaises(AttributeError):
2662
+ p.kind = 123
2663
+
2664
+
2665
+ class TestSignatureBind(unittest.TestCase):
2666
+ @staticmethod
2667
+ def call(func, *args, **kwargs):
2668
+ sig = inspect.signature(func)
2669
+ ba = sig.bind(*args, **kwargs)
2670
+ return func(*ba.args, **ba.kwargs)
2671
+
2672
+ def test_signature_bind_empty(self):
2673
+ def test():
2674
+ return 42
2675
+
2676
+ self.assertEqual(self.call(test), 42)
2677
+ with self.assertRaisesRegex(TypeError, 'too many positional arguments'):
2678
+ self.call(test, 1)
2679
+ with self.assertRaisesRegex(TypeError, 'too many positional arguments'):
2680
+ self.call(test, 1, spam=10)
2681
+ with self.assertRaisesRegex(TypeError, 'too many keyword arguments'):
2682
+ self.call(test, spam=1)
2683
+
2684
+ def test_signature_bind_var(self):
2685
+ def test(*args, **kwargs):
2686
+ return args, kwargs
2687
+
2688
+ self.assertEqual(self.call(test), ((), {}))
2689
+ self.assertEqual(self.call(test, 1), ((1,), {}))
2690
+ self.assertEqual(self.call(test, 1, 2), ((1, 2), {}))
2691
+ self.assertEqual(self.call(test, foo='bar'), ((), {'foo': 'bar'}))
2692
+ self.assertEqual(self.call(test, 1, foo='bar'), ((1,), {'foo': 'bar'}))
2693
+ self.assertEqual(self.call(test, args=10), ((), {'args': 10}))
2694
+ self.assertEqual(self.call(test, 1, 2, foo='bar'),
2695
+ ((1, 2), {'foo': 'bar'}))
2696
+
2697
+ def test_signature_bind_just_args(self):
2698
+ def test(a, b, c):
2699
+ return a, b, c
2700
+
2701
+ self.assertEqual(self.call(test, 1, 2, 3), (1, 2, 3))
2702
+
2703
+ with self.assertRaisesRegex(TypeError, 'too many positional arguments'):
2704
+ self.call(test, 1, 2, 3, 4)
2705
+
2706
+ with self.assertRaisesRegex(TypeError, "'b' parameter lacking default"):
2707
+ self.call(test, 1)
2708
+
2709
+ with self.assertRaisesRegex(TypeError, "'a' parameter lacking default"):
2710
+ self.call(test)
2711
+
2712
+ def test(a, b, c=10):
2713
+ return a, b, c
2714
+ self.assertEqual(self.call(test, 1, 2, 3), (1, 2, 3))
2715
+ self.assertEqual(self.call(test, 1, 2), (1, 2, 10))
2716
+
2717
+ def test(a=1, b=2, c=3):
2718
+ return a, b, c
2719
+ self.assertEqual(self.call(test, a=10, c=13), (10, 2, 13))
2720
+ self.assertEqual(self.call(test, a=10), (10, 2, 3))
2721
+ self.assertEqual(self.call(test, b=10), (1, 10, 3))
2722
+
2723
+ def test_signature_bind_varargs_order(self):
2724
+ def test(*args):
2725
+ return args
2726
+
2727
+ self.assertEqual(self.call(test), ())
2728
+ self.assertEqual(self.call(test, 1, 2, 3), (1, 2, 3))
2729
+
2730
+ def test_signature_bind_args_and_varargs(self):
2731
+ def test(a, b, c=3, *args):
2732
+ return a, b, c, args
2733
+
2734
+ self.assertEqual(self.call(test, 1, 2, 3, 4, 5), (1, 2, 3, (4, 5)))
2735
+ self.assertEqual(self.call(test, 1, 2), (1, 2, 3, ()))
2736
+ self.assertEqual(self.call(test, b=1, a=2), (2, 1, 3, ()))
2737
+ self.assertEqual(self.call(test, 1, b=2), (1, 2, 3, ()))
2738
+
2739
+ with self.assertRaisesRegex(TypeError,
2740
+ "multiple values for argument 'c'"):
2741
+ self.call(test, 1, 2, 3, c=4)
2742
+
2743
+ def test_signature_bind_just_kwargs(self):
2744
+ def test(**kwargs):
2745
+ return kwargs
2746
+
2747
+ self.assertEqual(self.call(test), {})
2748
+ self.assertEqual(self.call(test, foo='bar', spam='ham'),
2749
+ {'foo': 'bar', 'spam': 'ham'})
2750
+
2751
+ def test_signature_bind_args_and_kwargs(self):
2752
+ def test(a, b, c=3, **kwargs):
2753
+ return a, b, c, kwargs
2754
+
2755
+ self.assertEqual(self.call(test, 1, 2), (1, 2, 3, {}))
2756
+ self.assertEqual(self.call(test, 1, 2, foo='bar', spam='ham'),
2757
+ (1, 2, 3, {'foo': 'bar', 'spam': 'ham'}))
2758
+ self.assertEqual(self.call(test, b=2, a=1, foo='bar', spam='ham'),
2759
+ (1, 2, 3, {'foo': 'bar', 'spam': 'ham'}))
2760
+ self.assertEqual(self.call(test, a=1, b=2, foo='bar', spam='ham'),
2761
+ (1, 2, 3, {'foo': 'bar', 'spam': 'ham'}))
2762
+ self.assertEqual(self.call(test, 1, b=2, foo='bar', spam='ham'),
2763
+ (1, 2, 3, {'foo': 'bar', 'spam': 'ham'}))
2764
+ self.assertEqual(self.call(test, 1, b=2, c=4, foo='bar', spam='ham'),
2765
+ (1, 2, 4, {'foo': 'bar', 'spam': 'ham'}))
2766
+ self.assertEqual(self.call(test, 1, 2, 4, foo='bar'),
2767
+ (1, 2, 4, {'foo': 'bar'}))
2768
+ self.assertEqual(self.call(test, c=5, a=4, b=3),
2769
+ (4, 3, 5, {}))
2770
+
2771
+ def test_signature_bind_kwonly(self):
2772
+ def test(*, foo):
2773
+ return foo
2774
+ with self.assertRaisesRegex(TypeError,
2775
+ 'too many positional arguments'):
2776
+ self.call(test, 1)
2777
+ self.assertEqual(self.call(test, foo=1), 1)
2778
+
2779
+ def test(a, *, foo=1, bar):
2780
+ return foo
2781
+ with self.assertRaisesRegex(TypeError,
2782
+ "'bar' parameter lacking default value"):
2783
+ self.call(test, 1)
2784
+
2785
+ def test(foo, *, bar):
2786
+ return foo, bar
2787
+ self.assertEqual(self.call(test, 1, bar=2), (1, 2))
2788
+ self.assertEqual(self.call(test, bar=2, foo=1), (1, 2))
2789
+
2790
+ with self.assertRaisesRegex(TypeError,
2791
+ 'too many keyword arguments'):
2792
+ self.call(test, bar=2, foo=1, spam=10)
2793
+
2794
+ with self.assertRaisesRegex(TypeError,
2795
+ 'too many positional arguments'):
2796
+ self.call(test, 1, 2)
2797
+
2798
+ with self.assertRaisesRegex(TypeError,
2799
+ 'too many positional arguments'):
2800
+ self.call(test, 1, 2, bar=2)
2801
+
2802
+ with self.assertRaisesRegex(TypeError,
2803
+ 'too many keyword arguments'):
2804
+ self.call(test, 1, bar=2, spam='ham')
2805
+
2806
+ with self.assertRaisesRegex(TypeError,
2807
+ "'bar' parameter lacking default value"):
2808
+ self.call(test, 1)
2809
+
2810
+ def test(foo, *, bar, **bin):
2811
+ return foo, bar, bin
2812
+ self.assertEqual(self.call(test, 1, bar=2), (1, 2, {}))
2813
+ self.assertEqual(self.call(test, foo=1, bar=2), (1, 2, {}))
2814
+ self.assertEqual(self.call(test, 1, bar=2, spam='ham'),
2815
+ (1, 2, {'spam': 'ham'}))
2816
+ self.assertEqual(self.call(test, spam='ham', foo=1, bar=2),
2817
+ (1, 2, {'spam': 'ham'}))
2818
+ with self.assertRaisesRegex(TypeError,
2819
+ "'foo' parameter lacking default value"):
2820
+ self.call(test, spam='ham', bar=2)
2821
+ self.assertEqual(self.call(test, 1, bar=2, bin=1, spam=10),
2822
+ (1, 2, {'bin': 1, 'spam': 10}))
2823
+
2824
+ def test_signature_bind_arguments(self):
2825
+ def test(a, *args, b, z=100, **kwargs):
2826
+ pass
2827
+ sig = inspect.signature(test)
2828
+ ba = sig.bind(10, 20, b=30, c=40, args=50, kwargs=60)
2829
+ # we won't have 'z' argument in the bound arguments object, as we didn't
2830
+ # pass it to the 'bind'
2831
+ self.assertEqual(tuple(ba.arguments.items()),
2832
+ (('a', 10), ('args', (20,)), ('b', 30),
2833
+ ('kwargs', {'c': 40, 'args': 50, 'kwargs': 60})))
2834
+ self.assertEqual(ba.kwargs,
2835
+ {'b': 30, 'c': 40, 'args': 50, 'kwargs': 60})
2836
+ self.assertEqual(ba.args, (10, 20))
2837
+
2838
+ def test_signature_bind_positional_only(self):
2839
+ P = inspect.Parameter
2840
+
2841
+ def test(a_po, b_po, c_po=3, foo=42, *, bar=50, **kwargs):
2842
+ return a_po, b_po, c_po, foo, bar, kwargs
2843
+
2844
+ sig = inspect.signature(test)
2845
+ new_params = collections.OrderedDict(tuple(sig.parameters.items()))
2846
+ for name in ('a_po', 'b_po', 'c_po'):
2847
+ new_params[name] = new_params[name].replace(kind=P.POSITIONAL_ONLY)
2848
+ new_sig = sig.replace(parameters=new_params.values())
2849
+ test.__signature__ = new_sig
2850
+
2851
+ self.assertEqual(self.call(test, 1, 2, 4, 5, bar=6),
2852
+ (1, 2, 4, 5, 6, {}))
2853
+
2854
+ self.assertEqual(self.call(test, 1, 2),
2855
+ (1, 2, 3, 42, 50, {}))
2856
+
2857
+ self.assertEqual(self.call(test, 1, 2, foo=4, bar=5),
2858
+ (1, 2, 3, 4, 5, {}))
2859
+
2860
+ with self.assertRaisesRegex(TypeError, "but was passed as a keyword"):
2861
+ self.call(test, 1, 2, foo=4, bar=5, c_po=10)
2862
+
2863
+ with self.assertRaisesRegex(TypeError, "parameter is positional only"):
2864
+ self.call(test, 1, 2, c_po=4)
2865
+
2866
+ with self.assertRaisesRegex(TypeError, "parameter is positional only"):
2867
+ self.call(test, a_po=1, b_po=2)
2868
+
2869
+ def test_signature_bind_with_self_arg(self):
2870
+ # Issue #17071: one of the parameters is named "self
2871
+ def test(a, self, b):
2872
+ pass
2873
+ sig = inspect.signature(test)
2874
+ ba = sig.bind(1, 2, 3)
2875
+ self.assertEqual(ba.args, (1, 2, 3))
2876
+ ba = sig.bind(1, self=2, b=3)
2877
+ self.assertEqual(ba.args, (1, 2, 3))
2878
+
2879
+ def test_signature_bind_vararg_name(self):
2880
+ def test(a, *args):
2881
+ return a, args
2882
+ sig = inspect.signature(test)
2883
+
2884
+ with self.assertRaisesRegex(TypeError, "too many keyword arguments"):
2885
+ sig.bind(a=0, args=1)
2886
+
2887
+ def test(*args, **kwargs):
2888
+ return args, kwargs
2889
+ self.assertEqual(self.call(test, args=1), ((), {'args': 1}))
2890
+
2891
+ sig = inspect.signature(test)
2892
+ ba = sig.bind(args=1)
2893
+ self.assertEqual(ba.arguments, {'kwargs': {'args': 1}})
2894
+
2895
+
2896
+ class TestBoundArguments(unittest.TestCase):
2897
+ def test_signature_bound_arguments_unhashable(self):
2898
+ def foo(a): pass
2899
+ ba = inspect.signature(foo).bind(1)
2900
+
2901
+ with self.assertRaisesRegex(TypeError, 'unhashable type'):
2902
+ hash(ba)
2903
+
2904
+ def test_signature_bound_arguments_equality(self):
2905
+ def foo(a): pass
2906
+ ba = inspect.signature(foo).bind(1)
2907
+ self.assertEqual(ba, ba)
2908
+
2909
+ ba2 = inspect.signature(foo).bind(1)
2910
+ self.assertEqual(ba, ba2)
2911
+
2912
+ ba3 = inspect.signature(foo).bind(2)
2913
+ self.assertNotEqual(ba, ba3)
2914
+ ba3.arguments['a'] = 1
2915
+ self.assertEqual(ba, ba3)
2916
+
2917
+ def bar(b): pass
2918
+ ba4 = inspect.signature(bar).bind(1)
2919
+ self.assertNotEqual(ba, ba4)
2920
+
2921
+
2922
+ class TestSignaturePrivateHelpers(unittest.TestCase):
2923
+ def test_signature_get_bound_param(self):
2924
+ getter = inspect._signature_get_bound_param
2925
+
2926
+ self.assertEqual(getter('($self)'), 'self')
2927
+ self.assertEqual(getter('($self, obj)'), 'self')
2928
+ self.assertEqual(getter('($cls, /, obj)'), 'cls')
2929
+
2930
+ def _strip_non_python_syntax(self, input,
2931
+ clean_signature, self_parameter, last_positional_only):
2932
+ computed_clean_signature, \
2933
+ computed_self_parameter, \
2934
+ computed_last_positional_only = \
2935
+ inspect._signature_strip_non_python_syntax(input)
2936
+ self.assertEqual(computed_clean_signature, clean_signature)
2937
+ self.assertEqual(computed_self_parameter, self_parameter)
2938
+ self.assertEqual(computed_last_positional_only, last_positional_only)
2939
+
2940
+ def test_signature_strip_non_python_syntax(self):
2941
+ self._strip_non_python_syntax(
2942
+ "($module, /, path, mode, *, dir_fd=None, " +
2943
+ "effective_ids=False,\n follow_symlinks=True)",
2944
+ "(module, path, mode, *, dir_fd=None, " +
2945
+ "effective_ids=False, follow_symlinks=True)",
2946
+ 0,
2947
+ 0)
2948
+
2949
+ self._strip_non_python_syntax(
2950
+ "($module, word, salt, /)",
2951
+ "(module, word, salt)",
2952
+ 0,
2953
+ 2)
2954
+
2955
+ self._strip_non_python_syntax(
2956
+ "(x, y=None, z=None, /)",
2957
+ "(x, y=None, z=None)",
2958
+ None,
2959
+ 2)
2960
+
2961
+ self._strip_non_python_syntax(
2962
+ "(x, y=None, z=None)",
2963
+ "(x, y=None, z=None)",
2964
+ None,
2965
+ None)
2966
+
2967
+ self._strip_non_python_syntax(
2968
+ "(x,\n y=None,\n z = None )",
2969
+ "(x, y=None, z=None)",
2970
+ None,
2971
+ None)
2972
+
2973
+ self._strip_non_python_syntax(
2974
+ "",
2975
+ "",
2976
+ None,
2977
+ None)
2978
+
2979
+ self._strip_non_python_syntax(
2980
+ None,
2981
+ None,
2982
+ None,
2983
+ None)
2984
+
2985
+
2986
+ class TestUnwrap(unittest.TestCase):
2987
+
2988
+ def test_unwrap_one(self):
2989
+ def func(a, b):
2990
+ return a + b
2991
+ wrapper = functools.lru_cache(maxsize=20)(func)
2992
+ self.assertIs(inspect.unwrap(wrapper), func)
2993
+
2994
+ def test_unwrap_several(self):
2995
+ def func(a, b):
2996
+ return a + b
2997
+ wrapper = func
2998
+ for __ in range(10):
2999
+ @functools.wraps(wrapper)
3000
+ def wrapper():
3001
+ pass
3002
+ self.assertIsNot(wrapper.__wrapped__, func)
3003
+ self.assertIs(inspect.unwrap(wrapper), func)
3004
+
3005
+ def test_stop(self):
3006
+ def func1(a, b):
3007
+ return a + b
3008
+ @functools.wraps(func1)
3009
+ def func2():
3010
+ pass
3011
+ @functools.wraps(func2)
3012
+ def wrapper():
3013
+ pass
3014
+ func2.stop_here = 1
3015
+ unwrapped = inspect.unwrap(wrapper,
3016
+ stop=(lambda f: hasattr(f, "stop_here")))
3017
+ self.assertIs(unwrapped, func2)
3018
+
3019
+ def test_cycle(self):
3020
+ def func1(): pass
3021
+ func1.__wrapped__ = func1
3022
+ with self.assertRaisesRegex(ValueError, 'wrapper loop'):
3023
+ inspect.unwrap(func1)
3024
+
3025
+ def func2(): pass
3026
+ func2.__wrapped__ = func1
3027
+ func1.__wrapped__ = func2
3028
+ with self.assertRaisesRegex(ValueError, 'wrapper loop'):
3029
+ inspect.unwrap(func1)
3030
+ with self.assertRaisesRegex(ValueError, 'wrapper loop'):
3031
+ inspect.unwrap(func2)
3032
+
3033
+ def test_unhashable(self):
3034
+ def func(): pass
3035
+ func.__wrapped__ = None
3036
+ class C:
3037
+ __hash__ = None
3038
+ __wrapped__ = func
3039
+ self.assertIsNone(inspect.unwrap(C()))
3040
+
3041
+ class TestMain(unittest.TestCase):
3042
+ def test_only_source(self):
3043
+ module = importlib.import_module('unittest')
3044
+ rc, out, err = assert_python_ok('-m', 'inspect',
3045
+ 'unittest')
3046
+ lines = out.decode().splitlines()
3047
+ # ignore the final newline
3048
+ self.assertEqual(lines[:-1], inspect.getsource(module).splitlines())
3049
+ self.assertEqual(err, b'')
3050
+
3051
+ def test_custom_getattr(self):
3052
+ def foo():
3053
+ pass
3054
+ foo.__signature__ = 42
3055
+ with self.assertRaises(TypeError):
3056
+ inspect.signature(foo)
3057
+
3058
+ @unittest.skipIf(ThreadPoolExecutor is None,
3059
+ 'threads required to test __qualname__ for source files')
3060
+ def test_qualname_source(self):
3061
+ rc, out, err = assert_python_ok('-m', 'inspect',
3062
+ 'concurrent.futures:ThreadPoolExecutor')
3063
+ lines = out.decode().splitlines()
3064
+ # ignore the final newline
3065
+ self.assertEqual(lines[:-1],
3066
+ inspect.getsource(ThreadPoolExecutor).splitlines())
3067
+ self.assertEqual(err, b'')
3068
+
3069
+ def test_builtins(self):
3070
+ module = importlib.import_module('unittest')
3071
+ _, out, err = assert_python_failure('-m', 'inspect',
3072
+ 'sys')
3073
+ lines = err.decode().splitlines()
3074
+ self.assertEqual(lines, ["Can't get info for builtin modules."])
3075
+
3076
+ def test_details(self):
3077
+ module = importlib.import_module('unittest')
3078
+ rc, out, err = assert_python_ok('-m', 'inspect',
3079
+ 'unittest', '--details')
3080
+ output = out.decode()
3081
+ # Just a quick sanity check on the output
3082
+ self.assertIn(module.__name__, output)
3083
+ self.assertIn(module.__file__, output)
3084
+ if not sys.flags.optimize:
3085
+ self.assertIn(module.__cached__, output)
3086
+ self.assertEqual(err, b'')
3087
+
3088
+
3089
+
3090
+
3091
+ def test_main():
3092
+ run_unittest(
3093
+ TestDecorators, TestRetrievingSourceCode, TestOneliners, TestBuggyCases,
3094
+ TestInterpreterStack, TestClassesAndFunctions, TestPredicates,
3095
+ TestGetcallargsFunctions, TestGetcallargsMethods,
3096
+ TestGetcallargsUnboundMethods, TestGetattrStatic, TestGetGeneratorState,
3097
+ TestNoEOL, TestSignatureObject, TestSignatureBind, TestParameterObject,
3098
+ TestBoundArguments, TestSignaturePrivateHelpers, TestGetClosureVars,
3099
+ TestUnwrap, TestMain
3100
+ )
3101
+
3102
+ if __name__ == "__main__":
3103
+ test_main()