@agent-webui/ai-desk-python-darwin-x64 1.0.29-beta1

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 (1883) hide show
  1. package/README.md +3 -0
  2. package/package.json +20 -0
  3. package/python/bin/idle3.13 +7 -0
  4. package/python/bin/pip +8 -0
  5. package/python/bin/pip3 +8 -0
  6. package/python/bin/pip3.13 +8 -0
  7. package/python/bin/pydoc3.13 +7 -0
  8. package/python/bin/python3.13 +0 -0
  9. package/python/bin/python3.13-config +76 -0
  10. package/python/include/python3.13/Python.h +140 -0
  11. package/python/include/python3.13/abstract.h +921 -0
  12. package/python/include/python3.13/bltinmodule.h +14 -0
  13. package/python/include/python3.13/boolobject.h +54 -0
  14. package/python/include/python3.13/bytearrayobject.h +44 -0
  15. package/python/include/python3.13/bytesobject.h +66 -0
  16. package/python/include/python3.13/ceval.h +145 -0
  17. package/python/include/python3.13/codecs.h +176 -0
  18. package/python/include/python3.13/compile.h +22 -0
  19. package/python/include/python3.13/complexobject.h +30 -0
  20. package/python/include/python3.13/cpython/abstract.h +87 -0
  21. package/python/include/python3.13/cpython/bytearrayobject.h +34 -0
  22. package/python/include/python3.13/cpython/bytesobject.h +37 -0
  23. package/python/include/python3.13/cpython/cellobject.h +44 -0
  24. package/python/include/python3.13/cpython/ceval.h +25 -0
  25. package/python/include/python3.13/cpython/classobject.h +71 -0
  26. package/python/include/python3.13/cpython/code.h +358 -0
  27. package/python/include/python3.13/cpython/compile.h +50 -0
  28. package/python/include/python3.13/cpython/complexobject.h +33 -0
  29. package/python/include/python3.13/cpython/context.h +74 -0
  30. package/python/include/python3.13/cpython/critical_section.h +134 -0
  31. package/python/include/python3.13/cpython/descrobject.h +62 -0
  32. package/python/include/python3.13/cpython/dictobject.h +102 -0
  33. package/python/include/python3.13/cpython/fileobject.h +16 -0
  34. package/python/include/python3.13/cpython/fileutils.h +8 -0
  35. package/python/include/python3.13/cpython/floatobject.h +27 -0
  36. package/python/include/python3.13/cpython/frameobject.h +35 -0
  37. package/python/include/python3.13/cpython/funcobject.h +184 -0
  38. package/python/include/python3.13/cpython/genobject.h +83 -0
  39. package/python/include/python3.13/cpython/import.h +25 -0
  40. package/python/include/python3.13/cpython/initconfig.h +274 -0
  41. package/python/include/python3.13/cpython/listobject.h +53 -0
  42. package/python/include/python3.13/cpython/lock.h +63 -0
  43. package/python/include/python3.13/cpython/longintrepr.h +146 -0
  44. package/python/include/python3.13/cpython/longobject.h +116 -0
  45. package/python/include/python3.13/cpython/memoryobject.h +50 -0
  46. package/python/include/python3.13/cpython/methodobject.h +66 -0
  47. package/python/include/python3.13/cpython/modsupport.h +26 -0
  48. package/python/include/python3.13/cpython/monitoring.h +250 -0
  49. package/python/include/python3.13/cpython/object.h +535 -0
  50. package/python/include/python3.13/cpython/objimpl.h +104 -0
  51. package/python/include/python3.13/cpython/odictobject.h +43 -0
  52. package/python/include/python3.13/cpython/picklebufobject.h +31 -0
  53. package/python/include/python3.13/cpython/pthread_stubs.h +105 -0
  54. package/python/include/python3.13/cpython/pyatomic.h +569 -0
  55. package/python/include/python3.13/cpython/pyatomic_gcc.h +551 -0
  56. package/python/include/python3.13/cpython/pyatomic_msc.h +1095 -0
  57. package/python/include/python3.13/cpython/pyatomic_std.h +976 -0
  58. package/python/include/python3.13/cpython/pyctype.h +39 -0
  59. package/python/include/python3.13/cpython/pydebug.h +38 -0
  60. package/python/include/python3.13/cpython/pyerrors.h +132 -0
  61. package/python/include/python3.13/cpython/pyfpe.h +15 -0
  62. package/python/include/python3.13/cpython/pyframe.h +45 -0
  63. package/python/include/python3.13/cpython/pyhash.h +47 -0
  64. package/python/include/python3.13/cpython/pylifecycle.h +92 -0
  65. package/python/include/python3.13/cpython/pymem.h +84 -0
  66. package/python/include/python3.13/cpython/pystate.h +277 -0
  67. package/python/include/python3.13/cpython/pystats.h +175 -0
  68. package/python/include/python3.13/cpython/pythonrun.h +96 -0
  69. package/python/include/python3.13/cpython/pythread.h +43 -0
  70. package/python/include/python3.13/cpython/pytime.h +27 -0
  71. package/python/include/python3.13/cpython/setobject.h +71 -0
  72. package/python/include/python3.13/cpython/sysmodule.h +22 -0
  73. package/python/include/python3.13/cpython/traceback.h +13 -0
  74. package/python/include/python3.13/cpython/tracemalloc.h +32 -0
  75. package/python/include/python3.13/cpython/tupleobject.h +38 -0
  76. package/python/include/python3.13/cpython/unicodeobject.h +703 -0
  77. package/python/include/python3.13/cpython/warnings.h +20 -0
  78. package/python/include/python3.13/cpython/weakrefobject.h +63 -0
  79. package/python/include/python3.13/critical_section.h +16 -0
  80. package/python/include/python3.13/datetime.h +267 -0
  81. package/python/include/python3.13/descrobject.h +100 -0
  82. package/python/include/python3.13/dictobject.h +108 -0
  83. package/python/include/python3.13/dynamic_annotations.h +499 -0
  84. package/python/include/python3.13/enumobject.h +17 -0
  85. package/python/include/python3.13/errcode.h +45 -0
  86. package/python/include/python3.13/exports.h +108 -0
  87. package/python/include/python3.13/fileobject.h +41 -0
  88. package/python/include/python3.13/fileutils.h +62 -0
  89. package/python/include/python3.13/floatobject.h +54 -0
  90. package/python/include/python3.13/frameobject.h +20 -0
  91. package/python/include/python3.13/genericaliasobject.h +14 -0
  92. package/python/include/python3.13/import.h +103 -0
  93. package/python/include/python3.13/internal/mimalloc/mimalloc/atomic.h +392 -0
  94. package/python/include/python3.13/internal/mimalloc/mimalloc/internal.h +969 -0
  95. package/python/include/python3.13/internal/mimalloc/mimalloc/prim.h +329 -0
  96. package/python/include/python3.13/internal/mimalloc/mimalloc/track.h +147 -0
  97. package/python/include/python3.13/internal/mimalloc/mimalloc/types.h +721 -0
  98. package/python/include/python3.13/internal/mimalloc/mimalloc.h +565 -0
  99. package/python/include/python3.13/internal/pycore_abstract.h +61 -0
  100. package/python/include/python3.13/internal/pycore_asdl.h +112 -0
  101. package/python/include/python3.13/internal/pycore_ast.h +926 -0
  102. package/python/include/python3.13/internal/pycore_ast_state.h +268 -0
  103. package/python/include/python3.13/internal/pycore_atexit.h +67 -0
  104. package/python/include/python3.13/internal/pycore_backoff.h +145 -0
  105. package/python/include/python3.13/internal/pycore_bitutils.h +186 -0
  106. package/python/include/python3.13/internal/pycore_blocks_output_buffer.h +321 -0
  107. package/python/include/python3.13/internal/pycore_brc.h +74 -0
  108. package/python/include/python3.13/internal/pycore_bytes_methods.h +82 -0
  109. package/python/include/python3.13/internal/pycore_bytesobject.h +152 -0
  110. package/python/include/python3.13/internal/pycore_call.h +205 -0
  111. package/python/include/python3.13/internal/pycore_capsule.h +17 -0
  112. package/python/include/python3.13/internal/pycore_cell.h +48 -0
  113. package/python/include/python3.13/internal/pycore_ceval.h +305 -0
  114. package/python/include/python3.13/internal/pycore_ceval_state.h +137 -0
  115. package/python/include/python3.13/internal/pycore_code.h +603 -0
  116. package/python/include/python3.13/internal/pycore_codecs.h +86 -0
  117. package/python/include/python3.13/internal/pycore_compile.h +118 -0
  118. package/python/include/python3.13/internal/pycore_complexobject.h +25 -0
  119. package/python/include/python3.13/internal/pycore_condvar.h +93 -0
  120. package/python/include/python3.13/internal/pycore_context.h +61 -0
  121. package/python/include/python3.13/internal/pycore_critical_section.h +233 -0
  122. package/python/include/python3.13/internal/pycore_crossinterp.h +340 -0
  123. package/python/include/python3.13/internal/pycore_descrobject.h +28 -0
  124. package/python/include/python3.13/internal/pycore_dict.h +340 -0
  125. package/python/include/python3.13/internal/pycore_dict_state.h +32 -0
  126. package/python/include/python3.13/internal/pycore_dtoa.h +75 -0
  127. package/python/include/python3.13/internal/pycore_emscripten_signal.h +30 -0
  128. package/python/include/python3.13/internal/pycore_emscripten_trampoline.h +81 -0
  129. package/python/include/python3.13/internal/pycore_exceptions.h +40 -0
  130. package/python/include/python3.13/internal/pycore_faulthandler.h +99 -0
  131. package/python/include/python3.13/internal/pycore_fileutils.h +335 -0
  132. package/python/include/python3.13/internal/pycore_fileutils_windows.h +98 -0
  133. package/python/include/python3.13/internal/pycore_floatobject.h +62 -0
  134. package/python/include/python3.13/internal/pycore_flowgraph.h +40 -0
  135. package/python/include/python3.13/internal/pycore_format.h +27 -0
  136. package/python/include/python3.13/internal/pycore_frame.h +370 -0
  137. package/python/include/python3.13/internal/pycore_freelist.h +153 -0
  138. package/python/include/python3.13/internal/pycore_function.h +55 -0
  139. package/python/include/python3.13/internal/pycore_gc.h +365 -0
  140. package/python/include/python3.13/internal/pycore_genobject.h +32 -0
  141. package/python/include/python3.13/internal/pycore_getopt.h +22 -0
  142. package/python/include/python3.13/internal/pycore_gil.h +66 -0
  143. package/python/include/python3.13/internal/pycore_global_objects.h +105 -0
  144. package/python/include/python3.13/internal/pycore_global_objects_fini_generated.h +1554 -0
  145. package/python/include/python3.13/internal/pycore_global_strings.h +814 -0
  146. package/python/include/python3.13/internal/pycore_hamt.h +134 -0
  147. package/python/include/python3.13/internal/pycore_hashtable.h +150 -0
  148. package/python/include/python3.13/internal/pycore_identifier.h +20 -0
  149. package/python/include/python3.13/internal/pycore_import.h +213 -0
  150. package/python/include/python3.13/internal/pycore_importdl.h +139 -0
  151. package/python/include/python3.13/internal/pycore_initconfig.h +200 -0
  152. package/python/include/python3.13/internal/pycore_instruction_sequence.h +73 -0
  153. package/python/include/python3.13/internal/pycore_instruments.h +75 -0
  154. package/python/include/python3.13/internal/pycore_interp.h +423 -0
  155. package/python/include/python3.13/internal/pycore_intrinsics.h +51 -0
  156. package/python/include/python3.13/internal/pycore_jit.h +25 -0
  157. package/python/include/python3.13/internal/pycore_list.h +66 -0
  158. package/python/include/python3.13/internal/pycore_llist.h +106 -0
  159. package/python/include/python3.13/internal/pycore_lock.h +241 -0
  160. package/python/include/python3.13/internal/pycore_long.h +310 -0
  161. package/python/include/python3.13/internal/pycore_memoryobject.h +20 -0
  162. package/python/include/python3.13/internal/pycore_mimalloc.h +69 -0
  163. package/python/include/python3.13/internal/pycore_modsupport.h +107 -0
  164. package/python/include/python3.13/internal/pycore_moduleobject.h +56 -0
  165. package/python/include/python3.13/internal/pycore_namespace.h +21 -0
  166. package/python/include/python3.13/internal/pycore_object.h +867 -0
  167. package/python/include/python3.13/internal/pycore_object_alloc.h +71 -0
  168. package/python/include/python3.13/internal/pycore_object_stack.h +97 -0
  169. package/python/include/python3.13/internal/pycore_object_state.h +41 -0
  170. package/python/include/python3.13/internal/pycore_obmalloc.h +702 -0
  171. package/python/include/python3.13/internal/pycore_obmalloc_init.h +66 -0
  172. package/python/include/python3.13/internal/pycore_opcode_metadata.h +1922 -0
  173. package/python/include/python3.13/internal/pycore_opcode_utils.h +73 -0
  174. package/python/include/python3.13/internal/pycore_optimizer.h +272 -0
  175. package/python/include/python3.13/internal/pycore_parking_lot.h +97 -0
  176. package/python/include/python3.13/internal/pycore_parser.h +95 -0
  177. package/python/include/python3.13/internal/pycore_pathconfig.h +26 -0
  178. package/python/include/python3.13/internal/pycore_pyarena.h +68 -0
  179. package/python/include/python3.13/internal/pycore_pyatomic_ft_wrappers.h +165 -0
  180. package/python/include/python3.13/internal/pycore_pybuffer.h +21 -0
  181. package/python/include/python3.13/internal/pycore_pyerrors.h +190 -0
  182. package/python/include/python3.13/internal/pycore_pyhash.h +107 -0
  183. package/python/include/python3.13/internal/pycore_pylifecycle.h +136 -0
  184. package/python/include/python3.13/internal/pycore_pymath.h +205 -0
  185. package/python/include/python3.13/internal/pycore_pymem.h +161 -0
  186. package/python/include/python3.13/internal/pycore_pymem_init.h +103 -0
  187. package/python/include/python3.13/internal/pycore_pystate.h +299 -0
  188. package/python/include/python3.13/internal/pycore_pystats.h +21 -0
  189. package/python/include/python3.13/internal/pycore_pythonrun.h +39 -0
  190. package/python/include/python3.13/internal/pycore_pythread.h +172 -0
  191. package/python/include/python3.13/internal/pycore_qsbr.h +173 -0
  192. package/python/include/python3.13/internal/pycore_range.h +21 -0
  193. package/python/include/python3.13/internal/pycore_runtime.h +410 -0
  194. package/python/include/python3.13/internal/pycore_runtime_init.h +329 -0
  195. package/python/include/python3.13/internal/pycore_runtime_init_generated.h +1551 -0
  196. package/python/include/python3.13/internal/pycore_semaphore.h +67 -0
  197. package/python/include/python3.13/internal/pycore_setobject.h +39 -0
  198. package/python/include/python3.13/internal/pycore_signal.h +108 -0
  199. package/python/include/python3.13/internal/pycore_sliceobject.h +20 -0
  200. package/python/include/python3.13/internal/pycore_stackref.h +195 -0
  201. package/python/include/python3.13/internal/pycore_strhex.h +39 -0
  202. package/python/include/python3.13/internal/pycore_structseq.h +40 -0
  203. package/python/include/python3.13/internal/pycore_symtable.h +204 -0
  204. package/python/include/python3.13/internal/pycore_sysmodule.h +38 -0
  205. package/python/include/python3.13/internal/pycore_time.h +337 -0
  206. package/python/include/python3.13/internal/pycore_token.h +106 -0
  207. package/python/include/python3.13/internal/pycore_traceback.h +106 -0
  208. package/python/include/python3.13/internal/pycore_tracemalloc.h +170 -0
  209. package/python/include/python3.13/internal/pycore_tstate.h +46 -0
  210. package/python/include/python3.13/internal/pycore_tuple.h +35 -0
  211. package/python/include/python3.13/internal/pycore_typeobject.h +245 -0
  212. package/python/include/python3.13/internal/pycore_typevarobject.h +27 -0
  213. package/python/include/python3.13/internal/pycore_ucnhash.h +36 -0
  214. package/python/include/python3.13/internal/pycore_unicodeobject.h +351 -0
  215. package/python/include/python3.13/internal/pycore_unicodeobject_generated.h +2980 -0
  216. package/python/include/python3.13/internal/pycore_unionobject.h +25 -0
  217. package/python/include/python3.13/internal/pycore_uop_ids.h +295 -0
  218. package/python/include/python3.13/internal/pycore_uop_metadata.h +1010 -0
  219. package/python/include/python3.13/internal/pycore_warnings.h +31 -0
  220. package/python/include/python3.13/internal/pycore_weakref.h +133 -0
  221. package/python/include/python3.13/intrcheck.h +23 -0
  222. package/python/include/python3.13/iterobject.h +24 -0
  223. package/python/include/python3.13/listobject.h +55 -0
  224. package/python/include/python3.13/lock.h +16 -0
  225. package/python/include/python3.13/longobject.h +114 -0
  226. package/python/include/python3.13/marshal.h +31 -0
  227. package/python/include/python3.13/memoryobject.h +34 -0
  228. package/python/include/python3.13/methodobject.h +137 -0
  229. package/python/include/python3.13/modsupport.h +146 -0
  230. package/python/include/python3.13/moduleobject.h +122 -0
  231. package/python/include/python3.13/monitoring.h +18 -0
  232. package/python/include/python3.13/object.h +1280 -0
  233. package/python/include/python3.13/objimpl.h +211 -0
  234. package/python/include/python3.13/opcode.h +42 -0
  235. package/python/include/python3.13/opcode_ids.h +244 -0
  236. package/python/include/python3.13/osdefs.h +57 -0
  237. package/python/include/python3.13/osmodule.h +17 -0
  238. package/python/include/python3.13/patchlevel.h +35 -0
  239. package/python/include/python3.13/py_curses.h +117 -0
  240. package/python/include/python3.13/pyatomic.h +16 -0
  241. package/python/include/python3.13/pybuffer.h +145 -0
  242. package/python/include/python3.13/pycapsule.h +58 -0
  243. package/python/include/python3.13/pyconfig.h +2033 -0
  244. package/python/include/python3.13/pydtrace.h +59 -0
  245. package/python/include/python3.13/pyerrors.h +335 -0
  246. package/python/include/python3.13/pyexpat.h +62 -0
  247. package/python/include/python3.13/pyframe.h +26 -0
  248. package/python/include/python3.13/pyhash.h +59 -0
  249. package/python/include/python3.13/pylifecycle.h +80 -0
  250. package/python/include/python3.13/pymacconfig.h +91 -0
  251. package/python/include/python3.13/pymacro.h +199 -0
  252. package/python/include/python3.13/pymath.h +62 -0
  253. package/python/include/python3.13/pymem.h +110 -0
  254. package/python/include/python3.13/pyport.h +633 -0
  255. package/python/include/python3.13/pystate.h +132 -0
  256. package/python/include/python3.13/pystats.h +26 -0
  257. package/python/include/python3.13/pystrcmp.h +23 -0
  258. package/python/include/python3.13/pystrtod.h +37 -0
  259. package/python/include/python3.13/pythonrun.h +49 -0
  260. package/python/include/python3.13/pythread.h +131 -0
  261. package/python/include/python3.13/pytypedefs.h +30 -0
  262. package/python/include/python3.13/rangeobject.h +27 -0
  263. package/python/include/python3.13/setobject.h +49 -0
  264. package/python/include/python3.13/sliceobject.h +69 -0
  265. package/python/include/python3.13/structmember.h +56 -0
  266. package/python/include/python3.13/structseq.h +46 -0
  267. package/python/include/python3.13/sysmodule.h +44 -0
  268. package/python/include/python3.13/traceback.h +26 -0
  269. package/python/include/python3.13/tupleobject.h +46 -0
  270. package/python/include/python3.13/typeslots.h +88 -0
  271. package/python/include/python3.13/unicodeobject.h +1021 -0
  272. package/python/include/python3.13/warnings.h +45 -0
  273. package/python/include/python3.13/weakrefobject.h +46 -0
  274. package/python/lib/itcl4.3.5/itcl.tcl +151 -0
  275. package/python/lib/itcl4.3.5/itclConfig.sh +67 -0
  276. package/python/lib/itcl4.3.5/itclHullCmds.tcl +562 -0
  277. package/python/lib/itcl4.3.5/itclWidget.tcl +447 -0
  278. package/python/lib/itcl4.3.5/libitcl4.3.5.dylib +0 -0
  279. package/python/lib/itcl4.3.5/libitclstub.a +0 -0
  280. package/python/lib/itcl4.3.5/libitclstub4.3.5.a +0 -0
  281. package/python/lib/itcl4.3.5/libtcl9itcl4.3.5.dylib +0 -0
  282. package/python/lib/itcl4.3.5/pkgIndex.tcl +14 -0
  283. package/python/lib/libpython3.13.dylib +0 -0
  284. package/python/lib/libtcl9.0.dylib +0 -0
  285. package/python/lib/libtcl9tk9.0.dylib +0 -0
  286. package/python/lib/pkgconfig/python-3.13-embed.pc +13 -0
  287. package/python/lib/pkgconfig/python-3.13.pc +13 -0
  288. package/python/lib/python3.13/LICENSE.txt +277 -0
  289. package/python/lib/python3.13/__future__.py +147 -0
  290. package/python/lib/python3.13/__hello__.py +16 -0
  291. package/python/lib/python3.13/__phello__/__init__.py +7 -0
  292. package/python/lib/python3.13/__phello__/spam.py +7 -0
  293. package/python/lib/python3.13/_aix_support.py +108 -0
  294. package/python/lib/python3.13/_android_support.py +192 -0
  295. package/python/lib/python3.13/_apple_support.py +66 -0
  296. package/python/lib/python3.13/_collections_abc.py +1182 -0
  297. package/python/lib/python3.13/_colorize.py +119 -0
  298. package/python/lib/python3.13/_compat_pickle.py +251 -0
  299. package/python/lib/python3.13/_compression.py +162 -0
  300. package/python/lib/python3.13/_ios_support.py +71 -0
  301. package/python/lib/python3.13/_markupbase.py +396 -0
  302. package/python/lib/python3.13/_opcode_metadata.py +343 -0
  303. package/python/lib/python3.13/_osx_support.py +579 -0
  304. package/python/lib/python3.13/_py_abc.py +147 -0
  305. package/python/lib/python3.13/_pydatetime.py +2639 -0
  306. package/python/lib/python3.13/_pydecimal.py +6351 -0
  307. package/python/lib/python3.13/_pyio.py +2704 -0
  308. package/python/lib/python3.13/_pylong.py +363 -0
  309. package/python/lib/python3.13/_pyrepl/__init__.py +19 -0
  310. package/python/lib/python3.13/_pyrepl/__main__.py +10 -0
  311. package/python/lib/python3.13/_pyrepl/_minimal_curses.py +68 -0
  312. package/python/lib/python3.13/_pyrepl/_threading_handler.py +74 -0
  313. package/python/lib/python3.13/_pyrepl/base_eventqueue.py +110 -0
  314. package/python/lib/python3.13/_pyrepl/commands.py +492 -0
  315. package/python/lib/python3.13/_pyrepl/completing_reader.py +295 -0
  316. package/python/lib/python3.13/_pyrepl/console.py +229 -0
  317. package/python/lib/python3.13/_pyrepl/curses.py +33 -0
  318. package/python/lib/python3.13/_pyrepl/fancy_termios.py +82 -0
  319. package/python/lib/python3.13/_pyrepl/historical_reader.py +419 -0
  320. package/python/lib/python3.13/_pyrepl/input.py +114 -0
  321. package/python/lib/python3.13/_pyrepl/keymap.py +213 -0
  322. package/python/lib/python3.13/_pyrepl/main.py +59 -0
  323. package/python/lib/python3.13/_pyrepl/mypy.ini +29 -0
  324. package/python/lib/python3.13/_pyrepl/pager.py +175 -0
  325. package/python/lib/python3.13/_pyrepl/reader.py +764 -0
  326. package/python/lib/python3.13/_pyrepl/readline.py +599 -0
  327. package/python/lib/python3.13/_pyrepl/simple_interact.py +180 -0
  328. package/python/lib/python3.13/_pyrepl/trace.py +21 -0
  329. package/python/lib/python3.13/_pyrepl/types.py +10 -0
  330. package/python/lib/python3.13/_pyrepl/unix_console.py +852 -0
  331. package/python/lib/python3.13/_pyrepl/unix_eventqueue.py +76 -0
  332. package/python/lib/python3.13/_pyrepl/utils.py +83 -0
  333. package/python/lib/python3.13/_pyrepl/windows_console.py +692 -0
  334. package/python/lib/python3.13/_pyrepl/windows_eventqueue.py +42 -0
  335. package/python/lib/python3.13/_sitebuiltins.py +91 -0
  336. package/python/lib/python3.13/_strptime.py +800 -0
  337. package/python/lib/python3.13/_sysconfigdata__darwin_darwin.py +1028 -0
  338. package/python/lib/python3.13/_threading_local.py +120 -0
  339. package/python/lib/python3.13/_weakrefset.py +205 -0
  340. package/python/lib/python3.13/abc.py +188 -0
  341. package/python/lib/python3.13/antigravity.py +17 -0
  342. package/python/lib/python3.13/argparse.py +2690 -0
  343. package/python/lib/python3.13/ast.py +1865 -0
  344. package/python/lib/python3.13/asyncio/__init__.py +47 -0
  345. package/python/lib/python3.13/asyncio/__main__.py +207 -0
  346. package/python/lib/python3.13/asyncio/base_events.py +2075 -0
  347. package/python/lib/python3.13/asyncio/base_futures.py +67 -0
  348. package/python/lib/python3.13/asyncio/base_subprocess.py +319 -0
  349. package/python/lib/python3.13/asyncio/base_tasks.py +94 -0
  350. package/python/lib/python3.13/asyncio/constants.py +41 -0
  351. package/python/lib/python3.13/asyncio/coroutines.py +109 -0
  352. package/python/lib/python3.13/asyncio/events.py +882 -0
  353. package/python/lib/python3.13/asyncio/exceptions.py +62 -0
  354. package/python/lib/python3.13/asyncio/format_helpers.py +84 -0
  355. package/python/lib/python3.13/asyncio/futures.py +425 -0
  356. package/python/lib/python3.13/asyncio/locks.py +617 -0
  357. package/python/lib/python3.13/asyncio/log.py +7 -0
  358. package/python/lib/python3.13/asyncio/mixins.py +21 -0
  359. package/python/lib/python3.13/asyncio/proactor_events.py +896 -0
  360. package/python/lib/python3.13/asyncio/protocols.py +216 -0
  361. package/python/lib/python3.13/asyncio/queues.py +307 -0
  362. package/python/lib/python3.13/asyncio/runners.py +216 -0
  363. package/python/lib/python3.13/asyncio/selector_events.py +1326 -0
  364. package/python/lib/python3.13/asyncio/sslproto.py +929 -0
  365. package/python/lib/python3.13/asyncio/staggered.py +174 -0
  366. package/python/lib/python3.13/asyncio/streams.py +787 -0
  367. package/python/lib/python3.13/asyncio/subprocess.py +229 -0
  368. package/python/lib/python3.13/asyncio/taskgroups.py +278 -0
  369. package/python/lib/python3.13/asyncio/tasks.py +1118 -0
  370. package/python/lib/python3.13/asyncio/threads.py +25 -0
  371. package/python/lib/python3.13/asyncio/timeouts.py +184 -0
  372. package/python/lib/python3.13/asyncio/transports.py +337 -0
  373. package/python/lib/python3.13/asyncio/trsock.py +98 -0
  374. package/python/lib/python3.13/asyncio/unix_events.py +1536 -0
  375. package/python/lib/python3.13/asyncio/windows_events.py +903 -0
  376. package/python/lib/python3.13/asyncio/windows_utils.py +173 -0
  377. package/python/lib/python3.13/base64.py +621 -0
  378. package/python/lib/python3.13/bdb.py +973 -0
  379. package/python/lib/python3.13/bisect.py +118 -0
  380. package/python/lib/python3.13/bz2.py +352 -0
  381. package/python/lib/python3.13/cProfile.py +197 -0
  382. package/python/lib/python3.13/calendar.py +813 -0
  383. package/python/lib/python3.13/cmd.py +409 -0
  384. package/python/lib/python3.13/code.py +386 -0
  385. package/python/lib/python3.13/codecs.py +1132 -0
  386. package/python/lib/python3.13/codeop.py +155 -0
  387. package/python/lib/python3.13/collections/__init__.py +1600 -0
  388. package/python/lib/python3.13/colorsys.py +166 -0
  389. package/python/lib/python3.13/compileall.py +470 -0
  390. package/python/lib/python3.13/concurrent/__init__.py +1 -0
  391. package/python/lib/python3.13/concurrent/futures/__init__.py +54 -0
  392. package/python/lib/python3.13/concurrent/futures/_base.py +654 -0
  393. package/python/lib/python3.13/concurrent/futures/process.py +862 -0
  394. package/python/lib/python3.13/concurrent/futures/thread.py +240 -0
  395. package/python/lib/python3.13/config-3.13-darwin/Makefile +3505 -0
  396. package/python/lib/python3.13/config-3.13-darwin/Setup +298 -0
  397. package/python/lib/python3.13/config-3.13-darwin/Setup.bootstrap +38 -0
  398. package/python/lib/python3.13/config-3.13-darwin/Setup.local +89 -0
  399. package/python/lib/python3.13/config-3.13-darwin/Setup.stdlib +181 -0
  400. package/python/lib/python3.13/config-3.13-darwin/config.c +260 -0
  401. package/python/lib/python3.13/config-3.13-darwin/config.c.in +71 -0
  402. package/python/lib/python3.13/config-3.13-darwin/install-sh +541 -0
  403. package/python/lib/python3.13/config-3.13-darwin/makesetup +341 -0
  404. package/python/lib/python3.13/config-3.13-darwin/python-config.py +76 -0
  405. package/python/lib/python3.13/config-3.13-darwin/python.o +0 -0
  406. package/python/lib/python3.13/configparser.py +1387 -0
  407. package/python/lib/python3.13/contextlib.py +814 -0
  408. package/python/lib/python3.13/contextvars.py +4 -0
  409. package/python/lib/python3.13/copy.py +306 -0
  410. package/python/lib/python3.13/copyreg.py +217 -0
  411. package/python/lib/python3.13/csv.py +513 -0
  412. package/python/lib/python3.13/ctypes/__init__.py +603 -0
  413. package/python/lib/python3.13/ctypes/_aix.py +327 -0
  414. package/python/lib/python3.13/ctypes/_endian.py +78 -0
  415. package/python/lib/python3.13/ctypes/macholib/README.ctypes +7 -0
  416. package/python/lib/python3.13/ctypes/macholib/__init__.py +9 -0
  417. package/python/lib/python3.13/ctypes/macholib/dyld.py +165 -0
  418. package/python/lib/python3.13/ctypes/macholib/dylib.py +42 -0
  419. package/python/lib/python3.13/ctypes/macholib/fetch_macholib +2 -0
  420. package/python/lib/python3.13/ctypes/macholib/fetch_macholib.bat +1 -0
  421. package/python/lib/python3.13/ctypes/macholib/framework.py +42 -0
  422. package/python/lib/python3.13/ctypes/util.py +388 -0
  423. package/python/lib/python3.13/ctypes/wintypes.py +202 -0
  424. package/python/lib/python3.13/curses/__init__.py +101 -0
  425. package/python/lib/python3.13/curses/ascii.py +99 -0
  426. package/python/lib/python3.13/curses/has_key.py +192 -0
  427. package/python/lib/python3.13/curses/panel.py +6 -0
  428. package/python/lib/python3.13/curses/textpad.py +204 -0
  429. package/python/lib/python3.13/dataclasses.py +1630 -0
  430. package/python/lib/python3.13/datetime.py +9 -0
  431. package/python/lib/python3.13/dbm/__init__.py +194 -0
  432. package/python/lib/python3.13/dbm/dumb.py +319 -0
  433. package/python/lib/python3.13/dbm/gnu.py +3 -0
  434. package/python/lib/python3.13/dbm/ndbm.py +3 -0
  435. package/python/lib/python3.13/dbm/sqlite3.py +144 -0
  436. package/python/lib/python3.13/decimal.py +109 -0
  437. package/python/lib/python3.13/difflib.py +2056 -0
  438. package/python/lib/python3.13/dis.py +1075 -0
  439. package/python/lib/python3.13/doctest.py +2919 -0
  440. package/python/lib/python3.13/email/__init__.py +61 -0
  441. package/python/lib/python3.13/email/_encoded_words.py +233 -0
  442. package/python/lib/python3.13/email/_header_value_parser.py +3145 -0
  443. package/python/lib/python3.13/email/_parseaddr.py +563 -0
  444. package/python/lib/python3.13/email/_policybase.py +382 -0
  445. package/python/lib/python3.13/email/architecture.rst +216 -0
  446. package/python/lib/python3.13/email/base64mime.py +115 -0
  447. package/python/lib/python3.13/email/charset.py +398 -0
  448. package/python/lib/python3.13/email/contentmanager.py +253 -0
  449. package/python/lib/python3.13/email/encoders.py +65 -0
  450. package/python/lib/python3.13/email/errors.py +117 -0
  451. package/python/lib/python3.13/email/feedparser.py +536 -0
  452. package/python/lib/python3.13/email/generator.py +530 -0
  453. package/python/lib/python3.13/email/header.py +582 -0
  454. package/python/lib/python3.13/email/headerregistry.py +618 -0
  455. package/python/lib/python3.13/email/iterators.py +68 -0
  456. package/python/lib/python3.13/email/message.py +1217 -0
  457. package/python/lib/python3.13/email/mime/__init__.py +0 -0
  458. package/python/lib/python3.13/email/mime/application.py +37 -0
  459. package/python/lib/python3.13/email/mime/audio.py +97 -0
  460. package/python/lib/python3.13/email/mime/base.py +29 -0
  461. package/python/lib/python3.13/email/mime/image.py +152 -0
  462. package/python/lib/python3.13/email/mime/message.py +33 -0
  463. package/python/lib/python3.13/email/mime/multipart.py +47 -0
  464. package/python/lib/python3.13/email/mime/nonmultipart.py +21 -0
  465. package/python/lib/python3.13/email/mime/text.py +40 -0
  466. package/python/lib/python3.13/email/parser.py +127 -0
  467. package/python/lib/python3.13/email/policy.py +232 -0
  468. package/python/lib/python3.13/email/quoprimime.py +300 -0
  469. package/python/lib/python3.13/email/utils.py +494 -0
  470. package/python/lib/python3.13/encodings/__init__.py +174 -0
  471. package/python/lib/python3.13/encodings/aliases.py +552 -0
  472. package/python/lib/python3.13/encodings/ascii.py +50 -0
  473. package/python/lib/python3.13/encodings/base64_codec.py +55 -0
  474. package/python/lib/python3.13/encodings/big5.py +39 -0
  475. package/python/lib/python3.13/encodings/big5hkscs.py +39 -0
  476. package/python/lib/python3.13/encodings/bz2_codec.py +78 -0
  477. package/python/lib/python3.13/encodings/charmap.py +69 -0
  478. package/python/lib/python3.13/encodings/cp037.py +307 -0
  479. package/python/lib/python3.13/encodings/cp1006.py +307 -0
  480. package/python/lib/python3.13/encodings/cp1026.py +307 -0
  481. package/python/lib/python3.13/encodings/cp1125.py +698 -0
  482. package/python/lib/python3.13/encodings/cp1140.py +307 -0
  483. package/python/lib/python3.13/encodings/cp1250.py +307 -0
  484. package/python/lib/python3.13/encodings/cp1251.py +307 -0
  485. package/python/lib/python3.13/encodings/cp1252.py +307 -0
  486. package/python/lib/python3.13/encodings/cp1253.py +307 -0
  487. package/python/lib/python3.13/encodings/cp1254.py +307 -0
  488. package/python/lib/python3.13/encodings/cp1255.py +307 -0
  489. package/python/lib/python3.13/encodings/cp1256.py +307 -0
  490. package/python/lib/python3.13/encodings/cp1257.py +307 -0
  491. package/python/lib/python3.13/encodings/cp1258.py +307 -0
  492. package/python/lib/python3.13/encodings/cp273.py +307 -0
  493. package/python/lib/python3.13/encodings/cp424.py +307 -0
  494. package/python/lib/python3.13/encodings/cp437.py +698 -0
  495. package/python/lib/python3.13/encodings/cp500.py +307 -0
  496. package/python/lib/python3.13/encodings/cp720.py +309 -0
  497. package/python/lib/python3.13/encodings/cp737.py +698 -0
  498. package/python/lib/python3.13/encodings/cp775.py +697 -0
  499. package/python/lib/python3.13/encodings/cp850.py +698 -0
  500. package/python/lib/python3.13/encodings/cp852.py +698 -0
  501. package/python/lib/python3.13/encodings/cp855.py +698 -0
  502. package/python/lib/python3.13/encodings/cp856.py +307 -0
  503. package/python/lib/python3.13/encodings/cp857.py +694 -0
  504. package/python/lib/python3.13/encodings/cp858.py +698 -0
  505. package/python/lib/python3.13/encodings/cp860.py +698 -0
  506. package/python/lib/python3.13/encodings/cp861.py +698 -0
  507. package/python/lib/python3.13/encodings/cp862.py +698 -0
  508. package/python/lib/python3.13/encodings/cp863.py +698 -0
  509. package/python/lib/python3.13/encodings/cp864.py +690 -0
  510. package/python/lib/python3.13/encodings/cp865.py +698 -0
  511. package/python/lib/python3.13/encodings/cp866.py +698 -0
  512. package/python/lib/python3.13/encodings/cp869.py +689 -0
  513. package/python/lib/python3.13/encodings/cp874.py +307 -0
  514. package/python/lib/python3.13/encodings/cp875.py +307 -0
  515. package/python/lib/python3.13/encodings/cp932.py +39 -0
  516. package/python/lib/python3.13/encodings/cp949.py +39 -0
  517. package/python/lib/python3.13/encodings/cp950.py +39 -0
  518. package/python/lib/python3.13/encodings/euc_jis_2004.py +39 -0
  519. package/python/lib/python3.13/encodings/euc_jisx0213.py +39 -0
  520. package/python/lib/python3.13/encodings/euc_jp.py +39 -0
  521. package/python/lib/python3.13/encodings/euc_kr.py +39 -0
  522. package/python/lib/python3.13/encodings/gb18030.py +39 -0
  523. package/python/lib/python3.13/encodings/gb2312.py +39 -0
  524. package/python/lib/python3.13/encodings/gbk.py +39 -0
  525. package/python/lib/python3.13/encodings/hex_codec.py +55 -0
  526. package/python/lib/python3.13/encodings/hp_roman8.py +314 -0
  527. package/python/lib/python3.13/encodings/hz.py +39 -0
  528. package/python/lib/python3.13/encodings/idna.py +387 -0
  529. package/python/lib/python3.13/encodings/iso2022_jp.py +39 -0
  530. package/python/lib/python3.13/encodings/iso2022_jp_1.py +39 -0
  531. package/python/lib/python3.13/encodings/iso2022_jp_2.py +39 -0
  532. package/python/lib/python3.13/encodings/iso2022_jp_2004.py +39 -0
  533. package/python/lib/python3.13/encodings/iso2022_jp_3.py +39 -0
  534. package/python/lib/python3.13/encodings/iso2022_jp_ext.py +39 -0
  535. package/python/lib/python3.13/encodings/iso2022_kr.py +39 -0
  536. package/python/lib/python3.13/encodings/iso8859_1.py +307 -0
  537. package/python/lib/python3.13/encodings/iso8859_10.py +307 -0
  538. package/python/lib/python3.13/encodings/iso8859_11.py +307 -0
  539. package/python/lib/python3.13/encodings/iso8859_13.py +307 -0
  540. package/python/lib/python3.13/encodings/iso8859_14.py +307 -0
  541. package/python/lib/python3.13/encodings/iso8859_15.py +307 -0
  542. package/python/lib/python3.13/encodings/iso8859_16.py +307 -0
  543. package/python/lib/python3.13/encodings/iso8859_2.py +307 -0
  544. package/python/lib/python3.13/encodings/iso8859_3.py +307 -0
  545. package/python/lib/python3.13/encodings/iso8859_4.py +307 -0
  546. package/python/lib/python3.13/encodings/iso8859_5.py +307 -0
  547. package/python/lib/python3.13/encodings/iso8859_6.py +307 -0
  548. package/python/lib/python3.13/encodings/iso8859_7.py +307 -0
  549. package/python/lib/python3.13/encodings/iso8859_8.py +307 -0
  550. package/python/lib/python3.13/encodings/iso8859_9.py +307 -0
  551. package/python/lib/python3.13/encodings/johab.py +39 -0
  552. package/python/lib/python3.13/encodings/koi8_r.py +307 -0
  553. package/python/lib/python3.13/encodings/koi8_t.py +308 -0
  554. package/python/lib/python3.13/encodings/koi8_u.py +307 -0
  555. package/python/lib/python3.13/encodings/kz1048.py +307 -0
  556. package/python/lib/python3.13/encodings/latin_1.py +50 -0
  557. package/python/lib/python3.13/encodings/mac_arabic.py +698 -0
  558. package/python/lib/python3.13/encodings/mac_croatian.py +307 -0
  559. package/python/lib/python3.13/encodings/mac_cyrillic.py +307 -0
  560. package/python/lib/python3.13/encodings/mac_farsi.py +307 -0
  561. package/python/lib/python3.13/encodings/mac_greek.py +307 -0
  562. package/python/lib/python3.13/encodings/mac_iceland.py +307 -0
  563. package/python/lib/python3.13/encodings/mac_latin2.py +312 -0
  564. package/python/lib/python3.13/encodings/mac_roman.py +307 -0
  565. package/python/lib/python3.13/encodings/mac_romanian.py +307 -0
  566. package/python/lib/python3.13/encodings/mac_turkish.py +307 -0
  567. package/python/lib/python3.13/encodings/mbcs.py +47 -0
  568. package/python/lib/python3.13/encodings/oem.py +41 -0
  569. package/python/lib/python3.13/encodings/palmos.py +308 -0
  570. package/python/lib/python3.13/encodings/ptcp154.py +312 -0
  571. package/python/lib/python3.13/encodings/punycode.py +253 -0
  572. package/python/lib/python3.13/encodings/quopri_codec.py +56 -0
  573. package/python/lib/python3.13/encodings/raw_unicode_escape.py +46 -0
  574. package/python/lib/python3.13/encodings/rot_13.py +113 -0
  575. package/python/lib/python3.13/encodings/shift_jis.py +39 -0
  576. package/python/lib/python3.13/encodings/shift_jis_2004.py +39 -0
  577. package/python/lib/python3.13/encodings/shift_jisx0213.py +39 -0
  578. package/python/lib/python3.13/encodings/tis_620.py +307 -0
  579. package/python/lib/python3.13/encodings/undefined.py +49 -0
  580. package/python/lib/python3.13/encodings/unicode_escape.py +46 -0
  581. package/python/lib/python3.13/encodings/utf_16.py +155 -0
  582. package/python/lib/python3.13/encodings/utf_16_be.py +42 -0
  583. package/python/lib/python3.13/encodings/utf_16_le.py +42 -0
  584. package/python/lib/python3.13/encodings/utf_32.py +150 -0
  585. package/python/lib/python3.13/encodings/utf_32_be.py +37 -0
  586. package/python/lib/python3.13/encodings/utf_32_le.py +37 -0
  587. package/python/lib/python3.13/encodings/utf_7.py +38 -0
  588. package/python/lib/python3.13/encodings/utf_8.py +42 -0
  589. package/python/lib/python3.13/encodings/utf_8_sig.py +130 -0
  590. package/python/lib/python3.13/encodings/uu_codec.py +103 -0
  591. package/python/lib/python3.13/encodings/zlib_codec.py +77 -0
  592. package/python/lib/python3.13/ensurepip/__init__.py +264 -0
  593. package/python/lib/python3.13/ensurepip/__main__.py +5 -0
  594. package/python/lib/python3.13/ensurepip/_bundled/pip-25.3-py3-none-any.whl +0 -0
  595. package/python/lib/python3.13/ensurepip/_uninstall.py +31 -0
  596. package/python/lib/python3.13/enum.py +2182 -0
  597. package/python/lib/python3.13/filecmp.py +320 -0
  598. package/python/lib/python3.13/fileinput.py +442 -0
  599. package/python/lib/python3.13/fnmatch.py +192 -0
  600. package/python/lib/python3.13/fractions.py +1043 -0
  601. package/python/lib/python3.13/ftplib.py +966 -0
  602. package/python/lib/python3.13/functools.py +1036 -0
  603. package/python/lib/python3.13/genericpath.py +200 -0
  604. package/python/lib/python3.13/getopt.py +215 -0
  605. package/python/lib/python3.13/getpass.py +192 -0
  606. package/python/lib/python3.13/gettext.py +657 -0
  607. package/python/lib/python3.13/glob.py +551 -0
  608. package/python/lib/python3.13/graphlib.py +250 -0
  609. package/python/lib/python3.13/gzip.py +691 -0
  610. package/python/lib/python3.13/hashlib.py +255 -0
  611. package/python/lib/python3.13/heapq.py +603 -0
  612. package/python/lib/python3.13/hmac.py +220 -0
  613. package/python/lib/python3.13/html/__init__.py +132 -0
  614. package/python/lib/python3.13/html/entities.py +2513 -0
  615. package/python/lib/python3.13/html/parser.py +553 -0
  616. package/python/lib/python3.13/http/__init__.py +202 -0
  617. package/python/lib/python3.13/http/client.py +1570 -0
  618. package/python/lib/python3.13/http/cookiejar.py +2122 -0
  619. package/python/lib/python3.13/http/cookies.py +615 -0
  620. package/python/lib/python3.13/http/server.py +1351 -0
  621. package/python/lib/python3.13/idlelib/CREDITS.txt +48 -0
  622. package/python/lib/python3.13/idlelib/ChangeLog +1591 -0
  623. package/python/lib/python3.13/idlelib/HISTORY.txt +296 -0
  624. package/python/lib/python3.13/idlelib/Icons/README.txt +51 -0
  625. package/python/lib/python3.13/idlelib/Icons/folder.gif +0 -0
  626. package/python/lib/python3.13/idlelib/Icons/idle.ico +0 -0
  627. package/python/lib/python3.13/idlelib/Icons/idle_16.gif +0 -0
  628. package/python/lib/python3.13/idlelib/Icons/idle_16.png +0 -0
  629. package/python/lib/python3.13/idlelib/Icons/idle_256.png +0 -0
  630. package/python/lib/python3.13/idlelib/Icons/idle_32.gif +0 -0
  631. package/python/lib/python3.13/idlelib/Icons/idle_32.png +0 -0
  632. package/python/lib/python3.13/idlelib/Icons/idle_48.gif +0 -0
  633. package/python/lib/python3.13/idlelib/Icons/idle_48.png +0 -0
  634. package/python/lib/python3.13/idlelib/Icons/minusnode.gif +0 -0
  635. package/python/lib/python3.13/idlelib/Icons/openfolder.gif +0 -0
  636. package/python/lib/python3.13/idlelib/Icons/plusnode.gif +0 -0
  637. package/python/lib/python3.13/idlelib/Icons/python.gif +0 -0
  638. package/python/lib/python3.13/idlelib/Icons/tk.gif +0 -0
  639. package/python/lib/python3.13/idlelib/NEWS2x.txt +660 -0
  640. package/python/lib/python3.13/idlelib/News3.txt +1407 -0
  641. package/python/lib/python3.13/idlelib/README.txt +290 -0
  642. package/python/lib/python3.13/idlelib/TODO.txt +210 -0
  643. package/python/lib/python3.13/idlelib/__init__.py +10 -0
  644. package/python/lib/python3.13/idlelib/__main__.py +7 -0
  645. package/python/lib/python3.13/idlelib/autocomplete.py +228 -0
  646. package/python/lib/python3.13/idlelib/autocomplete_w.py +498 -0
  647. package/python/lib/python3.13/idlelib/autoexpand.py +96 -0
  648. package/python/lib/python3.13/idlelib/browser.py +260 -0
  649. package/python/lib/python3.13/idlelib/calltip.py +205 -0
  650. package/python/lib/python3.13/idlelib/calltip_w.py +202 -0
  651. package/python/lib/python3.13/idlelib/codecontext.py +270 -0
  652. package/python/lib/python3.13/idlelib/colorizer.py +384 -0
  653. package/python/lib/python3.13/idlelib/config-extensions.def +62 -0
  654. package/python/lib/python3.13/idlelib/config-highlight.def +105 -0
  655. package/python/lib/python3.13/idlelib/config-keys.def +309 -0
  656. package/python/lib/python3.13/idlelib/config-main.def +92 -0
  657. package/python/lib/python3.13/idlelib/config.py +917 -0
  658. package/python/lib/python3.13/idlelib/config_key.py +354 -0
  659. package/python/lib/python3.13/idlelib/configdialog.py +2408 -0
  660. package/python/lib/python3.13/idlelib/debugger.py +602 -0
  661. package/python/lib/python3.13/idlelib/debugger_r.py +390 -0
  662. package/python/lib/python3.13/idlelib/debugobj.py +146 -0
  663. package/python/lib/python3.13/idlelib/debugobj_r.py +41 -0
  664. package/python/lib/python3.13/idlelib/delegator.py +34 -0
  665. package/python/lib/python3.13/idlelib/dynoption.py +57 -0
  666. package/python/lib/python3.13/idlelib/editor.py +1721 -0
  667. package/python/lib/python3.13/idlelib/extend.txt +83 -0
  668. package/python/lib/python3.13/idlelib/filelist.py +132 -0
  669. package/python/lib/python3.13/idlelib/format.py +426 -0
  670. package/python/lib/python3.13/idlelib/grep.py +223 -0
  671. package/python/lib/python3.13/idlelib/help.html +865 -0
  672. package/python/lib/python3.13/idlelib/help.py +343 -0
  673. package/python/lib/python3.13/idlelib/help_about.py +211 -0
  674. package/python/lib/python3.13/idlelib/history.py +106 -0
  675. package/python/lib/python3.13/idlelib/hyperparser.py +312 -0
  676. package/python/lib/python3.13/idlelib/idle.bat +4 -0
  677. package/python/lib/python3.13/idlelib/idle.py +14 -0
  678. package/python/lib/python3.13/idlelib/idle.pyw +17 -0
  679. package/python/lib/python3.13/idlelib/iomenu.py +441 -0
  680. package/python/lib/python3.13/idlelib/macosx.py +278 -0
  681. package/python/lib/python3.13/idlelib/mainmenu.py +126 -0
  682. package/python/lib/python3.13/idlelib/multicall.py +451 -0
  683. package/python/lib/python3.13/idlelib/outwin.py +188 -0
  684. package/python/lib/python3.13/idlelib/parenmatch.py +183 -0
  685. package/python/lib/python3.13/idlelib/pathbrowser.py +107 -0
  686. package/python/lib/python3.13/idlelib/percolator.py +120 -0
  687. package/python/lib/python3.13/idlelib/pyparse.py +589 -0
  688. package/python/lib/python3.13/idlelib/pyshell.py +1699 -0
  689. package/python/lib/python3.13/idlelib/query.py +390 -0
  690. package/python/lib/python3.13/idlelib/redirector.py +174 -0
  691. package/python/lib/python3.13/idlelib/replace.py +299 -0
  692. package/python/lib/python3.13/idlelib/rpc.py +635 -0
  693. package/python/lib/python3.13/idlelib/run.py +653 -0
  694. package/python/lib/python3.13/idlelib/runscript.py +213 -0
  695. package/python/lib/python3.13/idlelib/scrolledlist.py +151 -0
  696. package/python/lib/python3.13/idlelib/search.py +165 -0
  697. package/python/lib/python3.13/idlelib/searchbase.py +210 -0
  698. package/python/lib/python3.13/idlelib/searchengine.py +234 -0
  699. package/python/lib/python3.13/idlelib/sidebar.py +543 -0
  700. package/python/lib/python3.13/idlelib/squeezer.py +345 -0
  701. package/python/lib/python3.13/idlelib/stackviewer.py +134 -0
  702. package/python/lib/python3.13/idlelib/statusbar.py +52 -0
  703. package/python/lib/python3.13/idlelib/textview.py +193 -0
  704. package/python/lib/python3.13/idlelib/tooltip.py +190 -0
  705. package/python/lib/python3.13/idlelib/tree.py +509 -0
  706. package/python/lib/python3.13/idlelib/undo.py +367 -0
  707. package/python/lib/python3.13/idlelib/util.py +37 -0
  708. package/python/lib/python3.13/idlelib/window.py +98 -0
  709. package/python/lib/python3.13/idlelib/zoomheight.py +124 -0
  710. package/python/lib/python3.13/idlelib/zzdummy.py +73 -0
  711. package/python/lib/python3.13/imaplib.py +1651 -0
  712. package/python/lib/python3.13/importlib/__init__.py +136 -0
  713. package/python/lib/python3.13/importlib/_abc.py +39 -0
  714. package/python/lib/python3.13/importlib/_bootstrap.py +1551 -0
  715. package/python/lib/python3.13/importlib/_bootstrap_external.py +1826 -0
  716. package/python/lib/python3.13/importlib/abc.py +243 -0
  717. package/python/lib/python3.13/importlib/machinery.py +21 -0
  718. package/python/lib/python3.13/importlib/metadata/__init__.py +1093 -0
  719. package/python/lib/python3.13/importlib/metadata/_adapters.py +89 -0
  720. package/python/lib/python3.13/importlib/metadata/_collections.py +30 -0
  721. package/python/lib/python3.13/importlib/metadata/_functools.py +104 -0
  722. package/python/lib/python3.13/importlib/metadata/_itertools.py +73 -0
  723. package/python/lib/python3.13/importlib/metadata/_meta.py +67 -0
  724. package/python/lib/python3.13/importlib/metadata/_text.py +99 -0
  725. package/python/lib/python3.13/importlib/metadata/diagnose.py +21 -0
  726. package/python/lib/python3.13/importlib/readers.py +12 -0
  727. package/python/lib/python3.13/importlib/resources/__init__.py +43 -0
  728. package/python/lib/python3.13/importlib/resources/_adapters.py +168 -0
  729. package/python/lib/python3.13/importlib/resources/_common.py +211 -0
  730. package/python/lib/python3.13/importlib/resources/_functional.py +81 -0
  731. package/python/lib/python3.13/importlib/resources/_itertools.py +38 -0
  732. package/python/lib/python3.13/importlib/resources/abc.py +173 -0
  733. package/python/lib/python3.13/importlib/resources/readers.py +203 -0
  734. package/python/lib/python3.13/importlib/resources/simple.py +106 -0
  735. package/python/lib/python3.13/importlib/simple.py +14 -0
  736. package/python/lib/python3.13/importlib/util.py +274 -0
  737. package/python/lib/python3.13/inspect.py +3471 -0
  738. package/python/lib/python3.13/io.py +99 -0
  739. package/python/lib/python3.13/ipaddress.py +2440 -0
  740. package/python/lib/python3.13/json/__init__.py +365 -0
  741. package/python/lib/python3.13/json/decoder.py +364 -0
  742. package/python/lib/python3.13/json/encoder.py +446 -0
  743. package/python/lib/python3.13/json/scanner.py +73 -0
  744. package/python/lib/python3.13/json/tool.py +89 -0
  745. package/python/lib/python3.13/keyword.py +64 -0
  746. package/python/lib/python3.13/lib-dynload/.empty +0 -0
  747. package/python/lib/python3.13/lib-dynload/_ctypes_test.cpython-313-darwin.so +0 -0
  748. package/python/lib/python3.13/lib-dynload/_dbm.cpython-313-darwin.so +0 -0
  749. package/python/lib/python3.13/lib-dynload/_tkinter.cpython-313-darwin.so +0 -0
  750. package/python/lib/python3.13/linecache.py +236 -0
  751. package/python/lib/python3.13/locale.py +1778 -0
  752. package/python/lib/python3.13/logging/__init__.py +2326 -0
  753. package/python/lib/python3.13/logging/config.py +1065 -0
  754. package/python/lib/python3.13/logging/handlers.py +1629 -0
  755. package/python/lib/python3.13/lzma.py +364 -0
  756. package/python/lib/python3.13/mailbox.py +2219 -0
  757. package/python/lib/python3.13/mimetypes.py +679 -0
  758. package/python/lib/python3.13/modulefinder.py +671 -0
  759. package/python/lib/python3.13/multiprocessing/__init__.py +37 -0
  760. package/python/lib/python3.13/multiprocessing/connection.py +1190 -0
  761. package/python/lib/python3.13/multiprocessing/context.py +377 -0
  762. package/python/lib/python3.13/multiprocessing/dummy/__init__.py +126 -0
  763. package/python/lib/python3.13/multiprocessing/dummy/connection.py +75 -0
  764. package/python/lib/python3.13/multiprocessing/forkserver.py +364 -0
  765. package/python/lib/python3.13/multiprocessing/heap.py +337 -0
  766. package/python/lib/python3.13/multiprocessing/managers.py +1397 -0
  767. package/python/lib/python3.13/multiprocessing/pool.py +957 -0
  768. package/python/lib/python3.13/multiprocessing/popen_fork.py +87 -0
  769. package/python/lib/python3.13/multiprocessing/popen_forkserver.py +74 -0
  770. package/python/lib/python3.13/multiprocessing/popen_spawn_posix.py +76 -0
  771. package/python/lib/python3.13/multiprocessing/popen_spawn_win32.py +147 -0
  772. package/python/lib/python3.13/multiprocessing/process.py +436 -0
  773. package/python/lib/python3.13/multiprocessing/queues.py +399 -0
  774. package/python/lib/python3.13/multiprocessing/reduction.py +281 -0
  775. package/python/lib/python3.13/multiprocessing/resource_sharer.py +154 -0
  776. package/python/lib/python3.13/multiprocessing/resource_tracker.py +420 -0
  777. package/python/lib/python3.13/multiprocessing/shared_memory.py +544 -0
  778. package/python/lib/python3.13/multiprocessing/sharedctypes.py +240 -0
  779. package/python/lib/python3.13/multiprocessing/spawn.py +307 -0
  780. package/python/lib/python3.13/multiprocessing/synchronize.py +404 -0
  781. package/python/lib/python3.13/multiprocessing/util.py +562 -0
  782. package/python/lib/python3.13/netrc.py +199 -0
  783. package/python/lib/python3.13/ntpath.py +870 -0
  784. package/python/lib/python3.13/nturl2path.py +69 -0
  785. package/python/lib/python3.13/numbers.py +427 -0
  786. package/python/lib/python3.13/opcode.py +115 -0
  787. package/python/lib/python3.13/operator.py +467 -0
  788. package/python/lib/python3.13/optparse.py +1681 -0
  789. package/python/lib/python3.13/os.py +1184 -0
  790. package/python/lib/python3.13/pathlib/__init__.py +12 -0
  791. package/python/lib/python3.13/pathlib/_abc.py +930 -0
  792. package/python/lib/python3.13/pathlib/_local.py +861 -0
  793. package/python/lib/python3.13/pdb.py +2550 -0
  794. package/python/lib/python3.13/pickle.py +1866 -0
  795. package/python/lib/python3.13/pickletools.py +2904 -0
  796. package/python/lib/python3.13/pkgutil.py +529 -0
  797. package/python/lib/python3.13/platform.py +1454 -0
  798. package/python/lib/python3.13/plistlib.py +948 -0
  799. package/python/lib/python3.13/poplib.py +477 -0
  800. package/python/lib/python3.13/posixpath.py +578 -0
  801. package/python/lib/python3.13/pprint.py +658 -0
  802. package/python/lib/python3.13/profile.py +616 -0
  803. package/python/lib/python3.13/pstats.py +778 -0
  804. package/python/lib/python3.13/pty.py +211 -0
  805. package/python/lib/python3.13/py_compile.py +212 -0
  806. package/python/lib/python3.13/pyclbr.py +314 -0
  807. package/python/lib/python3.13/pydoc.py +2859 -0
  808. package/python/lib/python3.13/pydoc_data/__init__.py +0 -0
  809. package/python/lib/python3.13/pydoc_data/_pydoc.css +112 -0
  810. package/python/lib/python3.13/pydoc_data/module_docs.py +314 -0
  811. package/python/lib/python3.13/pydoc_data/topics.py +13000 -0
  812. package/python/lib/python3.13/queue.py +383 -0
  813. package/python/lib/python3.13/quopri.py +237 -0
  814. package/python/lib/python3.13/random.py +1070 -0
  815. package/python/lib/python3.13/re/__init__.py +428 -0
  816. package/python/lib/python3.13/re/_casefix.py +106 -0
  817. package/python/lib/python3.13/re/_compiler.py +768 -0
  818. package/python/lib/python3.13/re/_constants.py +222 -0
  819. package/python/lib/python3.13/re/_parser.py +1081 -0
  820. package/python/lib/python3.13/reprlib.py +230 -0
  821. package/python/lib/python3.13/rlcompleter.py +221 -0
  822. package/python/lib/python3.13/runpy.py +319 -0
  823. package/python/lib/python3.13/sched.py +167 -0
  824. package/python/lib/python3.13/secrets.py +71 -0
  825. package/python/lib/python3.13/selectors.py +603 -0
  826. package/python/lib/python3.13/shelve.py +250 -0
  827. package/python/lib/python3.13/shlex.py +345 -0
  828. package/python/lib/python3.13/shutil.py +1583 -0
  829. package/python/lib/python3.13/signal.py +94 -0
  830. package/python/lib/python3.13/site-packages/README.txt +2 -0
  831. package/python/lib/python3.13/site-packages/pip/__init__.py +13 -0
  832. package/python/lib/python3.13/site-packages/pip/__main__.py +24 -0
  833. package/python/lib/python3.13/site-packages/pip/__pip-runner__.py +50 -0
  834. package/python/lib/python3.13/site-packages/pip/_internal/__init__.py +18 -0
  835. package/python/lib/python3.13/site-packages/pip/_internal/build_env.py +606 -0
  836. package/python/lib/python3.13/site-packages/pip/_internal/cache.py +291 -0
  837. package/python/lib/python3.13/site-packages/pip/_internal/cli/__init__.py +3 -0
  838. package/python/lib/python3.13/site-packages/pip/_internal/cli/autocompletion.py +184 -0
  839. package/python/lib/python3.13/site-packages/pip/_internal/cli/base_command.py +255 -0
  840. package/python/lib/python3.13/site-packages/pip/_internal/cli/cmdoptions.py +1267 -0
  841. package/python/lib/python3.13/site-packages/pip/_internal/cli/command_context.py +28 -0
  842. package/python/lib/python3.13/site-packages/pip/_internal/cli/index_command.py +195 -0
  843. package/python/lib/python3.13/site-packages/pip/_internal/cli/main.py +85 -0
  844. package/python/lib/python3.13/site-packages/pip/_internal/cli/main_parser.py +136 -0
  845. package/python/lib/python3.13/site-packages/pip/_internal/cli/parser.py +358 -0
  846. package/python/lib/python3.13/site-packages/pip/_internal/cli/progress_bars.py +153 -0
  847. package/python/lib/python3.13/site-packages/pip/_internal/cli/req_command.py +447 -0
  848. package/python/lib/python3.13/site-packages/pip/_internal/cli/spinners.py +235 -0
  849. package/python/lib/python3.13/site-packages/pip/_internal/cli/status_codes.py +6 -0
  850. package/python/lib/python3.13/site-packages/pip/_internal/commands/__init__.py +139 -0
  851. package/python/lib/python3.13/site-packages/pip/_internal/commands/cache.py +255 -0
  852. package/python/lib/python3.13/site-packages/pip/_internal/commands/check.py +66 -0
  853. package/python/lib/python3.13/site-packages/pip/_internal/commands/completion.py +136 -0
  854. package/python/lib/python3.13/site-packages/pip/_internal/commands/configuration.py +288 -0
  855. package/python/lib/python3.13/site-packages/pip/_internal/commands/debug.py +203 -0
  856. package/python/lib/python3.13/site-packages/pip/_internal/commands/download.py +146 -0
  857. package/python/lib/python3.13/site-packages/pip/_internal/commands/freeze.py +107 -0
  858. package/python/lib/python3.13/site-packages/pip/_internal/commands/hash.py +58 -0
  859. package/python/lib/python3.13/site-packages/pip/_internal/commands/help.py +40 -0
  860. package/python/lib/python3.13/site-packages/pip/_internal/commands/index.py +166 -0
  861. package/python/lib/python3.13/site-packages/pip/_internal/commands/inspect.py +92 -0
  862. package/python/lib/python3.13/site-packages/pip/_internal/commands/install.py +810 -0
  863. package/python/lib/python3.13/site-packages/pip/_internal/commands/list.py +398 -0
  864. package/python/lib/python3.13/site-packages/pip/_internal/commands/lock.py +175 -0
  865. package/python/lib/python3.13/site-packages/pip/_internal/commands/search.py +178 -0
  866. package/python/lib/python3.13/site-packages/pip/_internal/commands/show.py +231 -0
  867. package/python/lib/python3.13/site-packages/pip/_internal/commands/uninstall.py +113 -0
  868. package/python/lib/python3.13/site-packages/pip/_internal/commands/wheel.py +171 -0
  869. package/python/lib/python3.13/site-packages/pip/_internal/configuration.py +396 -0
  870. package/python/lib/python3.13/site-packages/pip/_internal/distributions/__init__.py +21 -0
  871. package/python/lib/python3.13/site-packages/pip/_internal/distributions/base.py +55 -0
  872. package/python/lib/python3.13/site-packages/pip/_internal/distributions/installed.py +33 -0
  873. package/python/lib/python3.13/site-packages/pip/_internal/distributions/sdist.py +164 -0
  874. package/python/lib/python3.13/site-packages/pip/_internal/distributions/wheel.py +44 -0
  875. package/python/lib/python3.13/site-packages/pip/_internal/exceptions.py +971 -0
  876. package/python/lib/python3.13/site-packages/pip/_internal/index/__init__.py +1 -0
  877. package/python/lib/python3.13/site-packages/pip/_internal/index/collector.py +488 -0
  878. package/python/lib/python3.13/site-packages/pip/_internal/index/package_finder.py +1125 -0
  879. package/python/lib/python3.13/site-packages/pip/_internal/index/sources.py +287 -0
  880. package/python/lib/python3.13/site-packages/pip/_internal/locations/__init__.py +440 -0
  881. package/python/lib/python3.13/site-packages/pip/_internal/locations/_distutils.py +173 -0
  882. package/python/lib/python3.13/site-packages/pip/_internal/locations/_sysconfig.py +218 -0
  883. package/python/lib/python3.13/site-packages/pip/_internal/locations/base.py +82 -0
  884. package/python/lib/python3.13/site-packages/pip/_internal/main.py +12 -0
  885. package/python/lib/python3.13/site-packages/pip/_internal/metadata/__init__.py +169 -0
  886. package/python/lib/python3.13/site-packages/pip/_internal/metadata/_json.py +87 -0
  887. package/python/lib/python3.13/site-packages/pip/_internal/metadata/base.py +685 -0
  888. package/python/lib/python3.13/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
  889. package/python/lib/python3.13/site-packages/pip/_internal/metadata/importlib/_compat.py +87 -0
  890. package/python/lib/python3.13/site-packages/pip/_internal/metadata/importlib/_dists.py +229 -0
  891. package/python/lib/python3.13/site-packages/pip/_internal/metadata/importlib/_envs.py +143 -0
  892. package/python/lib/python3.13/site-packages/pip/_internal/metadata/pkg_resources.py +298 -0
  893. package/python/lib/python3.13/site-packages/pip/_internal/models/__init__.py +1 -0
  894. package/python/lib/python3.13/site-packages/pip/_internal/models/candidate.py +25 -0
  895. package/python/lib/python3.13/site-packages/pip/_internal/models/direct_url.py +227 -0
  896. package/python/lib/python3.13/site-packages/pip/_internal/models/format_control.py +78 -0
  897. package/python/lib/python3.13/site-packages/pip/_internal/models/index.py +28 -0
  898. package/python/lib/python3.13/site-packages/pip/_internal/models/installation_report.py +57 -0
  899. package/python/lib/python3.13/site-packages/pip/_internal/models/link.py +617 -0
  900. package/python/lib/python3.13/site-packages/pip/_internal/models/release_control.py +92 -0
  901. package/python/lib/python3.13/site-packages/pip/_internal/models/scheme.py +25 -0
  902. package/python/lib/python3.13/site-packages/pip/_internal/models/search_scope.py +126 -0
  903. package/python/lib/python3.13/site-packages/pip/_internal/models/selection_prefs.py +56 -0
  904. package/python/lib/python3.13/site-packages/pip/_internal/models/target_python.py +122 -0
  905. package/python/lib/python3.13/site-packages/pip/_internal/models/wheel.py +80 -0
  906. package/python/lib/python3.13/site-packages/pip/_internal/network/__init__.py +1 -0
  907. package/python/lib/python3.13/site-packages/pip/_internal/network/auth.py +568 -0
  908. package/python/lib/python3.13/site-packages/pip/_internal/network/cache.py +128 -0
  909. package/python/lib/python3.13/site-packages/pip/_internal/network/download.py +341 -0
  910. package/python/lib/python3.13/site-packages/pip/_internal/network/lazy_wheel.py +215 -0
  911. package/python/lib/python3.13/site-packages/pip/_internal/network/session.py +532 -0
  912. package/python/lib/python3.13/site-packages/pip/_internal/network/utils.py +98 -0
  913. package/python/lib/python3.13/site-packages/pip/_internal/network/xmlrpc.py +61 -0
  914. package/python/lib/python3.13/site-packages/pip/_internal/operations/__init__.py +0 -0
  915. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  916. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/build_tracker.py +140 -0
  917. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/metadata.py +38 -0
  918. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
  919. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/wheel.py +38 -0
  920. package/python/lib/python3.13/site-packages/pip/_internal/operations/build/wheel_editable.py +47 -0
  921. package/python/lib/python3.13/site-packages/pip/_internal/operations/check.py +175 -0
  922. package/python/lib/python3.13/site-packages/pip/_internal/operations/freeze.py +259 -0
  923. package/python/lib/python3.13/site-packages/pip/_internal/operations/install/__init__.py +1 -0
  924. package/python/lib/python3.13/site-packages/pip/_internal/operations/install/wheel.py +745 -0
  925. package/python/lib/python3.13/site-packages/pip/_internal/operations/prepare.py +747 -0
  926. package/python/lib/python3.13/site-packages/pip/_internal/pyproject.py +123 -0
  927. package/python/lib/python3.13/site-packages/pip/_internal/req/__init__.py +103 -0
  928. package/python/lib/python3.13/site-packages/pip/_internal/req/constructors.py +568 -0
  929. package/python/lib/python3.13/site-packages/pip/_internal/req/pep723.py +41 -0
  930. package/python/lib/python3.13/site-packages/pip/_internal/req/req_dependency_group.py +75 -0
  931. package/python/lib/python3.13/site-packages/pip/_internal/req/req_file.py +631 -0
  932. package/python/lib/python3.13/site-packages/pip/_internal/req/req_install.py +828 -0
  933. package/python/lib/python3.13/site-packages/pip/_internal/req/req_set.py +81 -0
  934. package/python/lib/python3.13/site-packages/pip/_internal/req/req_uninstall.py +639 -0
  935. package/python/lib/python3.13/site-packages/pip/_internal/resolution/__init__.py +0 -0
  936. package/python/lib/python3.13/site-packages/pip/_internal/resolution/base.py +20 -0
  937. package/python/lib/python3.13/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  938. package/python/lib/python3.13/site-packages/pip/_internal/resolution/legacy/resolver.py +598 -0
  939. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  940. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/base.py +142 -0
  941. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py +591 -0
  942. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py +856 -0
  943. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +166 -0
  944. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/provider.py +285 -0
  945. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/reporter.py +98 -0
  946. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/requirements.py +251 -0
  947. package/python/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/resolver.py +332 -0
  948. package/python/lib/python3.13/site-packages/pip/_internal/self_outdated_check.py +255 -0
  949. package/python/lib/python3.13/site-packages/pip/_internal/utils/__init__.py +0 -0
  950. package/python/lib/python3.13/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
  951. package/python/lib/python3.13/site-packages/pip/_internal/utils/_log.py +38 -0
  952. package/python/lib/python3.13/site-packages/pip/_internal/utils/appdirs.py +52 -0
  953. package/python/lib/python3.13/site-packages/pip/_internal/utils/compat.py +85 -0
  954. package/python/lib/python3.13/site-packages/pip/_internal/utils/compatibility_tags.py +201 -0
  955. package/python/lib/python3.13/site-packages/pip/_internal/utils/datetime.py +28 -0
  956. package/python/lib/python3.13/site-packages/pip/_internal/utils/deprecation.py +126 -0
  957. package/python/lib/python3.13/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
  958. package/python/lib/python3.13/site-packages/pip/_internal/utils/egg_link.py +81 -0
  959. package/python/lib/python3.13/site-packages/pip/_internal/utils/entrypoints.py +88 -0
  960. package/python/lib/python3.13/site-packages/pip/_internal/utils/filesystem.py +203 -0
  961. package/python/lib/python3.13/site-packages/pip/_internal/utils/filetypes.py +24 -0
  962. package/python/lib/python3.13/site-packages/pip/_internal/utils/glibc.py +102 -0
  963. package/python/lib/python3.13/site-packages/pip/_internal/utils/hashes.py +150 -0
  964. package/python/lib/python3.13/site-packages/pip/_internal/utils/logging.py +396 -0
  965. package/python/lib/python3.13/site-packages/pip/_internal/utils/misc.py +771 -0
  966. package/python/lib/python3.13/site-packages/pip/_internal/utils/packaging.py +44 -0
  967. package/python/lib/python3.13/site-packages/pip/_internal/utils/pylock.py +116 -0
  968. package/python/lib/python3.13/site-packages/pip/_internal/utils/retry.py +45 -0
  969. package/python/lib/python3.13/site-packages/pip/_internal/utils/subprocess.py +248 -0
  970. package/python/lib/python3.13/site-packages/pip/_internal/utils/temp_dir.py +294 -0
  971. package/python/lib/python3.13/site-packages/pip/_internal/utils/unpacking.py +362 -0
  972. package/python/lib/python3.13/site-packages/pip/_internal/utils/urls.py +55 -0
  973. package/python/lib/python3.13/site-packages/pip/_internal/utils/virtualenv.py +105 -0
  974. package/python/lib/python3.13/site-packages/pip/_internal/utils/wheel.py +132 -0
  975. package/python/lib/python3.13/site-packages/pip/_internal/vcs/__init__.py +15 -0
  976. package/python/lib/python3.13/site-packages/pip/_internal/vcs/bazaar.py +130 -0
  977. package/python/lib/python3.13/site-packages/pip/_internal/vcs/git.py +571 -0
  978. package/python/lib/python3.13/site-packages/pip/_internal/vcs/mercurial.py +186 -0
  979. package/python/lib/python3.13/site-packages/pip/_internal/vcs/subversion.py +335 -0
  980. package/python/lib/python3.13/site-packages/pip/_internal/vcs/versioncontrol.py +695 -0
  981. package/python/lib/python3.13/site-packages/pip/_internal/wheel_builder.py +261 -0
  982. package/python/lib/python3.13/site-packages/pip/_vendor/README.rst +180 -0
  983. package/python/lib/python3.13/site-packages/pip/_vendor/__init__.py +117 -0
  984. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  985. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__init__.py +32 -0
  986. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
  987. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/adapter.py +167 -0
  988. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/cache.py +75 -0
  989. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
  990. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +145 -0
  991. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
  992. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/controller.py +511 -0
  993. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/filewrapper.py +121 -0
  994. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/heuristics.py +157 -0
  995. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  996. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
  997. package/python/lib/python3.13/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
  998. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/LICENSE +20 -0
  999. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/__init__.py +4 -0
  1000. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/__main__.py +12 -0
  1001. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/cacert.pem +4468 -0
  1002. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/core.py +83 -0
  1003. package/python/lib/python3.13/site-packages/pip/_vendor/certifi/py.typed +0 -0
  1004. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  1005. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__init__.py +13 -0
  1006. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__main__.py +65 -0
  1007. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/_implementation.py +209 -0
  1008. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/_lint_dependency_groups.py +59 -0
  1009. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +62 -0
  1010. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +9 -0
  1011. package/python/lib/python3.13/site-packages/pip/_vendor/dependency_groups/py.typed +0 -0
  1012. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/LICENSE.txt +284 -0
  1013. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/__init__.py +33 -0
  1014. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/compat.py +1137 -0
  1015. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/resources.py +358 -0
  1016. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/scripts.py +447 -0
  1017. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1018. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  1019. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1020. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/util.py +1984 -0
  1021. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1022. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  1023. package/python/lib/python3.13/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1024. package/python/lib/python3.13/site-packages/pip/_vendor/distro/LICENSE +202 -0
  1025. package/python/lib/python3.13/site-packages/pip/_vendor/distro/__init__.py +54 -0
  1026. package/python/lib/python3.13/site-packages/pip/_vendor/distro/__main__.py +4 -0
  1027. package/python/lib/python3.13/site-packages/pip/_vendor/distro/distro.py +1403 -0
  1028. package/python/lib/python3.13/site-packages/pip/_vendor/distro/py.typed +0 -0
  1029. package/python/lib/python3.13/site-packages/pip/_vendor/idna/LICENSE.md +31 -0
  1030. package/python/lib/python3.13/site-packages/pip/_vendor/idna/__init__.py +45 -0
  1031. package/python/lib/python3.13/site-packages/pip/_vendor/idna/codec.py +122 -0
  1032. package/python/lib/python3.13/site-packages/pip/_vendor/idna/compat.py +15 -0
  1033. package/python/lib/python3.13/site-packages/pip/_vendor/idna/core.py +437 -0
  1034. package/python/lib/python3.13/site-packages/pip/_vendor/idna/idnadata.py +4309 -0
  1035. package/python/lib/python3.13/site-packages/pip/_vendor/idna/intranges.py +57 -0
  1036. package/python/lib/python3.13/site-packages/pip/_vendor/idna/package_data.py +1 -0
  1037. package/python/lib/python3.13/site-packages/pip/_vendor/idna/py.typed +0 -0
  1038. package/python/lib/python3.13/site-packages/pip/_vendor/idna/uts46data.py +8841 -0
  1039. package/python/lib/python3.13/site-packages/pip/_vendor/msgpack/COPYING +14 -0
  1040. package/python/lib/python3.13/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
  1041. package/python/lib/python3.13/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
  1042. package/python/lib/python3.13/site-packages/pip/_vendor/msgpack/ext.py +170 -0
  1043. package/python/lib/python3.13/site-packages/pip/_vendor/msgpack/fallback.py +929 -0
  1044. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/LICENSE +3 -0
  1045. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  1046. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/LICENSE.BSD +23 -0
  1047. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/__init__.py +15 -0
  1048. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_elffile.py +108 -0
  1049. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
  1050. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
  1051. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_parser.py +365 -0
  1052. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_structures.py +69 -0
  1053. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/_tokenizer.py +193 -0
  1054. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/licenses/__init__.py +147 -0
  1055. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/licenses/_spdx.py +799 -0
  1056. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/markers.py +388 -0
  1057. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/metadata.py +978 -0
  1058. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/py.typed +0 -0
  1059. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/pylock.py +635 -0
  1060. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/requirements.py +86 -0
  1061. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/specifiers.py +1068 -0
  1062. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/tags.py +651 -0
  1063. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/utils.py +158 -0
  1064. package/python/lib/python3.13/site-packages/pip/_vendor/packaging/version.py +792 -0
  1065. package/python/lib/python3.13/site-packages/pip/_vendor/pkg_resources/LICENSE +17 -0
  1066. package/python/lib/python3.13/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
  1067. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/LICENSE +21 -0
  1068. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
  1069. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
  1070. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/android.py +249 -0
  1071. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/api.py +299 -0
  1072. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/macos.py +146 -0
  1073. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  1074. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/unix.py +272 -0
  1075. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/version.py +34 -0
  1076. package/python/lib/python3.13/site-packages/pip/_vendor/platformdirs/windows.py +278 -0
  1077. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/LICENSE +25 -0
  1078. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/__init__.py +82 -0
  1079. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/__main__.py +17 -0
  1080. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/console.py +70 -0
  1081. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/filter.py +70 -0
  1082. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
  1083. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/formatter.py +129 -0
  1084. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
  1085. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
  1086. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/lexer.py +963 -0
  1087. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
  1088. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/lexers/_mapping.py +602 -0
  1089. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/lexers/python.py +1201 -0
  1090. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/modeline.py +43 -0
  1091. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/plugin.py +72 -0
  1092. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
  1093. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/scanner.py +104 -0
  1094. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
  1095. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/style.py +203 -0
  1096. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
  1097. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
  1098. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/token.py +214 -0
  1099. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/unistring.py +153 -0
  1100. package/python/lib/python3.13/site-packages/pip/_vendor/pygments/util.py +324 -0
  1101. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  1102. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/__init__.py +31 -0
  1103. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_impl.py +410 -0
  1104. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +21 -0
  1105. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
  1106. package/python/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
  1107. package/python/lib/python3.13/site-packages/pip/_vendor/requests/LICENSE +175 -0
  1108. package/python/lib/python3.13/site-packages/pip/_vendor/requests/__init__.py +179 -0
  1109. package/python/lib/python3.13/site-packages/pip/_vendor/requests/__version__.py +14 -0
  1110. package/python/lib/python3.13/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
  1111. package/python/lib/python3.13/site-packages/pip/_vendor/requests/adapters.py +696 -0
  1112. package/python/lib/python3.13/site-packages/pip/_vendor/requests/api.py +157 -0
  1113. package/python/lib/python3.13/site-packages/pip/_vendor/requests/auth.py +314 -0
  1114. package/python/lib/python3.13/site-packages/pip/_vendor/requests/certs.py +17 -0
  1115. package/python/lib/python3.13/site-packages/pip/_vendor/requests/compat.py +90 -0
  1116. package/python/lib/python3.13/site-packages/pip/_vendor/requests/cookies.py +561 -0
  1117. package/python/lib/python3.13/site-packages/pip/_vendor/requests/exceptions.py +151 -0
  1118. package/python/lib/python3.13/site-packages/pip/_vendor/requests/help.py +127 -0
  1119. package/python/lib/python3.13/site-packages/pip/_vendor/requests/hooks.py +33 -0
  1120. package/python/lib/python3.13/site-packages/pip/_vendor/requests/models.py +1039 -0
  1121. package/python/lib/python3.13/site-packages/pip/_vendor/requests/packages.py +25 -0
  1122. package/python/lib/python3.13/site-packages/pip/_vendor/requests/sessions.py +831 -0
  1123. package/python/lib/python3.13/site-packages/pip/_vendor/requests/status_codes.py +128 -0
  1124. package/python/lib/python3.13/site-packages/pip/_vendor/requests/structures.py +99 -0
  1125. package/python/lib/python3.13/site-packages/pip/_vendor/requests/utils.py +1086 -0
  1126. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/LICENSE +13 -0
  1127. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/__init__.py +27 -0
  1128. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/providers.py +196 -0
  1129. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  1130. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/reporters.py +55 -0
  1131. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +27 -0
  1132. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers/abstract.py +47 -0
  1133. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py +48 -0
  1134. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +57 -0
  1135. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py +627 -0
  1136. package/python/lib/python3.13/site-packages/pip/_vendor/resolvelib/structs.py +209 -0
  1137. package/python/lib/python3.13/site-packages/pip/_vendor/rich/LICENSE +19 -0
  1138. package/python/lib/python3.13/site-packages/pip/_vendor/rich/__init__.py +177 -0
  1139. package/python/lib/python3.13/site-packages/pip/_vendor/rich/__main__.py +245 -0
  1140. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
  1141. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
  1142. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
  1143. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_export_format.py +76 -0
  1144. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_extension.py +10 -0
  1145. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_fileno.py +24 -0
  1146. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_inspect.py +268 -0
  1147. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_log_render.py +94 -0
  1148. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_loop.py +43 -0
  1149. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_null_file.py +69 -0
  1150. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_palettes.py +309 -0
  1151. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_pick.py +17 -0
  1152. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_ratio.py +153 -0
  1153. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_spinners.py +482 -0
  1154. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_stack.py +16 -0
  1155. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_timer.py +19 -0
  1156. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_win32_console.py +661 -0
  1157. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_windows.py +71 -0
  1158. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
  1159. package/python/lib/python3.13/site-packages/pip/_vendor/rich/_wrap.py +93 -0
  1160. package/python/lib/python3.13/site-packages/pip/_vendor/rich/abc.py +33 -0
  1161. package/python/lib/python3.13/site-packages/pip/_vendor/rich/align.py +306 -0
  1162. package/python/lib/python3.13/site-packages/pip/_vendor/rich/ansi.py +241 -0
  1163. package/python/lib/python3.13/site-packages/pip/_vendor/rich/bar.py +93 -0
  1164. package/python/lib/python3.13/site-packages/pip/_vendor/rich/box.py +474 -0
  1165. package/python/lib/python3.13/site-packages/pip/_vendor/rich/cells.py +174 -0
  1166. package/python/lib/python3.13/site-packages/pip/_vendor/rich/color.py +621 -0
  1167. package/python/lib/python3.13/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
  1168. package/python/lib/python3.13/site-packages/pip/_vendor/rich/columns.py +187 -0
  1169. package/python/lib/python3.13/site-packages/pip/_vendor/rich/console.py +2680 -0
  1170. package/python/lib/python3.13/site-packages/pip/_vendor/rich/constrain.py +37 -0
  1171. package/python/lib/python3.13/site-packages/pip/_vendor/rich/containers.py +167 -0
  1172. package/python/lib/python3.13/site-packages/pip/_vendor/rich/control.py +219 -0
  1173. package/python/lib/python3.13/site-packages/pip/_vendor/rich/default_styles.py +193 -0
  1174. package/python/lib/python3.13/site-packages/pip/_vendor/rich/diagnose.py +39 -0
  1175. package/python/lib/python3.13/site-packages/pip/_vendor/rich/emoji.py +91 -0
  1176. package/python/lib/python3.13/site-packages/pip/_vendor/rich/errors.py +34 -0
  1177. package/python/lib/python3.13/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
  1178. package/python/lib/python3.13/site-packages/pip/_vendor/rich/filesize.py +88 -0
  1179. package/python/lib/python3.13/site-packages/pip/_vendor/rich/highlighter.py +232 -0
  1180. package/python/lib/python3.13/site-packages/pip/_vendor/rich/json.py +139 -0
  1181. package/python/lib/python3.13/site-packages/pip/_vendor/rich/jupyter.py +101 -0
  1182. package/python/lib/python3.13/site-packages/pip/_vendor/rich/layout.py +442 -0
  1183. package/python/lib/python3.13/site-packages/pip/_vendor/rich/live.py +400 -0
  1184. package/python/lib/python3.13/site-packages/pip/_vendor/rich/live_render.py +106 -0
  1185. package/python/lib/python3.13/site-packages/pip/_vendor/rich/logging.py +297 -0
  1186. package/python/lib/python3.13/site-packages/pip/_vendor/rich/markup.py +251 -0
  1187. package/python/lib/python3.13/site-packages/pip/_vendor/rich/measure.py +151 -0
  1188. package/python/lib/python3.13/site-packages/pip/_vendor/rich/padding.py +141 -0
  1189. package/python/lib/python3.13/site-packages/pip/_vendor/rich/pager.py +34 -0
  1190. package/python/lib/python3.13/site-packages/pip/_vendor/rich/palette.py +100 -0
  1191. package/python/lib/python3.13/site-packages/pip/_vendor/rich/panel.py +317 -0
  1192. package/python/lib/python3.13/site-packages/pip/_vendor/rich/pretty.py +1016 -0
  1193. package/python/lib/python3.13/site-packages/pip/_vendor/rich/progress.py +1715 -0
  1194. package/python/lib/python3.13/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
  1195. package/python/lib/python3.13/site-packages/pip/_vendor/rich/prompt.py +400 -0
  1196. package/python/lib/python3.13/site-packages/pip/_vendor/rich/protocol.py +42 -0
  1197. package/python/lib/python3.13/site-packages/pip/_vendor/rich/py.typed +0 -0
  1198. package/python/lib/python3.13/site-packages/pip/_vendor/rich/region.py +10 -0
  1199. package/python/lib/python3.13/site-packages/pip/_vendor/rich/repr.py +149 -0
  1200. package/python/lib/python3.13/site-packages/pip/_vendor/rich/rule.py +130 -0
  1201. package/python/lib/python3.13/site-packages/pip/_vendor/rich/scope.py +86 -0
  1202. package/python/lib/python3.13/site-packages/pip/_vendor/rich/screen.py +54 -0
  1203. package/python/lib/python3.13/site-packages/pip/_vendor/rich/segment.py +752 -0
  1204. package/python/lib/python3.13/site-packages/pip/_vendor/rich/spinner.py +132 -0
  1205. package/python/lib/python3.13/site-packages/pip/_vendor/rich/status.py +131 -0
  1206. package/python/lib/python3.13/site-packages/pip/_vendor/rich/style.py +792 -0
  1207. package/python/lib/python3.13/site-packages/pip/_vendor/rich/styled.py +42 -0
  1208. package/python/lib/python3.13/site-packages/pip/_vendor/rich/syntax.py +985 -0
  1209. package/python/lib/python3.13/site-packages/pip/_vendor/rich/table.py +1006 -0
  1210. package/python/lib/python3.13/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
  1211. package/python/lib/python3.13/site-packages/pip/_vendor/rich/text.py +1361 -0
  1212. package/python/lib/python3.13/site-packages/pip/_vendor/rich/theme.py +115 -0
  1213. package/python/lib/python3.13/site-packages/pip/_vendor/rich/themes.py +5 -0
  1214. package/python/lib/python3.13/site-packages/pip/_vendor/rich/traceback.py +899 -0
  1215. package/python/lib/python3.13/site-packages/pip/_vendor/rich/tree.py +257 -0
  1216. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/LICENSE +21 -0
  1217. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/__init__.py +8 -0
  1218. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/_parser.py +777 -0
  1219. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/_re.py +115 -0
  1220. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/_types.py +10 -0
  1221. package/python/lib/python3.13/site-packages/pip/_vendor/tomli/py.typed +1 -0
  1222. package/python/lib/python3.13/site-packages/pip/_vendor/tomli_w/LICENSE +21 -0
  1223. package/python/lib/python3.13/site-packages/pip/_vendor/tomli_w/__init__.py +4 -0
  1224. package/python/lib/python3.13/site-packages/pip/_vendor/tomli_w/_writer.py +229 -0
  1225. package/python/lib/python3.13/site-packages/pip/_vendor/tomli_w/py.typed +1 -0
  1226. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/LICENSE +21 -0
  1227. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/__init__.py +36 -0
  1228. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/_api.py +341 -0
  1229. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/_macos.py +571 -0
  1230. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/_openssl.py +68 -0
  1231. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
  1232. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/_windows.py +567 -0
  1233. package/python/lib/python3.13/site-packages/pip/_vendor/truststore/py.typed +0 -0
  1234. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/LICENSE.txt +21 -0
  1235. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
  1236. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
  1237. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/_version.py +2 -0
  1238. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/connection.py +572 -0
  1239. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/connectionpool.py +1140 -0
  1240. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  1241. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
  1242. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  1243. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
  1244. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
  1245. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
  1246. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
  1247. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
  1248. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
  1249. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
  1250. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
  1251. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/fields.py +274 -0
  1252. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
  1253. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  1254. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  1255. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
  1256. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
  1257. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
  1258. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
  1259. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/request.py +191 -0
  1260. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/response.py +879 -0
  1261. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
  1262. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
  1263. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
  1264. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
  1265. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
  1266. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
  1267. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
  1268. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/ssl_.py +504 -0
  1269. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
  1270. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
  1271. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
  1272. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
  1273. package/python/lib/python3.13/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
  1274. package/python/lib/python3.13/site-packages/pip/_vendor/vendor.txt +19 -0
  1275. package/python/lib/python3.13/site-packages/pip/py.typed +4 -0
  1276. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/INSTALLER +1 -0
  1277. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/METADATA +111 -0
  1278. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/RECORD +879 -0
  1279. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/REQUESTED +0 -0
  1280. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/WHEEL +4 -0
  1281. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/direct_url.json +1 -0
  1282. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/entry_points.txt +4 -0
  1283. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/AUTHORS.txt +860 -0
  1284. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/LICENSE.txt +20 -0
  1285. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  1286. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
  1287. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  1288. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
  1289. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
  1290. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
  1291. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
  1292. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
  1293. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  1294. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
  1295. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
  1296. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
  1297. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
  1298. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  1299. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
  1300. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
  1301. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
  1302. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
  1303. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
  1304. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
  1305. package/python/lib/python3.13/site-packages/pip-26.0.1.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
  1306. package/python/lib/python3.13/site.py +773 -0
  1307. package/python/lib/python3.13/smtplib.py +1123 -0
  1308. package/python/lib/python3.13/socket.py +982 -0
  1309. package/python/lib/python3.13/socketserver.py +863 -0
  1310. package/python/lib/python3.13/sqlite3/__init__.py +70 -0
  1311. package/python/lib/python3.13/sqlite3/__main__.py +139 -0
  1312. package/python/lib/python3.13/sqlite3/dbapi2.py +108 -0
  1313. package/python/lib/python3.13/sqlite3/dump.py +113 -0
  1314. package/python/lib/python3.13/sre_compile.py +7 -0
  1315. package/python/lib/python3.13/sre_constants.py +7 -0
  1316. package/python/lib/python3.13/sre_parse.py +7 -0
  1317. package/python/lib/python3.13/ssl.py +1529 -0
  1318. package/python/lib/python3.13/stat.py +212 -0
  1319. package/python/lib/python3.13/statistics.py +1817 -0
  1320. package/python/lib/python3.13/string.py +309 -0
  1321. package/python/lib/python3.13/stringprep.py +272 -0
  1322. package/python/lib/python3.13/struct.py +15 -0
  1323. package/python/lib/python3.13/subprocess.py +2258 -0
  1324. package/python/lib/python3.13/symtable.py +414 -0
  1325. package/python/lib/python3.13/sysconfig/__init__.py +726 -0
  1326. package/python/lib/python3.13/sysconfig/__main__.py +248 -0
  1327. package/python/lib/python3.13/tabnanny.py +340 -0
  1328. package/python/lib/python3.13/tarfile.py +3070 -0
  1329. package/python/lib/python3.13/tempfile.py +957 -0
  1330. package/python/lib/python3.13/textwrap.py +497 -0
  1331. package/python/lib/python3.13/this.py +28 -0
  1332. package/python/lib/python3.13/threading.py +1602 -0
  1333. package/python/lib/python3.13/timeit.py +381 -0
  1334. package/python/lib/python3.13/tkinter/__init__.py +5002 -0
  1335. package/python/lib/python3.13/tkinter/__main__.py +7 -0
  1336. package/python/lib/python3.13/tkinter/colorchooser.py +86 -0
  1337. package/python/lib/python3.13/tkinter/commondialog.py +53 -0
  1338. package/python/lib/python3.13/tkinter/constants.py +110 -0
  1339. package/python/lib/python3.13/tkinter/dialog.py +49 -0
  1340. package/python/lib/python3.13/tkinter/dnd.py +324 -0
  1341. package/python/lib/python3.13/tkinter/filedialog.py +492 -0
  1342. package/python/lib/python3.13/tkinter/font.py +239 -0
  1343. package/python/lib/python3.13/tkinter/messagebox.py +146 -0
  1344. package/python/lib/python3.13/tkinter/scrolledtext.py +56 -0
  1345. package/python/lib/python3.13/tkinter/simpledialog.py +441 -0
  1346. package/python/lib/python3.13/tkinter/ttk.py +1647 -0
  1347. package/python/lib/python3.13/token.py +141 -0
  1348. package/python/lib/python3.13/tokenize.py +592 -0
  1349. package/python/lib/python3.13/tomllib/__init__.py +10 -0
  1350. package/python/lib/python3.13/tomllib/_parser.py +691 -0
  1351. package/python/lib/python3.13/tomllib/_re.py +107 -0
  1352. package/python/lib/python3.13/tomllib/_types.py +10 -0
  1353. package/python/lib/python3.13/tomllib/mypy.ini +17 -0
  1354. package/python/lib/python3.13/trace.py +754 -0
  1355. package/python/lib/python3.13/traceback.py +1638 -0
  1356. package/python/lib/python3.13/tracemalloc.py +560 -0
  1357. package/python/lib/python3.13/tty.py +73 -0
  1358. package/python/lib/python3.13/turtle.py +4199 -0
  1359. package/python/lib/python3.13/turtledemo/__init__.py +14 -0
  1360. package/python/lib/python3.13/turtledemo/__main__.py +401 -0
  1361. package/python/lib/python3.13/turtledemo/bytedesign.py +161 -0
  1362. package/python/lib/python3.13/turtledemo/chaos.py +59 -0
  1363. package/python/lib/python3.13/turtledemo/clock.py +138 -0
  1364. package/python/lib/python3.13/turtledemo/colormixer.py +58 -0
  1365. package/python/lib/python3.13/turtledemo/forest.py +108 -0
  1366. package/python/lib/python3.13/turtledemo/fractalcurves.py +138 -0
  1367. package/python/lib/python3.13/turtledemo/lindenmayer.py +119 -0
  1368. package/python/lib/python3.13/turtledemo/minimal_hanoi.py +79 -0
  1369. package/python/lib/python3.13/turtledemo/nim.py +226 -0
  1370. package/python/lib/python3.13/turtledemo/paint.py +54 -0
  1371. package/python/lib/python3.13/turtledemo/peace.py +61 -0
  1372. package/python/lib/python3.13/turtledemo/penrose.py +175 -0
  1373. package/python/lib/python3.13/turtledemo/planet_and_moon.py +111 -0
  1374. package/python/lib/python3.13/turtledemo/rosette.py +65 -0
  1375. package/python/lib/python3.13/turtledemo/round_dance.py +86 -0
  1376. package/python/lib/python3.13/turtledemo/sorting_animate.py +204 -0
  1377. package/python/lib/python3.13/turtledemo/tree.py +62 -0
  1378. package/python/lib/python3.13/turtledemo/turtle.cfg +10 -0
  1379. package/python/lib/python3.13/turtledemo/two_canvases.py +54 -0
  1380. package/python/lib/python3.13/turtledemo/yinyang.py +49 -0
  1381. package/python/lib/python3.13/types.py +345 -0
  1382. package/python/lib/python3.13/typing.py +3831 -0
  1383. package/python/lib/python3.13/unittest/__init__.py +80 -0
  1384. package/python/lib/python3.13/unittest/__main__.py +18 -0
  1385. package/python/lib/python3.13/unittest/_log.py +86 -0
  1386. package/python/lib/python3.13/unittest/async_case.py +146 -0
  1387. package/python/lib/python3.13/unittest/case.py +1478 -0
  1388. package/python/lib/python3.13/unittest/loader.py +453 -0
  1389. package/python/lib/python3.13/unittest/main.py +280 -0
  1390. package/python/lib/python3.13/unittest/mock.py +3179 -0
  1391. package/python/lib/python3.13/unittest/result.py +256 -0
  1392. package/python/lib/python3.13/unittest/runner.py +292 -0
  1393. package/python/lib/python3.13/unittest/signals.py +71 -0
  1394. package/python/lib/python3.13/unittest/suite.py +379 -0
  1395. package/python/lib/python3.13/unittest/util.py +170 -0
  1396. package/python/lib/python3.13/urllib/__init__.py +0 -0
  1397. package/python/lib/python3.13/urllib/error.py +74 -0
  1398. package/python/lib/python3.13/urllib/parse.py +1262 -0
  1399. package/python/lib/python3.13/urllib/request.py +2797 -0
  1400. package/python/lib/python3.13/urllib/response.py +84 -0
  1401. package/python/lib/python3.13/urllib/robotparser.py +286 -0
  1402. package/python/lib/python3.13/uuid.py +784 -0
  1403. package/python/lib/python3.13/venv/__init__.py +687 -0
  1404. package/python/lib/python3.13/venv/__main__.py +10 -0
  1405. package/python/lib/python3.13/venv/scripts/common/Activate.ps1 +248 -0
  1406. package/python/lib/python3.13/venv/scripts/common/activate +76 -0
  1407. package/python/lib/python3.13/venv/scripts/common/activate.fish +69 -0
  1408. package/python/lib/python3.13/venv/scripts/posix/activate.csh +27 -0
  1409. package/python/lib/python3.13/warnings.py +735 -0
  1410. package/python/lib/python3.13/wave.py +665 -0
  1411. package/python/lib/python3.13/weakref.py +674 -0
  1412. package/python/lib/python3.13/webbrowser.py +710 -0
  1413. package/python/lib/python3.13/wsgiref/__init__.py +25 -0
  1414. package/python/lib/python3.13/wsgiref/handlers.py +573 -0
  1415. package/python/lib/python3.13/wsgiref/headers.py +187 -0
  1416. package/python/lib/python3.13/wsgiref/simple_server.py +161 -0
  1417. package/python/lib/python3.13/wsgiref/types.py +54 -0
  1418. package/python/lib/python3.13/wsgiref/util.py +159 -0
  1419. package/python/lib/python3.13/wsgiref/validate.py +438 -0
  1420. package/python/lib/python3.13/xml/__init__.py +20 -0
  1421. package/python/lib/python3.13/xml/dom/NodeFilter.py +27 -0
  1422. package/python/lib/python3.13/xml/dom/__init__.py +140 -0
  1423. package/python/lib/python3.13/xml/dom/domreg.py +99 -0
  1424. package/python/lib/python3.13/xml/dom/expatbuilder.py +962 -0
  1425. package/python/lib/python3.13/xml/dom/minicompat.py +109 -0
  1426. package/python/lib/python3.13/xml/dom/minidom.py +2024 -0
  1427. package/python/lib/python3.13/xml/dom/pulldom.py +336 -0
  1428. package/python/lib/python3.13/xml/dom/xmlbuilder.py +389 -0
  1429. package/python/lib/python3.13/xml/etree/ElementInclude.py +186 -0
  1430. package/python/lib/python3.13/xml/etree/ElementPath.py +423 -0
  1431. package/python/lib/python3.13/xml/etree/ElementTree.py +2098 -0
  1432. package/python/lib/python3.13/xml/etree/__init__.py +33 -0
  1433. package/python/lib/python3.13/xml/etree/cElementTree.py +3 -0
  1434. package/python/lib/python3.13/xml/parsers/__init__.py +8 -0
  1435. package/python/lib/python3.13/xml/parsers/expat.py +8 -0
  1436. package/python/lib/python3.13/xml/sax/__init__.py +94 -0
  1437. package/python/lib/python3.13/xml/sax/_exceptions.py +127 -0
  1438. package/python/lib/python3.13/xml/sax/expatreader.py +454 -0
  1439. package/python/lib/python3.13/xml/sax/handler.py +387 -0
  1440. package/python/lib/python3.13/xml/sax/saxutils.py +369 -0
  1441. package/python/lib/python3.13/xml/sax/xmlreader.py +378 -0
  1442. package/python/lib/python3.13/xmlrpc/__init__.py +1 -0
  1443. package/python/lib/python3.13/xmlrpc/client.py +1503 -0
  1444. package/python/lib/python3.13/xmlrpc/server.py +1002 -0
  1445. package/python/lib/python3.13/zipapp.py +229 -0
  1446. package/python/lib/python3.13/zipfile/__init__.py +2375 -0
  1447. package/python/lib/python3.13/zipfile/__main__.py +4 -0
  1448. package/python/lib/python3.13/zipfile/_path/__init__.py +452 -0
  1449. package/python/lib/python3.13/zipfile/_path/glob.py +113 -0
  1450. package/python/lib/python3.13/zipimport.py +803 -0
  1451. package/python/lib/python3.13/zoneinfo/__init__.py +34 -0
  1452. package/python/lib/python3.13/zoneinfo/_common.py +168 -0
  1453. package/python/lib/python3.13/zoneinfo/_tzpath.py +189 -0
  1454. package/python/lib/python3.13/zoneinfo/_zoneinfo.py +772 -0
  1455. package/python/lib/tcl9/9.0/http-2.10.1.tm +5475 -0
  1456. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +1349 -0
  1457. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +241 -0
  1458. package/python/lib/tcl9/9.0/platform-1.1.0.tm +443 -0
  1459. package/python/lib/tcl9/9.0/tcltest-2.5.10.tm +3588 -0
  1460. package/python/lib/tcl9.0/auto.tcl +711 -0
  1461. package/python/lib/tcl9.0/clock.tcl +2110 -0
  1462. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +746 -0
  1463. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +292 -0
  1464. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +3 -0
  1465. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  1466. package/python/lib/tcl9.0/encoding/ascii.enc +20 -0
  1467. package/python/lib/tcl9.0/encoding/big5.enc +1516 -0
  1468. package/python/lib/tcl9.0/encoding/cns11643.enc +1584 -0
  1469. package/python/lib/tcl9.0/encoding/cp1250.enc +20 -0
  1470. package/python/lib/tcl9.0/encoding/cp1251.enc +20 -0
  1471. package/python/lib/tcl9.0/encoding/cp1252.enc +20 -0
  1472. package/python/lib/tcl9.0/encoding/cp1253.enc +20 -0
  1473. package/python/lib/tcl9.0/encoding/cp1254.enc +20 -0
  1474. package/python/lib/tcl9.0/encoding/cp1255.enc +20 -0
  1475. package/python/lib/tcl9.0/encoding/cp1256.enc +20 -0
  1476. package/python/lib/tcl9.0/encoding/cp1257.enc +20 -0
  1477. package/python/lib/tcl9.0/encoding/cp1258.enc +20 -0
  1478. package/python/lib/tcl9.0/encoding/cp165.enc +20 -0
  1479. package/python/lib/tcl9.0/encoding/cp437.enc +20 -0
  1480. package/python/lib/tcl9.0/encoding/cp737.enc +20 -0
  1481. package/python/lib/tcl9.0/encoding/cp775.enc +20 -0
  1482. package/python/lib/tcl9.0/encoding/cp850.enc +20 -0
  1483. package/python/lib/tcl9.0/encoding/cp852.enc +20 -0
  1484. package/python/lib/tcl9.0/encoding/cp855.enc +20 -0
  1485. package/python/lib/tcl9.0/encoding/cp857.enc +20 -0
  1486. package/python/lib/tcl9.0/encoding/cp860.enc +20 -0
  1487. package/python/lib/tcl9.0/encoding/cp861.enc +20 -0
  1488. package/python/lib/tcl9.0/encoding/cp862.enc +20 -0
  1489. package/python/lib/tcl9.0/encoding/cp863.enc +20 -0
  1490. package/python/lib/tcl9.0/encoding/cp864.enc +20 -0
  1491. package/python/lib/tcl9.0/encoding/cp865.enc +20 -0
  1492. package/python/lib/tcl9.0/encoding/cp866.enc +20 -0
  1493. package/python/lib/tcl9.0/encoding/cp869.enc +20 -0
  1494. package/python/lib/tcl9.0/encoding/cp874.enc +20 -0
  1495. package/python/lib/tcl9.0/encoding/cp932.enc +801 -0
  1496. package/python/lib/tcl9.0/encoding/cp936.enc +2162 -0
  1497. package/python/lib/tcl9.0/encoding/cp949.enc +2128 -0
  1498. package/python/lib/tcl9.0/encoding/cp950.enc +1499 -0
  1499. package/python/lib/tcl9.0/encoding/dingbats.enc +20 -0
  1500. package/python/lib/tcl9.0/encoding/ebcdic.enc +20 -0
  1501. package/python/lib/tcl9.0/encoding/euc-cn.enc +1397 -0
  1502. package/python/lib/tcl9.0/encoding/euc-jp.enc +1353 -0
  1503. package/python/lib/tcl9.0/encoding/euc-kr.enc +1533 -0
  1504. package/python/lib/tcl9.0/encoding/gb12345.enc +1414 -0
  1505. package/python/lib/tcl9.0/encoding/gb1988.enc +20 -0
  1506. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +1380 -0
  1507. package/python/lib/tcl9.0/encoding/gb2312.enc +1397 -0
  1508. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +12 -0
  1509. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +7 -0
  1510. package/python/lib/tcl9.0/encoding/iso2022.enc +14 -0
  1511. package/python/lib/tcl9.0/encoding/iso8859-1.enc +20 -0
  1512. package/python/lib/tcl9.0/encoding/iso8859-10.enc +20 -0
  1513. package/python/lib/tcl9.0/encoding/iso8859-11.enc +20 -0
  1514. package/python/lib/tcl9.0/encoding/iso8859-13.enc +20 -0
  1515. package/python/lib/tcl9.0/encoding/iso8859-14.enc +20 -0
  1516. package/python/lib/tcl9.0/encoding/iso8859-15.enc +20 -0
  1517. package/python/lib/tcl9.0/encoding/iso8859-16.enc +20 -0
  1518. package/python/lib/tcl9.0/encoding/iso8859-2.enc +20 -0
  1519. package/python/lib/tcl9.0/encoding/iso8859-3.enc +20 -0
  1520. package/python/lib/tcl9.0/encoding/iso8859-4.enc +20 -0
  1521. package/python/lib/tcl9.0/encoding/iso8859-5.enc +20 -0
  1522. package/python/lib/tcl9.0/encoding/iso8859-6.enc +20 -0
  1523. package/python/lib/tcl9.0/encoding/iso8859-7.enc +20 -0
  1524. package/python/lib/tcl9.0/encoding/iso8859-8.enc +20 -0
  1525. package/python/lib/tcl9.0/encoding/iso8859-9.enc +20 -0
  1526. package/python/lib/tcl9.0/encoding/jis0201.enc +20 -0
  1527. package/python/lib/tcl9.0/encoding/jis0208.enc +1319 -0
  1528. package/python/lib/tcl9.0/encoding/jis0212.enc +1159 -0
  1529. package/python/lib/tcl9.0/encoding/koi8-r.enc +20 -0
  1530. package/python/lib/tcl9.0/encoding/koi8-ru.enc +20 -0
  1531. package/python/lib/tcl9.0/encoding/koi8-t.enc +20 -0
  1532. package/python/lib/tcl9.0/encoding/koi8-u.enc +20 -0
  1533. package/python/lib/tcl9.0/encoding/ksc5601.enc +1516 -0
  1534. package/python/lib/tcl9.0/encoding/macCentEuro.enc +20 -0
  1535. package/python/lib/tcl9.0/encoding/macCroatian.enc +20 -0
  1536. package/python/lib/tcl9.0/encoding/macCyrillic.enc +20 -0
  1537. package/python/lib/tcl9.0/encoding/macDingbats.enc +20 -0
  1538. package/python/lib/tcl9.0/encoding/macGreek.enc +20 -0
  1539. package/python/lib/tcl9.0/encoding/macIceland.enc +20 -0
  1540. package/python/lib/tcl9.0/encoding/macJapan.enc +785 -0
  1541. package/python/lib/tcl9.0/encoding/macRoman.enc +20 -0
  1542. package/python/lib/tcl9.0/encoding/macRomania.enc +20 -0
  1543. package/python/lib/tcl9.0/encoding/macThai.enc +20 -0
  1544. package/python/lib/tcl9.0/encoding/macTurkish.enc +20 -0
  1545. package/python/lib/tcl9.0/encoding/macUkraine.enc +20 -0
  1546. package/python/lib/tcl9.0/encoding/shiftjis.enc +690 -0
  1547. package/python/lib/tcl9.0/encoding/symbol.enc +20 -0
  1548. package/python/lib/tcl9.0/encoding/tis-620.enc +20 -0
  1549. package/python/lib/tcl9.0/foreachline.tcl +25 -0
  1550. package/python/lib/tcl9.0/history.tcl +335 -0
  1551. package/python/lib/tcl9.0/icu.tcl +145 -0
  1552. package/python/lib/tcl9.0/init.tcl +773 -0
  1553. package/python/lib/tcl9.0/install.tcl +275 -0
  1554. package/python/lib/tcl9.0/msgs/af.msg +49 -0
  1555. package/python/lib/tcl9.0/msgs/af_za.msg +6 -0
  1556. package/python/lib/tcl9.0/msgs/ar.msg +54 -0
  1557. package/python/lib/tcl9.0/msgs/ar_in.msg +6 -0
  1558. package/python/lib/tcl9.0/msgs/ar_jo.msg +39 -0
  1559. package/python/lib/tcl9.0/msgs/ar_lb.msg +39 -0
  1560. package/python/lib/tcl9.0/msgs/ar_sy.msg +39 -0
  1561. package/python/lib/tcl9.0/msgs/be.msg +52 -0
  1562. package/python/lib/tcl9.0/msgs/bg.msg +52 -0
  1563. package/python/lib/tcl9.0/msgs/bn.msg +49 -0
  1564. package/python/lib/tcl9.0/msgs/bn_in.msg +6 -0
  1565. package/python/lib/tcl9.0/msgs/ca.msg +50 -0
  1566. package/python/lib/tcl9.0/msgs/cs.msg +54 -0
  1567. package/python/lib/tcl9.0/msgs/da.msg +52 -0
  1568. package/python/lib/tcl9.0/msgs/de.msg +54 -0
  1569. package/python/lib/tcl9.0/msgs/de_at.msg +35 -0
  1570. package/python/lib/tcl9.0/msgs/de_be.msg +53 -0
  1571. package/python/lib/tcl9.0/msgs/el.msg +52 -0
  1572. package/python/lib/tcl9.0/msgs/en_au.msg +7 -0
  1573. package/python/lib/tcl9.0/msgs/en_be.msg +7 -0
  1574. package/python/lib/tcl9.0/msgs/en_bw.msg +6 -0
  1575. package/python/lib/tcl9.0/msgs/en_ca.msg +7 -0
  1576. package/python/lib/tcl9.0/msgs/en_gb.msg +7 -0
  1577. package/python/lib/tcl9.0/msgs/en_hk.msg +8 -0
  1578. package/python/lib/tcl9.0/msgs/en_ie.msg +7 -0
  1579. package/python/lib/tcl9.0/msgs/en_in.msg +8 -0
  1580. package/python/lib/tcl9.0/msgs/en_nz.msg +7 -0
  1581. package/python/lib/tcl9.0/msgs/en_ph.msg +8 -0
  1582. package/python/lib/tcl9.0/msgs/en_sg.msg +6 -0
  1583. package/python/lib/tcl9.0/msgs/en_za.msg +6 -0
  1584. package/python/lib/tcl9.0/msgs/en_zw.msg +6 -0
  1585. package/python/lib/tcl9.0/msgs/eo.msg +54 -0
  1586. package/python/lib/tcl9.0/msgs/es.msg +52 -0
  1587. package/python/lib/tcl9.0/msgs/es_ar.msg +6 -0
  1588. package/python/lib/tcl9.0/msgs/es_bo.msg +6 -0
  1589. package/python/lib/tcl9.0/msgs/es_cl.msg +6 -0
  1590. package/python/lib/tcl9.0/msgs/es_co.msg +6 -0
  1591. package/python/lib/tcl9.0/msgs/es_cr.msg +6 -0
  1592. package/python/lib/tcl9.0/msgs/es_do.msg +6 -0
  1593. package/python/lib/tcl9.0/msgs/es_ec.msg +6 -0
  1594. package/python/lib/tcl9.0/msgs/es_gt.msg +6 -0
  1595. package/python/lib/tcl9.0/msgs/es_hn.msg +6 -0
  1596. package/python/lib/tcl9.0/msgs/es_mx.msg +6 -0
  1597. package/python/lib/tcl9.0/msgs/es_ni.msg +6 -0
  1598. package/python/lib/tcl9.0/msgs/es_pa.msg +6 -0
  1599. package/python/lib/tcl9.0/msgs/es_pe.msg +6 -0
  1600. package/python/lib/tcl9.0/msgs/es_pr.msg +6 -0
  1601. package/python/lib/tcl9.0/msgs/es_py.msg +6 -0
  1602. package/python/lib/tcl9.0/msgs/es_sv.msg +6 -0
  1603. package/python/lib/tcl9.0/msgs/es_uy.msg +6 -0
  1604. package/python/lib/tcl9.0/msgs/es_ve.msg +6 -0
  1605. package/python/lib/tcl9.0/msgs/et.msg +52 -0
  1606. package/python/lib/tcl9.0/msgs/eu.msg +47 -0
  1607. package/python/lib/tcl9.0/msgs/eu_es.msg +7 -0
  1608. package/python/lib/tcl9.0/msgs/fa.msg +47 -0
  1609. package/python/lib/tcl9.0/msgs/fa_in.msg +52 -0
  1610. package/python/lib/tcl9.0/msgs/fa_ir.msg +9 -0
  1611. package/python/lib/tcl9.0/msgs/fi.msg +50 -0
  1612. package/python/lib/tcl9.0/msgs/fo.msg +47 -0
  1613. package/python/lib/tcl9.0/msgs/fo_fo.msg +7 -0
  1614. package/python/lib/tcl9.0/msgs/fr.msg +52 -0
  1615. package/python/lib/tcl9.0/msgs/fr_be.msg +7 -0
  1616. package/python/lib/tcl9.0/msgs/fr_ca.msg +7 -0
  1617. package/python/lib/tcl9.0/msgs/fr_ch.msg +7 -0
  1618. package/python/lib/tcl9.0/msgs/ga.msg +47 -0
  1619. package/python/lib/tcl9.0/msgs/ga_ie.msg +7 -0
  1620. package/python/lib/tcl9.0/msgs/gl.msg +47 -0
  1621. package/python/lib/tcl9.0/msgs/gl_es.msg +6 -0
  1622. package/python/lib/tcl9.0/msgs/gv.msg +47 -0
  1623. package/python/lib/tcl9.0/msgs/gv_gb.msg +6 -0
  1624. package/python/lib/tcl9.0/msgs/he.msg +52 -0
  1625. package/python/lib/tcl9.0/msgs/hi.msg +39 -0
  1626. package/python/lib/tcl9.0/msgs/hi_in.msg +6 -0
  1627. package/python/lib/tcl9.0/msgs/hr.msg +50 -0
  1628. package/python/lib/tcl9.0/msgs/hu.msg +54 -0
  1629. package/python/lib/tcl9.0/msgs/id.msg +47 -0
  1630. package/python/lib/tcl9.0/msgs/id_id.msg +6 -0
  1631. package/python/lib/tcl9.0/msgs/is.msg +50 -0
  1632. package/python/lib/tcl9.0/msgs/it.msg +54 -0
  1633. package/python/lib/tcl9.0/msgs/it_ch.msg +6 -0
  1634. package/python/lib/tcl9.0/msgs/ja.msg +44 -0
  1635. package/python/lib/tcl9.0/msgs/kl.msg +47 -0
  1636. package/python/lib/tcl9.0/msgs/kl_gl.msg +7 -0
  1637. package/python/lib/tcl9.0/msgs/ko.msg +55 -0
  1638. package/python/lib/tcl9.0/msgs/ko_kr.msg +8 -0
  1639. package/python/lib/tcl9.0/msgs/kok.msg +39 -0
  1640. package/python/lib/tcl9.0/msgs/kok_in.msg +6 -0
  1641. package/python/lib/tcl9.0/msgs/kw.msg +47 -0
  1642. package/python/lib/tcl9.0/msgs/kw_gb.msg +6 -0
  1643. package/python/lib/tcl9.0/msgs/lt.msg +52 -0
  1644. package/python/lib/tcl9.0/msgs/lv.msg +52 -0
  1645. package/python/lib/tcl9.0/msgs/mk.msg +52 -0
  1646. package/python/lib/tcl9.0/msgs/mr.msg +39 -0
  1647. package/python/lib/tcl9.0/msgs/mr_in.msg +6 -0
  1648. package/python/lib/tcl9.0/msgs/ms.msg +47 -0
  1649. package/python/lib/tcl9.0/msgs/ms_my.msg +6 -0
  1650. package/python/lib/tcl9.0/msgs/mt.msg +27 -0
  1651. package/python/lib/tcl9.0/msgs/nb.msg +52 -0
  1652. package/python/lib/tcl9.0/msgs/nl.msg +50 -0
  1653. package/python/lib/tcl9.0/msgs/nl_be.msg +7 -0
  1654. package/python/lib/tcl9.0/msgs/nn.msg +52 -0
  1655. package/python/lib/tcl9.0/msgs/pl.msg +52 -0
  1656. package/python/lib/tcl9.0/msgs/pt.msg +50 -0
  1657. package/python/lib/tcl9.0/msgs/pt_br.msg +7 -0
  1658. package/python/lib/tcl9.0/msgs/ro.msg +52 -0
  1659. package/python/lib/tcl9.0/msgs/ru.msg +52 -0
  1660. package/python/lib/tcl9.0/msgs/ru_ua.msg +6 -0
  1661. package/python/lib/tcl9.0/msgs/sh.msg +52 -0
  1662. package/python/lib/tcl9.0/msgs/sk.msg +52 -0
  1663. package/python/lib/tcl9.0/msgs/sl.msg +52 -0
  1664. package/python/lib/tcl9.0/msgs/sq.msg +54 -0
  1665. package/python/lib/tcl9.0/msgs/sr.msg +52 -0
  1666. package/python/lib/tcl9.0/msgs/sv.msg +52 -0
  1667. package/python/lib/tcl9.0/msgs/sw.msg +49 -0
  1668. package/python/lib/tcl9.0/msgs/ta.msg +39 -0
  1669. package/python/lib/tcl9.0/msgs/ta_in.msg +6 -0
  1670. package/python/lib/tcl9.0/msgs/te.msg +47 -0
  1671. package/python/lib/tcl9.0/msgs/te_in.msg +8 -0
  1672. package/python/lib/tcl9.0/msgs/th.msg +54 -0
  1673. package/python/lib/tcl9.0/msgs/tr.msg +50 -0
  1674. package/python/lib/tcl9.0/msgs/uk.msg +52 -0
  1675. package/python/lib/tcl9.0/msgs/vi.msg +50 -0
  1676. package/python/lib/tcl9.0/msgs/zh.msg +55 -0
  1677. package/python/lib/tcl9.0/msgs/zh_cn.msg +7 -0
  1678. package/python/lib/tcl9.0/msgs/zh_hk.msg +28 -0
  1679. package/python/lib/tcl9.0/msgs/zh_sg.msg +8 -0
  1680. package/python/lib/tcl9.0/msgs/zh_tw.msg +8 -0
  1681. package/python/lib/tcl9.0/opt0.4/optparse.tcl +1069 -0
  1682. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +12 -0
  1683. package/python/lib/tcl9.0/package.tcl +767 -0
  1684. package/python/lib/tcl9.0/parray.tcl +28 -0
  1685. package/python/lib/tcl9.0/readfile.tcl +23 -0
  1686. package/python/lib/tcl9.0/safe.tcl +1461 -0
  1687. package/python/lib/tcl9.0/tclAppInit.c +183 -0
  1688. package/python/lib/tcl9.0/tclIndex +112 -0
  1689. package/python/lib/tcl9.0/tm.tcl +378 -0
  1690. package/python/lib/tcl9.0/word.tcl +155 -0
  1691. package/python/lib/tcl9.0/writefile.tcl +37 -0
  1692. package/python/lib/thread3.0.4/libtcl9thread3.0.4.dylib +0 -0
  1693. package/python/lib/thread3.0.4/libthread3.0.4.dylib +0 -0
  1694. package/python/lib/thread3.0.4/pkgIndex.tcl +52 -0
  1695. package/python/lib/thread3.0.4/ttrace.tcl +943 -0
  1696. package/python/lib/tk9.0/bgerror.tcl +282 -0
  1697. package/python/lib/tk9.0/button.tcl +782 -0
  1698. package/python/lib/tk9.0/choosedir.tcl +310 -0
  1699. package/python/lib/tk9.0/clrpick.tcl +696 -0
  1700. package/python/lib/tk9.0/comdlg.tcl +322 -0
  1701. package/python/lib/tk9.0/console.tcl +1148 -0
  1702. package/python/lib/tk9.0/demos/README +44 -0
  1703. package/python/lib/tk9.0/demos/anilabel.tcl +168 -0
  1704. package/python/lib/tk9.0/demos/aniwave.tcl +107 -0
  1705. package/python/lib/tk9.0/demos/arrow.tcl +260 -0
  1706. package/python/lib/tk9.0/demos/bind.tcl +78 -0
  1707. package/python/lib/tk9.0/demos/bitmap.tcl +52 -0
  1708. package/python/lib/tk9.0/demos/browse +66 -0
  1709. package/python/lib/tk9.0/demos/button.tcl +47 -0
  1710. package/python/lib/tk9.0/demos/check.tcl +71 -0
  1711. package/python/lib/tk9.0/demos/clrpick.tcl +54 -0
  1712. package/python/lib/tk9.0/demos/colors.tcl +99 -0
  1713. package/python/lib/tk9.0/demos/combo.tcl +62 -0
  1714. package/python/lib/tk9.0/demos/cscroll.tcl +134 -0
  1715. package/python/lib/tk9.0/demos/ctext.tcl +172 -0
  1716. package/python/lib/tk9.0/demos/dialog1.tcl +25 -0
  1717. package/python/lib/tk9.0/demos/dialog2.tcl +18 -0
  1718. package/python/lib/tk9.0/demos/en.msg +103 -0
  1719. package/python/lib/tk9.0/demos/entry1.tcl +34 -0
  1720. package/python/lib/tk9.0/demos/entry2.tcl +47 -0
  1721. package/python/lib/tk9.0/demos/entry3.tcl +185 -0
  1722. package/python/lib/tk9.0/demos/filebox.tcl +82 -0
  1723. package/python/lib/tk9.0/demos/floor.tcl +1379 -0
  1724. package/python/lib/tk9.0/demos/fontchoose.tcl +67 -0
  1725. package/python/lib/tk9.0/demos/form.tcl +38 -0
  1726. package/python/lib/tk9.0/demos/goldberg.tcl +1970 -0
  1727. package/python/lib/tk9.0/demos/hello +22 -0
  1728. package/python/lib/tk9.0/demos/hscale.tcl +49 -0
  1729. package/python/lib/tk9.0/demos/icon.tcl +51 -0
  1730. package/python/lib/tk9.0/demos/image1.tcl +44 -0
  1731. package/python/lib/tk9.0/demos/image2.tcl +114 -0
  1732. package/python/lib/tk9.0/demos/images/Tcl.svg +75 -0
  1733. package/python/lib/tk9.0/demos/images/Tk_feather.png +0 -0
  1734. package/python/lib/tk9.0/demos/images/earth.gif +0 -0
  1735. package/python/lib/tk9.0/demos/images/earthmenu.png +0 -0
  1736. package/python/lib/tk9.0/demos/images/earthris.gif +0 -0
  1737. package/python/lib/tk9.0/demos/images/flagdown.xbm +27 -0
  1738. package/python/lib/tk9.0/demos/images/flagup.xbm +27 -0
  1739. package/python/lib/tk9.0/demos/images/gray25.xbm +6 -0
  1740. package/python/lib/tk9.0/demos/images/letters.xbm +27 -0
  1741. package/python/lib/tk9.0/demos/images/noletter.xbm +27 -0
  1742. package/python/lib/tk9.0/demos/images/ouster.png +0 -0
  1743. package/python/lib/tk9.0/demos/images/pattern.xbm +6 -0
  1744. package/python/lib/tk9.0/demos/images/plowed_field.png +0 -0
  1745. package/python/lib/tk9.0/demos/images/starry_night.png +0 -0
  1746. package/python/lib/tk9.0/demos/images/tcllogo.gif +0 -0
  1747. package/python/lib/tk9.0/demos/images/teapot.ppm +31 -0
  1748. package/python/lib/tk9.0/demos/items.tcl +307 -0
  1749. package/python/lib/tk9.0/demos/ixset +328 -0
  1750. package/python/lib/tk9.0/demos/knightstour.tcl +274 -0
  1751. package/python/lib/tk9.0/demos/label.tcl +47 -0
  1752. package/python/lib/tk9.0/demos/labelframe.tcl +76 -0
  1753. package/python/lib/tk9.0/demos/license.terms +40 -0
  1754. package/python/lib/tk9.0/demos/mac_styles.tcl +266 -0
  1755. package/python/lib/tk9.0/demos/mac_tabs.tcl +76 -0
  1756. package/python/lib/tk9.0/demos/mac_wm.tcl +227 -0
  1757. package/python/lib/tk9.0/demos/mclist.tcl +170 -0
  1758. package/python/lib/tk9.0/demos/menu.tcl +184 -0
  1759. package/python/lib/tk9.0/demos/menubu.tcl +90 -0
  1760. package/python/lib/tk9.0/demos/msgbox.tcl +62 -0
  1761. package/python/lib/tk9.0/demos/nl.msg +132 -0
  1762. package/python/lib/tk9.0/demos/paned1.tcl +32 -0
  1763. package/python/lib/tk9.0/demos/paned2.tcl +74 -0
  1764. package/python/lib/tk9.0/demos/pendulum.tcl +206 -0
  1765. package/python/lib/tk9.0/demos/plot.tcl +97 -0
  1766. package/python/lib/tk9.0/demos/print.tcl +91 -0
  1767. package/python/lib/tk9.0/demos/puzzle.tcl +82 -0
  1768. package/python/lib/tk9.0/demos/radio.tcl +66 -0
  1769. package/python/lib/tk9.0/demos/rmt +210 -0
  1770. package/python/lib/tk9.0/demos/rolodex +204 -0
  1771. package/python/lib/tk9.0/demos/ruler.tcl +175 -0
  1772. package/python/lib/tk9.0/demos/sayings.tcl +44 -0
  1773. package/python/lib/tk9.0/demos/search.tcl +139 -0
  1774. package/python/lib/tk9.0/demos/spin.tcl +45 -0
  1775. package/python/lib/tk9.0/demos/states.tcl +54 -0
  1776. package/python/lib/tk9.0/demos/style.tcl +155 -0
  1777. package/python/lib/tk9.0/demos/systray.tcl +89 -0
  1778. package/python/lib/tk9.0/demos/tclIndex +70 -0
  1779. package/python/lib/tk9.0/demos/tcolor +358 -0
  1780. package/python/lib/tk9.0/demos/text.tcl +113 -0
  1781. package/python/lib/tk9.0/demos/textpeer.tcl +62 -0
  1782. package/python/lib/tk9.0/demos/timer +47 -0
  1783. package/python/lib/tk9.0/demos/toolbar.tcl +92 -0
  1784. package/python/lib/tk9.0/demos/tree.tcl +89 -0
  1785. package/python/lib/tk9.0/demos/ttkbut.tcl +84 -0
  1786. package/python/lib/tk9.0/demos/ttkmenu.tcl +53 -0
  1787. package/python/lib/tk9.0/demos/ttknote.tcl +57 -0
  1788. package/python/lib/tk9.0/demos/ttkpane.tcl +112 -0
  1789. package/python/lib/tk9.0/demos/ttkprogress.tcl +46 -0
  1790. package/python/lib/tk9.0/demos/ttkscale.tcl +39 -0
  1791. package/python/lib/tk9.0/demos/ttkspin.tcl +49 -0
  1792. package/python/lib/tk9.0/demos/twind.tcl +358 -0
  1793. package/python/lib/tk9.0/demos/unicodeout.tcl +126 -0
  1794. package/python/lib/tk9.0/demos/vscale.tcl +50 -0
  1795. package/python/lib/tk9.0/demos/widget +713 -0
  1796. package/python/lib/tk9.0/demos/windowicons.tcl +108 -0
  1797. package/python/lib/tk9.0/dialog.tcl +175 -0
  1798. package/python/lib/tk9.0/entry.tcl +720 -0
  1799. package/python/lib/tk9.0/focus.tcl +178 -0
  1800. package/python/lib/tk9.0/fontchooser.tcl +512 -0
  1801. package/python/lib/tk9.0/iconbadges.tcl +253 -0
  1802. package/python/lib/tk9.0/iconlist.tcl +705 -0
  1803. package/python/lib/tk9.0/icons.tcl +54 -0
  1804. package/python/lib/tk9.0/images/README +7 -0
  1805. package/python/lib/tk9.0/images/logo.eps +2091 -0
  1806. package/python/lib/tk9.0/images/logo100.gif +0 -0
  1807. package/python/lib/tk9.0/images/logo64.gif +0 -0
  1808. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  1809. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  1810. package/python/lib/tk9.0/images/pwrdLogo.eps +1897 -0
  1811. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  1812. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  1813. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  1814. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  1815. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  1816. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  1817. package/python/lib/tk9.0/listbox.tcl +522 -0
  1818. package/python/lib/tk9.0/megawidget.tcl +297 -0
  1819. package/python/lib/tk9.0/menu.tcl +1376 -0
  1820. package/python/lib/tk9.0/mkpsenc.tcl +1488 -0
  1821. package/python/lib/tk9.0/msgbox.tcl +454 -0
  1822. package/python/lib/tk9.0/msgs/cs.msg +95 -0
  1823. package/python/lib/tk9.0/msgs/da.msg +96 -0
  1824. package/python/lib/tk9.0/msgs/de.msg +109 -0
  1825. package/python/lib/tk9.0/msgs/el.msg +104 -0
  1826. package/python/lib/tk9.0/msgs/en.msg +110 -0
  1827. package/python/lib/tk9.0/msgs/en_gb.msg +3 -0
  1828. package/python/lib/tk9.0/msgs/eo.msg +93 -0
  1829. package/python/lib/tk9.0/msgs/es.msg +94 -0
  1830. package/python/lib/tk9.0/msgs/fi.msg +114 -0
  1831. package/python/lib/tk9.0/msgs/fr.msg +90 -0
  1832. package/python/lib/tk9.0/msgs/hu.msg +96 -0
  1833. package/python/lib/tk9.0/msgs/it.msg +91 -0
  1834. package/python/lib/tk9.0/msgs/nl.msg +109 -0
  1835. package/python/lib/tk9.0/msgs/pl.msg +109 -0
  1836. package/python/lib/tk9.0/msgs/pt.msg +92 -0
  1837. package/python/lib/tk9.0/msgs/ru.msg +112 -0
  1838. package/python/lib/tk9.0/msgs/sv.msg +94 -0
  1839. package/python/lib/tk9.0/msgs/zh_cn.msg +111 -0
  1840. package/python/lib/tk9.0/optMenu.tcl +43 -0
  1841. package/python/lib/tk9.0/palette.tcl +283 -0
  1842. package/python/lib/tk9.0/panedwindow.tcl +194 -0
  1843. package/python/lib/tk9.0/pkgIndex.tcl +3 -0
  1844. package/python/lib/tk9.0/print.tcl +1460 -0
  1845. package/python/lib/tk9.0/safetk.tcl +262 -0
  1846. package/python/lib/tk9.0/scale.tcl +299 -0
  1847. package/python/lib/tk9.0/scaling.tcl +232 -0
  1848. package/python/lib/tk9.0/scrlbar.tcl +500 -0
  1849. package/python/lib/tk9.0/spinbox.tcl +580 -0
  1850. package/python/lib/tk9.0/systray.tcl +483 -0
  1851. package/python/lib/tk9.0/tclIndex +252 -0
  1852. package/python/lib/tk9.0/tearoff.tcl +155 -0
  1853. package/python/lib/tk9.0/text.tcl +1295 -0
  1854. package/python/lib/tk9.0/tk.tcl +853 -0
  1855. package/python/lib/tk9.0/tkAppInit.c +200 -0
  1856. package/python/lib/tk9.0/tkfbox.tcl +1251 -0
  1857. package/python/lib/tk9.0/ttk/altTheme.tcl +153 -0
  1858. package/python/lib/tk9.0/ttk/aquaTheme.tcl +178 -0
  1859. package/python/lib/tk9.0/ttk/button.tcl +83 -0
  1860. package/python/lib/tk9.0/ttk/clamTheme.tcl +196 -0
  1861. package/python/lib/tk9.0/ttk/classicTheme.tcl +145 -0
  1862. package/python/lib/tk9.0/ttk/combobox.tcl +555 -0
  1863. package/python/lib/tk9.0/ttk/cursors.tcl +205 -0
  1864. package/python/lib/tk9.0/ttk/defaults.tcl +231 -0
  1865. package/python/lib/tk9.0/ttk/entry.tcl +678 -0
  1866. package/python/lib/tk9.0/ttk/fonts.tcl +152 -0
  1867. package/python/lib/tk9.0/ttk/menubutton.tcl +237 -0
  1868. package/python/lib/tk9.0/ttk/notebook.tcl +255 -0
  1869. package/python/lib/tk9.0/ttk/panedwindow.tcl +89 -0
  1870. package/python/lib/tk9.0/ttk/progress.tcl +55 -0
  1871. package/python/lib/tk9.0/ttk/scale.tcl +94 -0
  1872. package/python/lib/tk9.0/ttk/scrollbar.tcl +119 -0
  1873. package/python/lib/tk9.0/ttk/sizegrip.tcl +102 -0
  1874. package/python/lib/tk9.0/ttk/spinbox.tcl +204 -0
  1875. package/python/lib/tk9.0/ttk/treeview.tcl +464 -0
  1876. package/python/lib/tk9.0/ttk/ttk.tcl +223 -0
  1877. package/python/lib/tk9.0/ttk/utils.tcl +317 -0
  1878. package/python/lib/tk9.0/ttk/vistaTheme.tcl +259 -0
  1879. package/python/lib/tk9.0/ttk/winTheme.tcl +119 -0
  1880. package/python/lib/tk9.0/ttk/xpTheme.tcl +95 -0
  1881. package/python/lib/tk9.0/xmfbox.tcl +982 -0
  1882. package/python/share/man/man1/python3.13.1 +740 -0
  1883. package/runtime-manifest.json +7 -0
@@ -0,0 +1,3588 @@
1
+ # tcltest.tcl --
2
+ #
3
+ # This file contains support code for the Tcl test suite. It
4
+ # defines the tcltest namespace and finds and defines the output
5
+ # directory, constraints available, output and error channels,
6
+ # etc. used by Tcl tests. See the tcltest man page for more
7
+ # details.
8
+ #
9
+ # This design was based on the Tcl testing approach designed and
10
+ # initially implemented by Mary Ann May-Pumphrey of Sun
11
+ # Microsystems.
12
+ #
13
+ # Copyright © 1994-1997 Sun Microsystems, Inc.
14
+ # Copyright © 1998-1999 Scriptics Corporation.
15
+ # Copyright © 2000 Ajuba Solutions
16
+ # Contributions from Don Porter, NIST, 2002. (not subject to US copyright)
17
+ # All rights reserved.
18
+
19
+ namespace eval tcltest {
20
+
21
+ # When the version number changes, be sure to update the pkgIndex.tcl file,
22
+ # and the install directory in the Makefiles. When the minor version
23
+ # changes (new feature) be sure to update the man page as well.
24
+ variable Version 2.5.10
25
+
26
+ # Compatibility support for dumb variables defined in tcltest 1
27
+ # Do not use these. Call [package require] and [info patchlevel]
28
+ # yourself. You don't need tcltest to wrap it for you.
29
+ variable version [package require Tcl 8.5-]
30
+ variable patchLevel [info patchlevel]
31
+
32
+ # Detect if we can use code points >= \U10000
33
+ variable fullutf [package vsatisfies $version 9.0-]
34
+
35
+ ##### Export the public tcltest procs; several categories
36
+ #
37
+ # Export the main functional commands that do useful things
38
+ namespace export cleanupTests loadTestedCommands makeDirectory \
39
+ makeFile removeDirectory removeFile runAllTests test
40
+
41
+ # Export configuration commands that control the functional commands
42
+ namespace export configure customMatch errorChannel interpreter \
43
+ outputChannel testConstraint
44
+
45
+ # Export commands that are duplication (candidates for deprecation)
46
+ if {![package vsatisfies [package provide Tcl] 9.0-]} {
47
+ namespace export bytestring ;# dups [encoding convertfrom identity]
48
+ }
49
+ namespace export debug ;# [configure -debug]
50
+ namespace export errorFile ;# [configure -errfile]
51
+ namespace export limitConstraints ;# [configure -limitconstraints]
52
+ namespace export loadFile ;# [configure -loadfile]
53
+ namespace export loadScript ;# [configure -load]
54
+ namespace export match ;# [configure -match]
55
+ namespace export matchFiles ;# [configure -file]
56
+ namespace export matchDirectories ;# [configure -relateddir]
57
+ namespace export normalizeMsg ;# application of [customMatch]
58
+ namespace export normalizePath ;# [file normalize] (8.4)
59
+ namespace export outputFile ;# [configure -outfile]
60
+ namespace export preserveCore ;# [configure -preservecore]
61
+ namespace export singleProcess ;# [configure -singleproc]
62
+ namespace export skip ;# [configure -skip]
63
+ namespace export skipFiles ;# [configure -notfile]
64
+ namespace export skipDirectories ;# [configure -asidefromdir]
65
+ namespace export temporaryDirectory ;# [configure -tmpdir]
66
+ namespace export testsDirectory ;# [configure -testdir]
67
+ namespace export verbose ;# [configure -verbose]
68
+ namespace export viewFile ;# binary encoding [read]
69
+ namespace export workingDirectory ;# [cd] [pwd]
70
+
71
+ # Export deprecated commands for tcltest 1 compatibility
72
+ namespace export getMatchingFiles mainThread restoreState saveState \
73
+ threadReap
74
+
75
+ # tcltest::normalizePath --
76
+ #
77
+ # This procedure resolves any symlinks in the path thus creating
78
+ # a path without internal redirection. It assumes that the
79
+ # incoming path is absolute.
80
+ #
81
+ # Arguments
82
+ # pathVar - name of variable containing path to modify.
83
+ #
84
+ # Results
85
+ # The path is modified in place.
86
+ #
87
+ # Side Effects:
88
+ # None.
89
+ #
90
+ proc normalizePath {pathVar} {
91
+ upvar 1 $pathVar path
92
+ set oldpwd [pwd]
93
+ catch {cd $path}
94
+ set path [pwd]
95
+ cd $oldpwd
96
+ return $path
97
+ }
98
+
99
+ ##### Verification commands used to test values of variables and options
100
+ #
101
+ # Verification command that accepts everything
102
+ proc AcceptAll {value} {
103
+ return $value
104
+ }
105
+
106
+ # Verification command that accepts valid Tcl lists
107
+ proc AcceptList { list } {
108
+ return [lrange $list 0 end]
109
+ }
110
+
111
+ # Verification command that accepts a glob pattern
112
+ proc AcceptPattern { pattern } {
113
+ return [AcceptAll $pattern]
114
+ }
115
+
116
+ # Verification command that accepts integers
117
+ proc AcceptInteger { level } {
118
+ return [incr level 0]
119
+ }
120
+
121
+ # Verification command that accepts boolean values
122
+ proc AcceptBoolean { boolean } {
123
+ return [expr {$boolean && $boolean}]
124
+ }
125
+
126
+ # Verification command that accepts (syntactically) valid Tcl scripts
127
+ proc AcceptScript { script } {
128
+ if {![info complete $script]} {
129
+ return -code error "invalid Tcl script: $script"
130
+ }
131
+ return $script
132
+ }
133
+
134
+ # Verification command that accepts (converts to) absolute pathnames
135
+ proc AcceptAbsolutePath { path } {
136
+ return [file join [pwd] $path]
137
+ }
138
+
139
+ # Verification command that accepts existing readable directories
140
+ proc AcceptReadable { path } {
141
+ if {![file readable $path]} {
142
+ return -code error "\"$path\" is not readable"
143
+ }
144
+ return $path
145
+ }
146
+ proc AcceptDirectory { directory } {
147
+ set directory [AcceptAbsolutePath $directory]
148
+ if {![file exists $directory]} {
149
+ return -code error "\"$directory\" does not exist"
150
+ }
151
+ if {![file isdir $directory]} {
152
+ return -code error "\"$directory\" is not a directory"
153
+ }
154
+ return [AcceptReadable $directory]
155
+ }
156
+
157
+ ##### Initialize internal arrays of tcltest, but only if the caller
158
+ # has not already preinitialized them. This is done to support
159
+ # compatibility with older tests that directly access internals
160
+ # rather than go through command interfaces.
161
+ #
162
+ proc ArrayDefault {varName value} {
163
+ variable $varName
164
+ if {[array exists $varName]} {
165
+ return
166
+ }
167
+ if {[info exists $varName]} {
168
+ # Preinitialized value is a scalar: Destroy it!
169
+ unset $varName
170
+ }
171
+ array set $varName $value
172
+ }
173
+
174
+ # save the original environment so that it can be restored later
175
+ ArrayDefault originalEnv [array get ::env]
176
+
177
+ # initialize numTests array to keep track of the number of tests
178
+ # that pass, fail, and are skipped.
179
+ ArrayDefault numTests [list Total 0 Passed 0 Skipped 0 Failed 0]
180
+
181
+ # createdNewFiles will store test files as indices and the list of
182
+ # files (that should not have been) left behind by the test files
183
+ # as values.
184
+ ArrayDefault createdNewFiles {}
185
+
186
+ # initialize skippedBecause array to keep track of constraints that
187
+ # kept tests from running; a constraint name of "userSpecifiedSkip"
188
+ # means that the test appeared on the list of tests that matched the
189
+ # -skip value given to the flag; "userSpecifiedNonMatch" means that
190
+ # the test didn't match the argument given to the -match flag; both
191
+ # of these constraints are counted only if tcltest::debug is set to
192
+ # true.
193
+ ArrayDefault skippedBecause {}
194
+
195
+ # initialize the testConstraints array to keep track of valid
196
+ # predefined constraints (see the explanation for the
197
+ # InitConstraints proc for more details).
198
+ ArrayDefault testConstraints {}
199
+
200
+ ##### Initialize internal variables of tcltest, but only if the caller
201
+ # has not already preinitialized them. This is done to support
202
+ # compatibility with older tests that directly access internals
203
+ # rather than go through command interfaces.
204
+ #
205
+ proc Default {varName value {verify AcceptAll}} {
206
+ variable $varName
207
+ if {![info exists $varName]} {
208
+ variable $varName [$verify $value]
209
+ } else {
210
+ variable $varName [$verify [set $varName]]
211
+ }
212
+ }
213
+
214
+ # Save any arguments that we might want to pass through to other
215
+ # programs. This is used by the -args flag.
216
+ # FINDUSER
217
+ Default parameters {}
218
+
219
+ # Count the number of files tested (0 if runAllTests wasn't called).
220
+ # runAllTests will set testSingleFile to false, so stats will
221
+ # not be printed until runAllTests calls the cleanupTests proc.
222
+ # The currentFailure var stores the boolean value of whether the
223
+ # current test file has had any failures. The failFiles list
224
+ # stores the names of test files that had failures.
225
+ Default numTestFiles 0 AcceptInteger
226
+ Default testSingleFile true AcceptBoolean
227
+ Default currentFailure false AcceptBoolean
228
+ Default failFiles {} AcceptList
229
+
230
+ # Tests should remove all files they create. The test suite will
231
+ # check the current working dir for files created by the tests.
232
+ # filesMade keeps track of such files created using the makeFile and
233
+ # makeDirectory procedures. filesExisted stores the names of
234
+ # preexisting files.
235
+ #
236
+ # Note that $filesExisted lists only those files that exist in
237
+ # the original [temporaryDirectory].
238
+ Default filesMade {} AcceptList
239
+ Default filesExisted {} AcceptList
240
+ proc FillFilesExisted {} {
241
+ variable filesExisted
242
+
243
+ # Save the names of files that already exist in the scratch directory.
244
+ foreach file [glob -nocomplain -directory [temporaryDirectory] *] {
245
+ lappend filesExisted [file tail $file]
246
+ }
247
+
248
+ # After successful filling, turn this into a no-op.
249
+ proc FillFilesExisted args {}
250
+ }
251
+
252
+ # Kept only for compatibility
253
+ Default constraintsSpecified {} AcceptList
254
+ trace add variable constraintsSpecified read [namespace code {
255
+ set constraintsSpecified [array names testConstraints] ;#}]
256
+
257
+ # tests that use threads need to know which is the main thread
258
+ Default mainThread 1
259
+ variable mainThread
260
+ if {[info commands thread::id] ne {}} {
261
+ set mainThread [thread::id]
262
+ } elseif {[info commands testthread] ne {}} {
263
+ set mainThread [testthread id]
264
+ }
265
+
266
+ # Set workingDirectory to [pwd]. The default output directory for
267
+ # Tcl tests is the working directory. Whenever this value changes
268
+ # change to that directory.
269
+ variable workingDirectory
270
+ trace add variable workingDirectory write \
271
+ [namespace code {cd $workingDirectory ;#}]
272
+
273
+ Default workingDirectory [pwd] AcceptAbsolutePath
274
+ proc workingDirectory { {dir ""} } {
275
+ variable workingDirectory
276
+ if {[llength [info level 0]] == 1} {
277
+ return $workingDirectory
278
+ }
279
+ set workingDirectory [AcceptAbsolutePath $dir]
280
+ }
281
+
282
+ # Set the location of the execuatble
283
+ Default tcltest [info nameofexecutable]
284
+ trace add variable tcltest write [namespace code {testConstraint stdio \
285
+ [eval [ConstraintInitializer stdio]] ;#}]
286
+
287
+ # save the platform information so it can be restored later
288
+ Default originalTclPlatform [array get ::tcl_platform]
289
+
290
+ # If a core file exists, save its modification time.
291
+ if {[file exists [file join [workingDirectory] core]]} {
292
+ Default coreModTime \
293
+ [file mtime [file join [workingDirectory] core]]
294
+ }
295
+
296
+ # stdout and stderr buffers for use when we want to store them
297
+ Default outData {}
298
+ Default errData {}
299
+
300
+ # keep track of test level for nested test commands
301
+ variable testLevel 0
302
+
303
+ # the variables and procedures that existed when saveState was called are
304
+ # stored in a variable of the same name
305
+ Default saveState {}
306
+
307
+ # Internationalization support -- used in [SetIso8859_1_Locale] and
308
+ # [RestoreLocale]. Those commands are used in cmdIL.test.
309
+
310
+ if {![info exists [namespace current]::isoLocale]} {
311
+ variable isoLocale fr
312
+ switch -- $::tcl_platform(platform) {
313
+ "unix" {
314
+
315
+ # Try some 'known' values for some platforms:
316
+
317
+ switch -exact -- $::tcl_platform(os) {
318
+ "FreeBSD" {
319
+ set isoLocale fr_FR.ISO_8859-1
320
+ }
321
+ HP-UX {
322
+ set isoLocale fr_FR.iso88591
323
+ }
324
+ Linux -
325
+ IRIX {
326
+ set isoLocale fr
327
+ }
328
+ default {
329
+
330
+ # Works on SunOS 4 and Solaris, and maybe
331
+ # others... Define it to something else on your
332
+ # system if you want to test those.
333
+
334
+ set isoLocale iso_8859_1
335
+ }
336
+ }
337
+ }
338
+ "windows" {
339
+ set isoLocale French
340
+ }
341
+ }
342
+ }
343
+
344
+ variable ChannelsWeOpened; array set ChannelsWeOpened {}
345
+ # output goes to stdout by default
346
+ Default outputChannel stdout
347
+ proc outputChannel { {filename ""} } {
348
+ variable outputChannel
349
+ variable ChannelsWeOpened
350
+ variable fullutf
351
+
352
+ # This is very subtle and tricky, so let me try to explain.
353
+ # (Hopefully this longer comment will be clear when I come
354
+ # back in a few months, unlike its predecessor :) )
355
+ #
356
+ # The [outputChannel] command (and underlying variable) have to
357
+ # be kept in sync with the [configure -outfile] configuration
358
+ # option ( and underlying variable Option(-outfile) ). This is
359
+ # accomplished with a write trace on Option(-outfile) that will
360
+ # update [outputChannel] whenever a new value is written. That
361
+ # much is easy.
362
+ #
363
+ # The trick is that in order to maintain compatibility with
364
+ # version 1 of tcltest, we must allow every configuration option
365
+ # to get its initial value from command line arguments. This is
366
+ # accomplished by setting initial read traces on all the
367
+ # configuration options to parse the command line option the first
368
+ # time they are read. These traces are cancelled whenever the
369
+ # program itself calls [configure].
370
+ #
371
+ # OK, then so to support tcltest 1 compatibility, it seems we want
372
+ # to get the return from [outputFile] to trigger the read traces,
373
+ # just in case.
374
+ #
375
+ # BUT! A little known feature of Tcl variable traces is that
376
+ # traces are disabled during the handling of other traces. So,
377
+ # if we trigger read traces on Option(-outfile) and that triggers
378
+ # command line parsing which turns around and sets an initial
379
+ # value for Option(-outfile) -- <whew!> -- the write trace that
380
+ # would keep [outputChannel] in sync with that new initial value
381
+ # would not fire!
382
+ #
383
+ # SO, finally, as a workaround, instead of triggering read traces
384
+ # by invoking [outputFile], we instead trigger the same set of
385
+ # read traces by invoking [debug]. Any command that reads a
386
+ # configuration option would do. [debug] is just a handy one.
387
+ # The end result is that we support tcltest 1 compatibility and
388
+ # keep outputChannel and -outfile in sync in all cases.
389
+ debug
390
+
391
+ if {[llength [info level 0]] == 1} {
392
+ return $outputChannel
393
+ }
394
+ if {[info exists ChannelsWeOpened($outputChannel)]} {
395
+ close $outputChannel
396
+ unset ChannelsWeOpened($outputChannel)
397
+ }
398
+ switch -exact -- $filename {
399
+ stderr -
400
+ stdout {
401
+ set outputChannel $filename
402
+ }
403
+ default {
404
+ set outputChannel [open $filename a]
405
+ if {$fullutf} {
406
+ fconfigure $outputChannel -profile tcl8 -encoding utf-8
407
+ }
408
+ set ChannelsWeOpened($outputChannel) 1
409
+
410
+ # If we created the file in [temporaryDirectory], then
411
+ # [cleanupTests] will delete it, unless we claim it was
412
+ # already there.
413
+ set outdir [normalizePath [file dirname \
414
+ [file join [pwd] $filename]]]
415
+ if {$outdir eq [temporaryDirectory]} {
416
+ variable filesExisted
417
+ FillFilesExisted
418
+ set filename [file tail $filename]
419
+ if {$filename ni $filesExisted} {
420
+ lappend filesExisted $filename
421
+ }
422
+ }
423
+ }
424
+ }
425
+ return $outputChannel
426
+ }
427
+
428
+ # errors go to stderr by default
429
+ Default errorChannel stderr
430
+ proc errorChannel { {filename ""} } {
431
+ variable errorChannel
432
+ variable ChannelsWeOpened
433
+ variable fullutf
434
+
435
+ # This is subtle and tricky. See the comment above in
436
+ # [outputChannel] for a detailed explanation.
437
+ debug
438
+
439
+ if {[llength [info level 0]] == 1} {
440
+ return $errorChannel
441
+ }
442
+ if {[info exists ChannelsWeOpened($errorChannel)]} {
443
+ close $errorChannel
444
+ unset ChannelsWeOpened($errorChannel)
445
+ }
446
+ switch -exact -- $filename {
447
+ stderr -
448
+ stdout {
449
+ set errorChannel $filename
450
+ }
451
+ default {
452
+ set errorChannel [open $filename a]
453
+ if {$fullutf} {
454
+ fconfigure $errorChannel -profile tcl8 -encoding utf-8
455
+ }
456
+ set ChannelsWeOpened($errorChannel) 1
457
+
458
+ # If we created the file in [temporaryDirectory], then
459
+ # [cleanupTests] will delete it, unless we claim it was
460
+ # already there.
461
+ set outdir [normalizePath [file dirname \
462
+ [file join [pwd] $filename]]]
463
+ if {$outdir eq [temporaryDirectory]} {
464
+ variable filesExisted
465
+ FillFilesExisted
466
+ set filename [file tail $filename]
467
+ if {$filename ni $filesExisted} {
468
+ lappend filesExisted $filename
469
+ }
470
+ }
471
+ }
472
+ }
473
+ return $errorChannel
474
+ }
475
+
476
+ ##### Set up the configurable options
477
+ #
478
+ # The configurable options of the package
479
+ variable Option; array set Option {}
480
+
481
+ # Usage strings for those options
482
+ variable Usage; array set Usage {}
483
+
484
+ # Verification commands for those options
485
+ variable Verify; array set Verify {}
486
+
487
+ # Initialize the default values of the configurable options that are
488
+ # historically associated with an exported variable. If that variable
489
+ # is already set, support compatibility by accepting its preset value.
490
+ # Use [trace] to establish ongoing connection between the deprecated
491
+ # exported variable and the modern option kept as a true internal var.
492
+ # Also set up usage string and value testing for the option.
493
+ proc Option {option value usage {verify AcceptAll} {varName {}}} {
494
+ variable Option
495
+ variable Verify
496
+ variable Usage
497
+ variable OptionControlledVariables
498
+ variable DefaultValue
499
+ set Usage($option) $usage
500
+ set Verify($option) $verify
501
+ set DefaultValue($option) $value
502
+ if {[catch {$verify $value} msg]} {
503
+ return -code error $msg
504
+ } else {
505
+ set Option($option) $msg
506
+ }
507
+ if {[string length $varName]} {
508
+ variable $varName
509
+ if {[info exists $varName]} {
510
+ if {[catch {$verify [set $varName]} msg]} {
511
+ return -code error $msg
512
+ } else {
513
+ set Option($option) $msg
514
+ }
515
+ unset $varName
516
+ }
517
+ namespace eval [namespace current] \
518
+ [list upvar 0 Option($option) $varName]
519
+ # Workaround for Bug (now Feature Request) 572889. Grrrr....
520
+ # Track all the variables tied to options
521
+ lappend OptionControlledVariables $varName
522
+ # Later, set auto-configure read traces on all
523
+ # of them, since a single trace on Option does not work.
524
+ proc $varName {{value {}}} [subst -nocommands {
525
+ if {[llength [info level 0]] == 2} {
526
+ Configure $option [set value]
527
+ }
528
+ return [Configure $option]
529
+ }]
530
+ }
531
+ }
532
+
533
+ proc MatchingOption {option} {
534
+ variable Option
535
+ set match [array names Option $option*]
536
+ switch -- [llength $match] {
537
+ 0 {
538
+ set sorted [lsort [array names Option]]
539
+ set values [join [lrange $sorted 0 end-1] ", "]
540
+ append values ", or [lindex $sorted end]"
541
+ return -code error "unknown option $option: should be\
542
+ one of $values"
543
+ }
544
+ 1 {
545
+ return [lindex $match 0]
546
+ }
547
+ default {
548
+ # Exact match trumps ambiguity
549
+ if {$option in $match} {
550
+ return $option
551
+ }
552
+ set values [join [lrange $match 0 end-1] ", "]
553
+ append values ", or [lindex $match end]"
554
+ return -code error "ambiguous option $option:\
555
+ could match $values"
556
+ }
557
+ }
558
+ }
559
+
560
+ proc EstablishAutoConfigureTraces {} {
561
+ variable OptionControlledVariables
562
+ foreach varName [concat $OptionControlledVariables Option] {
563
+ variable $varName
564
+ trace add variable $varName read [namespace code {
565
+ ProcessCmdLineArgs ;#}]
566
+ }
567
+ }
568
+
569
+ proc RemoveAutoConfigureTraces {} {
570
+ variable OptionControlledVariables
571
+ foreach varName [concat $OptionControlledVariables Option] {
572
+ variable $varName
573
+ foreach pair [trace info variable $varName] {
574
+ lassign $pair op cmd
575
+ if {($op eq "read") &&
576
+ [string match *ProcessCmdLineArgs* $cmd]} {
577
+ trace remove variable $varName $op $cmd
578
+ }
579
+ }
580
+ }
581
+ # Once the traces are removed, this can become a no-op
582
+ proc RemoveAutoConfigureTraces {} {}
583
+ }
584
+
585
+ proc Configure args {
586
+ variable Option
587
+ variable Verify
588
+ set n [llength $args]
589
+ if {$n == 0} {
590
+ return [lsort [array names Option]]
591
+ }
592
+ if {$n == 1} {
593
+ if {[catch {MatchingOption [lindex $args 0]} option]} {
594
+ return -code error $option
595
+ }
596
+ return $Option($option)
597
+ }
598
+ while {[llength $args] > 1} {
599
+ if {[catch {MatchingOption [lindex $args 0]} option]} {
600
+ return -code error $option
601
+ }
602
+ if {[catch {$Verify($option) [lindex $args 1]} value]} {
603
+ return -code error "invalid $option\
604
+ value \"[lindex $args 1]\": $value"
605
+ }
606
+ set Option($option) $value
607
+ set args [lrange $args 2 end]
608
+ }
609
+ if {[llength $args]} {
610
+ if {[catch {MatchingOption [lindex $args 0]} option]} {
611
+ return -code error $option
612
+ }
613
+ return -code error "missing value for option $option"
614
+ }
615
+ }
616
+ proc configure args {
617
+ if {[llength $args] > 1} {
618
+ RemoveAutoConfigureTraces
619
+ }
620
+ set code [catch {Configure {*}$args} msg]
621
+ return -code $code $msg
622
+ }
623
+
624
+ proc AcceptVerbose { level } {
625
+ set level [AcceptList $level]
626
+ set levelMap {
627
+ l list
628
+ p pass
629
+ b body
630
+ s skip
631
+ t start
632
+ e error
633
+ l line
634
+ m msec
635
+ u usec
636
+ }
637
+ set levelRegexp "^([join [dict values $levelMap] |])\$"
638
+ if {[llength $level] == 1} {
639
+ if {![regexp $levelRegexp $level]} {
640
+ # translate single characters abbreviations to expanded list
641
+ set level [string map $levelMap [split $level {}]]
642
+ }
643
+ }
644
+ set valid [list]
645
+ foreach v $level {
646
+ if {[regexp $levelRegexp $v]} {
647
+ lappend valid $v
648
+ }
649
+ }
650
+ return $valid
651
+ }
652
+
653
+ proc IsVerbose {level} {
654
+ variable Option
655
+ return [expr {$level in $Option(-verbose)}]
656
+ }
657
+
658
+ # Default verbosity is to show bodies of failed tests
659
+ Option -verbose {body error} {
660
+ Takes any combination of the values 'p', 's', 'b', 't', 'e' and 'l'.
661
+ Test suite will display all passed tests if 'p' is specified, all
662
+ skipped tests if 's' is specified, the bodies of failed tests if
663
+ 'b' is specified, and when tests start if 't' is specified.
664
+ ErrorInfo is displayed if 'e' is specified. Source file line
665
+ information of failed tests is displayed if 'l' is specified.
666
+ } AcceptVerbose verbose
667
+
668
+ # Match and skip patterns default to the empty list, except for
669
+ # matchFiles, which defaults to all .test files in the
670
+ # testsDirectory and matchDirectories, which defaults to all
671
+ # directories.
672
+ Option -match * {
673
+ Run all tests within the specified files that match one of the
674
+ list of glob patterns given.
675
+ } AcceptList match
676
+
677
+ Option -skip {} {
678
+ Skip all tests within the specified tests (via -match) and files
679
+ that match one of the list of glob patterns given.
680
+ } AcceptList skip
681
+
682
+ Option -file *.test {
683
+ Run tests in all test files that match the glob pattern given.
684
+ } AcceptPattern matchFiles
685
+
686
+ # By default, skip files that appear to be SCCS lock files.
687
+ Option -notfile l.*.test {
688
+ Skip all test files that match the glob pattern given.
689
+ } AcceptPattern skipFiles
690
+
691
+ Option -relateddir * {
692
+ Run tests in directories that match the glob pattern given.
693
+ } AcceptPattern matchDirectories
694
+
695
+ Option -asidefromdir {} {
696
+ Skip tests in directories that match the glob pattern given.
697
+ } AcceptPattern skipDirectories
698
+
699
+ # By default, don't save core files
700
+ Option -preservecore 0 {
701
+ If 2, save any core files produced during testing in the directory
702
+ specified by -tmpdir. If 1, notify the user if core files are
703
+ created.
704
+ } AcceptInteger preserveCore
705
+
706
+ # debug output doesn't get printed by default; debug level 1 spits
707
+ # up only the tests that were skipped because they didn't match or
708
+ # were specifically skipped. A debug level of 2 would spit up the
709
+ # tcltest variables and flags provided; a debug level of 3 causes
710
+ # some additional output regarding operations of the test harness.
711
+ # The tcltest package currently implements only up to debug level 3.
712
+ Option -debug 0 {
713
+ Internal debug level
714
+ } AcceptInteger debug
715
+
716
+ proc SetSelectedConstraints args {
717
+ variable Option
718
+ foreach c $Option(-constraints) {
719
+ testConstraint $c 1
720
+ }
721
+ }
722
+ Option -constraints {} {
723
+ Do not skip the listed constraints listed in -constraints.
724
+ } AcceptList
725
+ trace add variable Option(-constraints) write \
726
+ [namespace code {SetSelectedConstraints ;#}]
727
+
728
+ # Don't run only the "-constraint" specified tests by default
729
+ proc ClearUnselectedConstraints args {
730
+ variable Option
731
+ variable testConstraints
732
+ if {!$Option(-limitconstraints)} {return}
733
+ foreach c [array names testConstraints] {
734
+ if {$c ni $Option(-constraints)} {
735
+ testConstraint $c 0
736
+ }
737
+ }
738
+ }
739
+ Option -limitconstraints 0 {
740
+ whether to run only tests with the constraints
741
+ } AcceptBoolean limitConstraints
742
+ trace add variable Option(-limitconstraints) write \
743
+ [namespace code {ClearUnselectedConstraints ;#}]
744
+
745
+ # A test application has to know how to load the tested commands
746
+ # into the interpreter.
747
+ Option -load {} {
748
+ Specifies the script to load the tested commands.
749
+ } AcceptScript loadScript
750
+
751
+ # Default is to run each test file in a separate process
752
+ Option -singleproc 0 {
753
+ whether to run all tests in one process
754
+ } AcceptBoolean singleProcess
755
+
756
+ proc AcceptTemporaryDirectory { directory } {
757
+ set directory [AcceptAbsolutePath $directory]
758
+ if {![file exists $directory]} {
759
+ file mkdir $directory
760
+ }
761
+ set directory [AcceptDirectory $directory]
762
+ if {![file writable $directory]} {
763
+ if {[workingDirectory] eq $directory} {
764
+ # Special exception: accept the default value
765
+ # even if the directory is not writable
766
+ return $directory
767
+ }
768
+ return -code error "\"$directory\" is not writable"
769
+ }
770
+ return $directory
771
+ }
772
+
773
+ # Directory where files should be created
774
+ Option -tmpdir [workingDirectory] {
775
+ Save temporary files in the specified directory.
776
+ } AcceptTemporaryDirectory temporaryDirectory
777
+ trace add variable Option(-tmpdir) write \
778
+ [namespace code {normalizePath Option(-tmpdir) ;#}]
779
+
780
+ # Tests should not rely on the current working directory.
781
+ # Files that are part of the test suite should be accessed relative
782
+ # to [testsDirectory]
783
+ Option -testdir [workingDirectory] {
784
+ Search tests in the specified directory.
785
+ } AcceptDirectory testsDirectory
786
+ trace add variable Option(-testdir) write \
787
+ [namespace code {normalizePath Option(-testdir) ;#}]
788
+
789
+ proc AcceptLoadFile { file } {
790
+ if {$file eq {}} {return $file}
791
+ set file [file join [temporaryDirectory] $file]
792
+ return [AcceptReadable $file]
793
+ }
794
+ proc ReadLoadScript {args} {
795
+ variable Option
796
+ variable fullutf
797
+
798
+ if {$Option(-loadfile) eq {}} {return}
799
+ set tmp [open $Option(-loadfile) r]
800
+ if {$fullutf} {
801
+ fconfigure $tmp -profile tcl8 -encoding utf-8
802
+ }
803
+ loadScript [read $tmp]
804
+ close $tmp
805
+ }
806
+ Option -loadfile {} {
807
+ Read the script to load the tested commands from the specified file.
808
+ } AcceptLoadFile loadFile
809
+ trace add variable Option(-loadfile) write [namespace code ReadLoadScript]
810
+
811
+ proc AcceptOutFile { file } {
812
+ if {[string equal stderr $file]} {return $file}
813
+ if {[string equal stdout $file]} {return $file}
814
+ return [file join [temporaryDirectory] $file]
815
+ }
816
+
817
+ # output goes to stdout by default
818
+ Option -outfile stdout {
819
+ Send output from test runs to the specified file.
820
+ } AcceptOutFile outputFile
821
+ trace add variable Option(-outfile) write \
822
+ [namespace code {outputChannel $Option(-outfile) ;#}]
823
+
824
+ # errors go to stderr by default
825
+ Option -errfile stderr {
826
+ Send errors from test runs to the specified file.
827
+ } AcceptOutFile errorFile
828
+ trace add variable Option(-errfile) write \
829
+ [namespace code {errorChannel $Option(-errfile) ;#}]
830
+
831
+ proc loadIntoChildInterpreter {child args} {
832
+ variable Version
833
+ interp eval $child [package ifneeded tcltest $Version]
834
+ interp eval $child "tcltest::configure {*}{$args}"
835
+ interp alias $child ::tcltest::ReportToParent \
836
+ {} ::tcltest::ReportedFromChild
837
+ }
838
+ proc ReportedFromChild {total passed skipped failed because newfiles} {
839
+ variable numTests
840
+ variable skippedBecause
841
+ variable createdNewFiles
842
+ incr numTests(Total) $total
843
+ incr numTests(Passed) $passed
844
+ incr numTests(Skipped) $skipped
845
+ incr numTests(Failed) $failed
846
+ foreach {constraint count} $because {
847
+ incr skippedBecause($constraint) $count
848
+ }
849
+ foreach {testfile created} $newfiles {
850
+ lappend createdNewFiles($testfile) {*}$created
851
+ }
852
+ return
853
+ }
854
+ }
855
+
856
+ #####################################################################
857
+
858
+ # tcltest::Debug* --
859
+ #
860
+ # Internal helper procedures to write out debug information
861
+ # dependent on the chosen level. A test shell may override
862
+ # them, f.e. to redirect the output into a different
863
+ # channel, or even into a GUI.
864
+
865
+ # tcltest::DebugPuts --
866
+ #
867
+ # Prints the specified string if the current debug level is
868
+ # higher than the provided level argument.
869
+ #
870
+ # Arguments:
871
+ # level The lowest debug level triggering the output
872
+ # string The string to print out.
873
+ #
874
+ # Results:
875
+ # Prints the string. Nothing else is allowed.
876
+ #
877
+ # Side Effects:
878
+ # None.
879
+ #
880
+
881
+ proc tcltest::DebugPuts {level string} {
882
+ variable debug
883
+ if {$debug >= $level} {
884
+ puts $string
885
+ }
886
+ return
887
+ }
888
+
889
+ # tcltest::DebugPArray --
890
+ #
891
+ # Prints the contents of the specified array if the current
892
+ # debug level is higher than the provided level argument
893
+ #
894
+ # Arguments:
895
+ # level The lowest debug level triggering the output
896
+ # arrayvar The name of the array to print out.
897
+ #
898
+ # Results:
899
+ # Prints the contents of the array. Nothing else is allowed.
900
+ #
901
+ # Side Effects:
902
+ # None.
903
+ #
904
+
905
+ proc tcltest::DebugPArray {level arrayvar} {
906
+ variable debug
907
+
908
+ if {$debug >= $level} {
909
+ catch {upvar 1 $arrayvar $arrayvar}
910
+ parray $arrayvar
911
+ }
912
+ return
913
+ }
914
+
915
+ # Define our own [parray] in ::tcltest that will inherit use of the [puts]
916
+ # defined in ::tcltest. NOTE: Ought to construct with [info args] and
917
+ # [info default], but can't be bothered now. If [parray] changes, then
918
+ # this will need changing too.
919
+ auto_load ::parray
920
+ proc tcltest::parray {a {pattern *}} [info body ::parray]
921
+
922
+ # tcltest::DebugDo --
923
+ #
924
+ # Executes the script if the current debug level is greater than
925
+ # the provided level argument
926
+ #
927
+ # Arguments:
928
+ # level The lowest debug level triggering the execution.
929
+ # script The tcl script executed upon a debug level high enough.
930
+ #
931
+ # Results:
932
+ # Arbitrary side effects, dependent on the executed script.
933
+ #
934
+ # Side Effects:
935
+ # None.
936
+ #
937
+
938
+ proc tcltest::DebugDo {level script} {
939
+ variable debug
940
+
941
+ if {$debug >= $level} {
942
+ uplevel 1 $script
943
+ }
944
+ return
945
+ }
946
+
947
+ #####################################################################
948
+
949
+ proc tcltest::Warn {msg} {
950
+ puts [outputChannel] "WARNING: $msg"
951
+ }
952
+
953
+ # tcltest::mainThread
954
+ #
955
+ # Accessor command for tcltest variable mainThread.
956
+ #
957
+ proc tcltest::mainThread { {new ""} } {
958
+ variable mainThread
959
+ if {[llength [info level 0]] == 1} {
960
+ return $mainThread
961
+ }
962
+ set mainThread $new
963
+ }
964
+
965
+ # tcltest::testConstraint --
966
+ #
967
+ # sets a test constraint to a value; to do multiple constraints,
968
+ # call this proc multiple times. also returns the value of the
969
+ # named constraint if no value was supplied.
970
+ #
971
+ # Arguments:
972
+ # constraint - name of the constraint
973
+ # value - new value for constraint (should be boolean) - if not
974
+ # supplied, this is a query
975
+ #
976
+ # Results:
977
+ # content of tcltest::testConstraints($constraint)
978
+ #
979
+ # Side effects:
980
+ # none
981
+
982
+ proc tcltest::testConstraint {constraint {value ""}} {
983
+ variable testConstraints
984
+ variable Option
985
+ DebugPuts 3 "entering testConstraint $constraint $value"
986
+ if {[llength [info level 0]] == 2} {
987
+ return $testConstraints($constraint)
988
+ }
989
+ # Check for boolean values
990
+ if {[catch {expr {$value && 1}} msg]} {
991
+ return -code error $msg
992
+ }
993
+ if {[limitConstraints] && ($constraint ni $Option(-constraints))} {
994
+ set value 0
995
+ }
996
+ set testConstraints($constraint) $value
997
+ }
998
+
999
+ # tcltest::interpreter --
1000
+ #
1001
+ # the interpreter name stored in tcltest::tcltest
1002
+ #
1003
+ # Arguments:
1004
+ # executable name
1005
+ #
1006
+ # Results:
1007
+ # content of tcltest::tcltest
1008
+ #
1009
+ # Side effects:
1010
+ # None.
1011
+
1012
+ proc tcltest::interpreter { {interp ""} } {
1013
+ variable tcltest
1014
+ if {[llength [info level 0]] == 1} {
1015
+ return $tcltest
1016
+ }
1017
+ set tcltest $interp
1018
+ }
1019
+
1020
+ #####################################################################
1021
+
1022
+ # tcltest::AddToSkippedBecause --
1023
+ #
1024
+ # Increments the variable used to track how many tests were
1025
+ # skipped because of a particular constraint.
1026
+ #
1027
+ # Arguments:
1028
+ # constraint The name of the constraint to be modified
1029
+ #
1030
+ # Results:
1031
+ # Modifies tcltest::skippedBecause; sets the variable to 1 if
1032
+ # didn't previously exist - otherwise, it just increments it.
1033
+ #
1034
+ # Side effects:
1035
+ # None.
1036
+
1037
+ proc tcltest::AddToSkippedBecause { constraint {value 1}} {
1038
+ # add the constraint to the list of constraints that kept tests
1039
+ # from running
1040
+ variable skippedBecause
1041
+
1042
+ if {[info exists skippedBecause($constraint)]} {
1043
+ incr skippedBecause($constraint) $value
1044
+ } else {
1045
+ set skippedBecause($constraint) $value
1046
+ }
1047
+ return
1048
+ }
1049
+
1050
+ # tcltest::PrintError --
1051
+ #
1052
+ # Prints errors to tcltest::errorChannel and then flushes that
1053
+ # channel, making sure that all messages are < 80 characters per
1054
+ # line.
1055
+ #
1056
+ # Arguments:
1057
+ # errorMsg String containing the error to be printed
1058
+ #
1059
+ # Results:
1060
+ # None.
1061
+ #
1062
+ # Side effects:
1063
+ # None.
1064
+
1065
+ proc tcltest::PrintError {errorMsg} {
1066
+ set InitialMessage "Error: "
1067
+ set InitialMsgLen [string length $InitialMessage]
1068
+ puts -nonewline [errorChannel] $InitialMessage
1069
+
1070
+ # Keep track of where the end of the string is.
1071
+ set endingIndex [string length $errorMsg]
1072
+
1073
+ if {$endingIndex < (80 - $InitialMsgLen)} {
1074
+ puts [errorChannel] $errorMsg
1075
+ } else {
1076
+ # Print up to 80 characters on the first line, including the
1077
+ # InitialMessage.
1078
+ set beginningIndex [string last " " [string range $errorMsg 0 \
1079
+ [expr {80 - $InitialMsgLen}]]]
1080
+ puts [errorChannel] [string range $errorMsg 0 $beginningIndex]
1081
+
1082
+ while {$beginningIndex ne "end"} {
1083
+ puts -nonewline [errorChannel] \
1084
+ [string repeat " " $InitialMsgLen]
1085
+ if {($endingIndex - $beginningIndex)
1086
+ < (80 - $InitialMsgLen)} {
1087
+ puts [errorChannel] [string trim \
1088
+ [string range $errorMsg $beginningIndex end]]
1089
+ break
1090
+ } else {
1091
+ set newEndingIndex [expr {[string last " " \
1092
+ [string range $errorMsg $beginningIndex \
1093
+ [expr {$beginningIndex
1094
+ + (80 - $InitialMsgLen)}]
1095
+ ]] + $beginningIndex}]
1096
+ if {($newEndingIndex <= 0)
1097
+ || ($newEndingIndex <= $beginningIndex)} {
1098
+ set newEndingIndex end
1099
+ }
1100
+ puts [errorChannel] [string trim \
1101
+ [string range $errorMsg \
1102
+ $beginningIndex $newEndingIndex]]
1103
+ set beginningIndex $newEndingIndex
1104
+ }
1105
+ }
1106
+ }
1107
+ flush [errorChannel]
1108
+ return
1109
+ }
1110
+
1111
+ # tcltest::SafeFetch --
1112
+ #
1113
+ # The following trace procedure makes it so that we can safely
1114
+ # refer to non-existent members of the testConstraints array
1115
+ # without causing an error. Instead, reading a non-existent
1116
+ # member will return 0. This is necessary because tests are
1117
+ # allowed to use constraint "X" without ensuring that
1118
+ # testConstraints("X") is defined.
1119
+ #
1120
+ # Arguments:
1121
+ # n1 - name of the array (testConstraints)
1122
+ # n2 - array key value (constraint name)
1123
+ # op - operation performed on testConstraints (generally r)
1124
+ #
1125
+ # Results:
1126
+ # none
1127
+ #
1128
+ # Side effects:
1129
+ # sets testConstraints($n2) to 0 if it's referenced but never
1130
+ # before used
1131
+
1132
+ proc tcltest::SafeFetch {n1 n2 op} {
1133
+ variable testConstraints
1134
+ DebugPuts 3 "entering SafeFetch $n1 $n2 $op"
1135
+ if {$n2 eq {}} {return}
1136
+ if {![info exists testConstraints($n2)]} {
1137
+ if {[catch {testConstraint $n2 [eval [ConstraintInitializer $n2]]}]} {
1138
+ testConstraint $n2 0
1139
+ }
1140
+ }
1141
+ }
1142
+
1143
+ # tcltest::Asciify --
1144
+ #
1145
+ # Transforms the passed string to contain only printable ascii characters.
1146
+ # Useful for printing to terminals. Non-printables are mapped to
1147
+ # \x, \u or \U sequences, except \n.
1148
+ #
1149
+ # Arguments:
1150
+ # s - string to transform
1151
+ #
1152
+ # Results:
1153
+ # The transformed strings
1154
+ #
1155
+ # Side effects:
1156
+ # None.
1157
+
1158
+ proc tcltest::Asciify {s} {
1159
+ set print ""
1160
+ foreach c [split $s ""] {
1161
+ if {(($c < "\x7F") && [string is print $c]) || ($c eq "\n")} {
1162
+ append print $c
1163
+ } elseif {$c < "\u0100"} {
1164
+ append print \\x[format %02X [scan $c %c]]
1165
+ } elseif {$c > "\uFFFF"} {
1166
+ append print \\U[format %08X [scan $c %c]]
1167
+ } else {
1168
+ append print \\u[format %04X [scan $c %c]]
1169
+ }
1170
+ }
1171
+ return $print
1172
+ }
1173
+
1174
+ # tcltest::ConstraintInitializer --
1175
+ #
1176
+ # Get or set a script that when evaluated in the tcltest namespace
1177
+ # will return a boolean value with which to initialize the
1178
+ # associated constraint.
1179
+ #
1180
+ # Arguments:
1181
+ # constraint - name of the constraint initialized by the script
1182
+ # script - the initializer script
1183
+ #
1184
+ # Results
1185
+ # boolean value of the constraint - enabled or disabled
1186
+ #
1187
+ # Side effects:
1188
+ # Constraint is initialized for future reference by [test]
1189
+ proc tcltest::ConstraintInitializer {constraint {script ""}} {
1190
+ variable ConstraintInitializer
1191
+ DebugPuts 3 "entering ConstraintInitializer $constraint $script"
1192
+ if {[llength [info level 0]] == 2} {
1193
+ return $ConstraintInitializer($constraint)
1194
+ }
1195
+ # Check for boolean values
1196
+ if {![info complete $script]} {
1197
+ return -code error "ConstraintInitializer must be complete script"
1198
+ }
1199
+ set ConstraintInitializer($constraint) $script
1200
+ }
1201
+
1202
+ # tcltest::InitConstraints --
1203
+ #
1204
+ # Call all registered constraint initializers to force initialization
1205
+ # of all known constraints.
1206
+ # See the tcltest man page for the list of built-in constraints defined
1207
+ # in this procedure.
1208
+ #
1209
+ # Arguments:
1210
+ # none
1211
+ #
1212
+ # Results:
1213
+ # The testConstraints array is reset to have an index for each
1214
+ # built-in test constraint.
1215
+ #
1216
+ # Side Effects:
1217
+ # None.
1218
+ #
1219
+
1220
+ proc tcltest::InitConstraints {} {
1221
+ variable ConstraintInitializer
1222
+ initConstraintsHook
1223
+ foreach constraint [array names ConstraintInitializer] {
1224
+ testConstraint $constraint
1225
+ }
1226
+ }
1227
+
1228
+ proc tcltest::DefineConstraintInitializers {} {
1229
+ ConstraintInitializer singleTestInterp {singleProcess}
1230
+
1231
+ # All the 'pc' constraints are here for backward compatibility and
1232
+ # are not documented. They have been replaced with equivalent 'win'
1233
+ # constraints.
1234
+
1235
+ ConstraintInitializer unixOnly \
1236
+ {string equal $::tcl_platform(platform) unix}
1237
+ ConstraintInitializer macOnly \
1238
+ {string equal $::tcl_platform(platform) macintosh}
1239
+ ConstraintInitializer pcOnly \
1240
+ {string equal $::tcl_platform(platform) windows}
1241
+ ConstraintInitializer winOnly \
1242
+ {string equal $::tcl_platform(platform) windows}
1243
+
1244
+ ConstraintInitializer unix {testConstraint unixOnly}
1245
+ ConstraintInitializer mac {testConstraint macOnly}
1246
+ ConstraintInitializer pc {testConstraint pcOnly}
1247
+ ConstraintInitializer win {testConstraint winOnly}
1248
+
1249
+ ConstraintInitializer unixOrPc \
1250
+ {expr {[testConstraint unix] || [testConstraint pc]}}
1251
+ ConstraintInitializer macOrPc \
1252
+ {expr {[testConstraint mac] || [testConstraint pc]}}
1253
+ ConstraintInitializer unixOrWin \
1254
+ {expr {[testConstraint unix] || [testConstraint win]}}
1255
+ ConstraintInitializer macOrWin \
1256
+ {expr {[testConstraint mac] || [testConstraint win]}}
1257
+ ConstraintInitializer macOrUnix \
1258
+ {expr {[testConstraint mac] || [testConstraint unix]}}
1259
+
1260
+ ConstraintInitializer nt {string equal $::tcl_platform(os) "Windows NT"}
1261
+ ConstraintInitializer 95 {string equal $::tcl_platform(os) "Windows 95"}
1262
+ ConstraintInitializer 98 {string equal $::tcl_platform(os) "Windows 98"}
1263
+
1264
+ # The following Constraints switches are used to mark tests that
1265
+ # should work, but have been temporarily disabled on certain
1266
+ # platforms because they don't and we haven't gotten around to
1267
+ # fixing the underlying problem.
1268
+
1269
+ ConstraintInitializer tempNotPc {expr {![testConstraint pc]}}
1270
+ ConstraintInitializer tempNotWin {expr {![testConstraint win]}}
1271
+ ConstraintInitializer tempNotMac {expr {![testConstraint mac]}}
1272
+ ConstraintInitializer tempNotUnix {expr {![testConstraint unix]}}
1273
+
1274
+ # The following Constraints switches are used to mark tests that
1275
+ # crash on certain platforms, so that they can be reactivated again
1276
+ # when the underlying problem is fixed.
1277
+
1278
+ ConstraintInitializer pcCrash {expr {![testConstraint pc]}}
1279
+ ConstraintInitializer winCrash {expr {![testConstraint win]}}
1280
+ ConstraintInitializer macCrash {expr {![testConstraint mac]}}
1281
+ ConstraintInitializer unixCrash {expr {![testConstraint unix]}}
1282
+
1283
+ # Skip empty tests
1284
+
1285
+ ConstraintInitializer emptyTest {expr 0}
1286
+
1287
+ # By default, tests that expose known bugs are skipped.
1288
+
1289
+ ConstraintInitializer knownBug {expr 0}
1290
+
1291
+ # By default, non-portable tests are skipped.
1292
+
1293
+ ConstraintInitializer nonPortable {expr 0}
1294
+
1295
+ # By default, extremely slow, extensive or IO-aggressive tests are skipped.
1296
+
1297
+ ConstraintInitializer extensive {expr 0}
1298
+
1299
+ # Some tests require user interaction.
1300
+
1301
+ ConstraintInitializer userInteraction {expr 0}
1302
+
1303
+ # Some tests must be skipped if the interpreter is not in
1304
+ # interactive mode
1305
+
1306
+ ConstraintInitializer interactive \
1307
+ {expr {[info exists ::tcl_interactive] && $::tcl_interactive}}
1308
+
1309
+ # Some tests can only be run if the installation came from a CD
1310
+ # image instead of a web image. Some tests must be skipped if you
1311
+ # are running as root on Unix. Other tests can only be run if you
1312
+ # are running as root on Unix.
1313
+
1314
+ ConstraintInitializer root {expr \
1315
+ {($::tcl_platform(platform) eq "unix") &&
1316
+ ($::tcl_platform(user) in {root {}})}}
1317
+ ConstraintInitializer notRoot {expr {![testConstraint root]}}
1318
+
1319
+ # Set nonBlockFiles constraint: 1 means this platform supports
1320
+ # setting files into nonblocking mode.
1321
+
1322
+ ConstraintInitializer nonBlockFiles {
1323
+ set code [expr {[catch {set f [open defs r]}]
1324
+ || [catch {fconfigure $f -blocking off}]}]
1325
+ catch {close $f}
1326
+ set code
1327
+ }
1328
+
1329
+ # Set asyncPipeClose constraint: 1 means this platform supports
1330
+ # async flush and async close on a pipe.
1331
+ #
1332
+ # Test for SCO Unix - cannot run async flushing tests because a
1333
+ # potential problem with select is apparently interfering.
1334
+ # (Mark Diekhans).
1335
+
1336
+ ConstraintInitializer asyncPipeClose {expr {
1337
+ !([string equal unix $::tcl_platform(platform)]
1338
+ && ([catch {exec uname -X | fgrep {Release = 3.2v}}] == 0))}}
1339
+
1340
+ # Test to see if we have a broken version of sprintf with respect
1341
+ # to the "e" format of floating-point numbers.
1342
+
1343
+ ConstraintInitializer eformat {string equal [format %g 5e-5] 5e-05}
1344
+
1345
+ # Test to see if execed commands such as cat, echo, rm and so forth
1346
+ # are present on this machine.
1347
+
1348
+ ConstraintInitializer unixExecs {
1349
+ set code 1
1350
+ if {$::tcl_platform(platform) eq "macintosh"} {
1351
+ set code 0
1352
+ }
1353
+ if {$::tcl_platform(platform) eq "windows"} {
1354
+ if {[catch {
1355
+ set file _tcl_test_remove_me.txt
1356
+ makeFile {hello} $file
1357
+ }]} {
1358
+ set code 0
1359
+ } elseif {
1360
+ [catch {exec cat $file}] ||
1361
+ [catch {exec echo hello}] ||
1362
+ [catch {exec sh -c echo hello}] ||
1363
+ [catch {exec wc $file}] ||
1364
+ [catch {exec sleep 1}] ||
1365
+ [catch {exec echo abc > $file}] ||
1366
+ [catch {exec chmod 644 $file}] ||
1367
+ [catch {exec rm $file}] ||
1368
+ [llength [auto_execok mkdir]] == 0 ||
1369
+ [llength [auto_execok fgrep]] == 0 ||
1370
+ [llength [auto_execok grep]] == 0 ||
1371
+ [llength [auto_execok ps]] == 0
1372
+ } {
1373
+ set code 0
1374
+ }
1375
+ removeFile $file
1376
+ }
1377
+ set code
1378
+ }
1379
+
1380
+ ConstraintInitializer stdio {
1381
+ variable fullutf
1382
+
1383
+ set code 0
1384
+ if {![catch {set f [open "|[list [interpreter]]" w]}]} {
1385
+ if {$fullutf} {
1386
+ fconfigure $f -profile tcl8 -encoding utf-8
1387
+ }
1388
+ if {![catch {puts $f exit}]} {
1389
+ if {![catch {close $f}]} {
1390
+ set code 1
1391
+ }
1392
+ }
1393
+ }
1394
+ set code
1395
+ }
1396
+
1397
+ # Deliberately call socket with the wrong number of arguments. The
1398
+ # error message you get will indicate whether sockets are available
1399
+ # on this system.
1400
+
1401
+ ConstraintInitializer socket {
1402
+ catch {socket} msg
1403
+ string compare $msg "sockets are not available on this system"
1404
+ }
1405
+
1406
+ # Check for internationalization
1407
+ ConstraintInitializer hasIsoLocale {
1408
+ if {[llength [info commands testlocale]] == 0} {
1409
+ set code 0
1410
+ } else {
1411
+ set code [string length [SetIso8859_1_Locale]]
1412
+ RestoreLocale
1413
+ }
1414
+ set code
1415
+ }
1416
+
1417
+ }
1418
+ #####################################################################
1419
+
1420
+ # Usage and command line arguments processing.
1421
+
1422
+ # tcltest::PrintUsageInfo
1423
+ #
1424
+ # Prints out the usage information for package tcltest. This can
1425
+ # be customized with the redefinition of [PrintUsageInfoHook].
1426
+ #
1427
+ # Arguments:
1428
+ # none
1429
+ #
1430
+ # Results:
1431
+ # none
1432
+ #
1433
+ # Side Effects:
1434
+ # none
1435
+ proc tcltest::PrintUsageInfo {} {
1436
+ puts [Usage]
1437
+ PrintUsageInfoHook
1438
+ }
1439
+
1440
+ proc tcltest::Usage { {option ""} } {
1441
+ variable Usage
1442
+ variable Verify
1443
+ if {[llength [info level 0]] == 1} {
1444
+ set msg "Usage: [file tail [info nameofexecutable]] script "
1445
+ append msg "?-help? ?flag value? ... \n"
1446
+ append msg "Available flags (and valid input values) are:"
1447
+
1448
+ set max 0
1449
+ set allOpts [concat -help [Configure]]
1450
+ foreach opt $allOpts {
1451
+ set foo [Usage $opt]
1452
+ lassign $foo x type($opt) usage($opt)
1453
+ set line($opt) " $opt $type($opt) "
1454
+ set length($opt) [string length $line($opt)]
1455
+ if {$length($opt) > $max} {set max $length($opt)}
1456
+ }
1457
+ set rest [expr {72 - $max}]
1458
+ foreach opt $allOpts {
1459
+ append msg \n$line($opt)
1460
+ append msg [string repeat " " [expr {$max - $length($opt)}]]
1461
+ set u [string trim $usage($opt)]
1462
+ catch {append u " (default: \[[Configure $opt]])"}
1463
+ regsub -all {\s*\n\s*} $u " " u
1464
+ while {[string length $u] > $rest} {
1465
+ set break [string wordstart $u $rest]
1466
+ if {$break == 0} {
1467
+ set break [string wordend $u 0]
1468
+ }
1469
+ append msg [string range $u 0 [expr {$break - 1}]]
1470
+ set u [string trim [string range $u $break end]]
1471
+ append msg \n[string repeat " " $max]
1472
+ }
1473
+ append msg $u
1474
+ }
1475
+ return $msg\n
1476
+ } elseif {$option eq "-help"} {
1477
+ return [list -help "" "Display this usage information."]
1478
+ } else {
1479
+ set type [lindex [info args $Verify($option)] 0]
1480
+ return [list $option $type $Usage($option)]
1481
+ }
1482
+ }
1483
+
1484
+ # tcltest::ProcessFlags --
1485
+ #
1486
+ # process command line arguments supplied in the flagArray - this
1487
+ # is called by processCmdLineArgs. Modifies tcltest variables
1488
+ # according to the content of the flagArray.
1489
+ #
1490
+ # Arguments:
1491
+ # flagArray - array containing name/value pairs of flags
1492
+ #
1493
+ # Results:
1494
+ # sets tcltest variables according to their values as defined by
1495
+ # flagArray
1496
+ #
1497
+ # Side effects:
1498
+ # None.
1499
+
1500
+ proc tcltest::ProcessFlags {flagArray} {
1501
+ # Process -help first
1502
+ if {"-help" in $flagArray} {
1503
+ PrintUsageInfo
1504
+ exit 1
1505
+ }
1506
+
1507
+ if {[llength $flagArray] == 0} {
1508
+ RemoveAutoConfigureTraces
1509
+ } else {
1510
+ set args $flagArray
1511
+ while {[llength $args] > 1 && [catch {configure {*}$args} msg]} {
1512
+
1513
+ # Something went wrong parsing $args for tcltest options
1514
+ # Check whether the problem is "unknown option"
1515
+ if {[regexp {^unknown option (\S+):} $msg -> option]} {
1516
+ # Could be this is an option the Hook knows about
1517
+ set moreOptions [processCmdLineArgsAddFlagsHook]
1518
+ if {$option ni $moreOptions} {
1519
+ # Nope. Report the error, including additional options,
1520
+ # but keep going
1521
+ if {[llength $moreOptions]} {
1522
+ append msg ", "
1523
+ append msg [join [lrange $moreOptions 0 end-1] ", "]
1524
+ append msg "or [lindex $moreOptions end]"
1525
+ }
1526
+ Warn $msg
1527
+ }
1528
+ } else {
1529
+ # error is something other than "unknown option"
1530
+ # notify user of the error; and exit
1531
+ puts [errorChannel] $msg
1532
+ exit 1
1533
+ }
1534
+
1535
+ # To recover, find that unknown option and remove up to it.
1536
+ # then retry
1537
+ while {[lindex $args 0] ne $option} {
1538
+ set args [lrange $args 2 end]
1539
+ }
1540
+ set args [lrange $args 2 end]
1541
+ }
1542
+ if {[llength $args] == 1} {
1543
+ puts [errorChannel] \
1544
+ "missing value for option [lindex $args 0]"
1545
+ exit 1
1546
+ }
1547
+ }
1548
+
1549
+ # Call the hook
1550
+ catch {
1551
+ array set flag $flagArray
1552
+ processCmdLineArgsHook [array get flag]
1553
+ }
1554
+ return
1555
+ }
1556
+
1557
+ # tcltest::ProcessCmdLineArgs --
1558
+ #
1559
+ # This procedure must be run after constraint initialization is
1560
+ # set up (by [DefineConstraintInitializers]) because some constraints
1561
+ # can be overridden.
1562
+ #
1563
+ # Perform configuration according to the command-line options.
1564
+ #
1565
+ # Arguments:
1566
+ # none
1567
+ #
1568
+ # Results:
1569
+ # Sets the above-named variables in the tcltest namespace.
1570
+ #
1571
+ # Side Effects:
1572
+ # None.
1573
+ #
1574
+
1575
+ proc tcltest::ProcessCmdLineArgs {} {
1576
+ variable originalEnv
1577
+ variable testConstraints
1578
+
1579
+ # The "argv" var doesn't exist in some cases, so use {}.
1580
+ if {![info exists ::argv]} {
1581
+ ProcessFlags {}
1582
+ } else {
1583
+ ProcessFlags $::argv
1584
+ }
1585
+
1586
+ # Spit out everything you know if we're at a debug level 2 or
1587
+ # greater
1588
+ DebugPuts 2 "Flags passed into tcltest:"
1589
+ if {[info exists ::env(TCLTEST_OPTIONS)]} {
1590
+ DebugPuts 2 \
1591
+ " ::env(TCLTEST_OPTIONS): $::env(TCLTEST_OPTIONS)"
1592
+ }
1593
+ if {[info exists ::argv]} {
1594
+ DebugPuts 2 " argv: $::argv"
1595
+ }
1596
+ DebugPuts 2 "tcltest::debug = [debug]"
1597
+ DebugPuts 2 "tcltest::testsDirectory = [testsDirectory]"
1598
+ DebugPuts 2 "tcltest::workingDirectory = [workingDirectory]"
1599
+ DebugPuts 2 "tcltest::temporaryDirectory = [temporaryDirectory]"
1600
+ DebugPuts 2 "tcltest::outputChannel = [outputChannel]"
1601
+ DebugPuts 2 "tcltest::errorChannel = [errorChannel]"
1602
+ DebugPuts 2 "Original environment (tcltest::originalEnv):"
1603
+ DebugPArray 2 originalEnv
1604
+ DebugPuts 2 "Constraints:"
1605
+ DebugPArray 2 testConstraints
1606
+ }
1607
+
1608
+ #####################################################################
1609
+
1610
+ # Code to run the tests goes here.
1611
+
1612
+ # tcltest::TestPuts --
1613
+ #
1614
+ # Used to redefine puts in test environment. Stores whatever goes
1615
+ # out on stdout in tcltest::outData and stderr in errData before
1616
+ # sending it on to the regular puts.
1617
+ #
1618
+ # Arguments:
1619
+ # same as standard puts
1620
+ #
1621
+ # Results:
1622
+ # none
1623
+ #
1624
+ # Side effects:
1625
+ # Intercepts puts; data that would otherwise go to stdout, stderr,
1626
+ # or file channels specified in outputChannel and errorChannel
1627
+ # does not get sent to the normal puts function.
1628
+ namespace eval tcltest::Replace {
1629
+ namespace export puts
1630
+ }
1631
+ proc tcltest::Replace::puts {args} {
1632
+ variable [namespace parent]::outData
1633
+ variable [namespace parent]::errData
1634
+ switch [llength $args] {
1635
+ 1 {
1636
+ # Only the string to be printed is specified
1637
+ append outData [lindex $args 0]\n
1638
+ return
1639
+ # return [Puts [lindex $args 0]]
1640
+ }
1641
+ 2 {
1642
+ # Either -nonewline or channel has been specified
1643
+ if {[lindex $args 0] eq "-nonewline"} {
1644
+ append outData [lindex $args end]
1645
+ return
1646
+ # return [Puts -nonewline [lindex $args end]]
1647
+ } else {
1648
+ set channel [lindex $args 0]
1649
+ set newline \n
1650
+ }
1651
+ }
1652
+ 3 {
1653
+ if {[lindex $args 0] eq "-nonewline"} {
1654
+ # Both -nonewline and channel are specified, unless
1655
+ # it's an error. -nonewline is supposed to be argv[0].
1656
+ set channel [lindex $args 1]
1657
+ set newline ""
1658
+ }
1659
+ }
1660
+ }
1661
+
1662
+ if {[info exists channel]} {
1663
+ if {$channel in [list [[namespace parent]::outputChannel] stdout]} {
1664
+ append outData [lindex $args end]$newline
1665
+ return
1666
+ } elseif {$channel in [list [[namespace parent]::errorChannel] stderr]} {
1667
+ append errData [lindex $args end]$newline
1668
+ return
1669
+ }
1670
+ }
1671
+
1672
+ # If we haven't returned by now, we don't know how to handle the
1673
+ # input. Let puts handle it.
1674
+ return [Puts {*}$args]
1675
+ }
1676
+
1677
+ # tcltest::Eval --
1678
+ #
1679
+ # Evaluate the script in the test environment. If ignoreOutput is
1680
+ # false, store data sent to stderr and stdout in outData and
1681
+ # errData. Otherwise, ignore this output altogether.
1682
+ #
1683
+ # Arguments:
1684
+ # script Script to evaluate
1685
+ # ?ignoreOutput? Indicates whether or not to ignore output
1686
+ # sent to stdout & stderr
1687
+ #
1688
+ # Results:
1689
+ # result from running the script
1690
+ #
1691
+ # Side effects:
1692
+ # Empties the contents of outData and errData before running a
1693
+ # test if ignoreOutput is set to 0.
1694
+
1695
+ proc tcltest::Eval {script {ignoreOutput 1}} {
1696
+ variable outData
1697
+ variable errData
1698
+ DebugPuts 3 "[lindex [info level 0] 0] called"
1699
+ if {!$ignoreOutput} {
1700
+ set outData {}
1701
+ set errData {}
1702
+ rename ::puts [namespace current]::Replace::Puts
1703
+ namespace eval :: [list namespace import [namespace origin Replace::puts]]
1704
+ namespace import Replace::puts
1705
+ }
1706
+ set result [uplevel 1 $script]
1707
+ if {!$ignoreOutput} {
1708
+ namespace forget puts
1709
+ namespace eval :: namespace forget puts
1710
+ rename [namespace current]::Replace::Puts ::puts
1711
+ }
1712
+ return $result
1713
+ }
1714
+
1715
+ # tcltest::CompareStrings --
1716
+ #
1717
+ # compares the expected answer to the actual answer, depending on
1718
+ # the mode provided. Mode determines whether a regexp, exact,
1719
+ # glob or custom comparison is done.
1720
+ #
1721
+ # Arguments:
1722
+ # actual - string containing the actual result
1723
+ # expected - pattern to be matched against
1724
+ # mode - type of comparison to be done
1725
+ #
1726
+ # Results:
1727
+ # result of the match
1728
+ #
1729
+ # Side effects:
1730
+ # None.
1731
+
1732
+ proc tcltest::CompareStrings {actual expected mode} {
1733
+ variable CustomMatch
1734
+ if {![info exists CustomMatch($mode)]} {
1735
+ return -code error "No matching command registered for `-match $mode'"
1736
+ }
1737
+ set match [namespace eval :: $CustomMatch($mode) [list $expected $actual]]
1738
+ if {[catch {expr {$match && $match}} result]} {
1739
+ return -code error "Invalid result from `-match $mode' command: $result"
1740
+ }
1741
+ return $match
1742
+ }
1743
+
1744
+ # tcltest::customMatch --
1745
+ #
1746
+ # registers a command to be called when a particular type of
1747
+ # matching is required.
1748
+ #
1749
+ # Arguments:
1750
+ # nickname - Keyword for the type of matching
1751
+ # cmd - Incomplete command that implements that type of matching
1752
+ # when completed with expected string and actual string
1753
+ # and then evaluated.
1754
+ #
1755
+ # Results:
1756
+ # None.
1757
+ #
1758
+ # Side effects:
1759
+ # Sets the variable tcltest::CustomMatch
1760
+
1761
+ proc tcltest::customMatch {mode script} {
1762
+ variable CustomMatch
1763
+ if {![info complete $script]} {
1764
+ return -code error \
1765
+ "invalid customMatch script; can't evaluate after completion"
1766
+ }
1767
+ set CustomMatch($mode) $script
1768
+ }
1769
+
1770
+ # tcltest::SubstArguments list
1771
+ #
1772
+ # This helper function takes in a list of words, then perform a
1773
+ # substitution on the list as though each word in the list is a separate
1774
+ # argument to the Tcl function. For example, if this function is
1775
+ # invoked as:
1776
+ #
1777
+ # SubstArguments {$a {$a}}
1778
+ #
1779
+ # Then it is as though the function is invoked as:
1780
+ #
1781
+ # SubstArguments $a {$a}
1782
+ #
1783
+ # This code is adapted from Paul Duffin's function "SplitIntoWords".
1784
+ # The original function can be found on:
1785
+ #
1786
+ # http://purl.org/thecliff/tcl/wiki/858.html
1787
+ #
1788
+ # Results:
1789
+ # a list containing the result of the substitution
1790
+ #
1791
+ # Exceptions:
1792
+ # An error may occur if the list containing unbalanced quote or
1793
+ # unknown variable.
1794
+ #
1795
+ # Side Effects:
1796
+ # None.
1797
+ #
1798
+
1799
+ proc tcltest::SubstArguments {argList} {
1800
+
1801
+ # We need to split the argList up into tokens but cannot use list
1802
+ # operations as they throw away some significant quoting, and
1803
+ # [split] ignores braces as it should. Therefore what we do is
1804
+ # gradually build up a string out of whitespace-separated strings.
1805
+ # We cannot use [split] to split the argList into whitespace
1806
+ # separated strings as it throws away the whitespace which maybe
1807
+ # important so we have to do it all by hand.
1808
+
1809
+ set result {}
1810
+ set token ""
1811
+
1812
+ while {[string length $argList]} {
1813
+ # Look for the next word containing a quote: " { }
1814
+ if {[regexp -indices {[^ \t\n]*[\"\{\}]+[^ \t\n]*} \
1815
+ $argList all]} {
1816
+ # Get the text leading up to this word, but not including
1817
+ # this word, from the argList.
1818
+ set text [string range $argList 0 \
1819
+ [expr {[lindex $all 0] - 1}]]
1820
+ # Get the word with the quote
1821
+ set word [string range $argList \
1822
+ [lindex $all 0] [lindex $all 1]]
1823
+
1824
+ # Remove all text up to and including the word from the
1825
+ # argList.
1826
+ set argList [string range $argList \
1827
+ [expr {[lindex $all 1] + 1}] end]
1828
+ } else {
1829
+ # Take everything up to the end of the argList.
1830
+ set text $argList
1831
+ set word {}
1832
+ set argList {}
1833
+ }
1834
+
1835
+ if {$token ne {}} {
1836
+ # If we saw a word with quote before, then there is a
1837
+ # multi-word token starting with that word. In this case,
1838
+ # add the text and the current word to this token.
1839
+ append token $text $word
1840
+ } else {
1841
+ # Add the text to the result. There is no need to parse
1842
+ # the text because it couldn't be a part of any multi-word
1843
+ # token. Then start a new multi-word token with the word
1844
+ # because we need to pass this token to the Tcl parser to
1845
+ # check for balancing quotes
1846
+ append result $text
1847
+ set token $word
1848
+ }
1849
+
1850
+ if { [catch {llength $token} length] == 0 && $length == 1} {
1851
+ # The token is a valid list so add it to the result.
1852
+ # lappend result [string trim $token]
1853
+ append result \{$token\}
1854
+ set token {}
1855
+ }
1856
+ }
1857
+
1858
+ # If the last token has not been added to the list then there
1859
+ # is a problem.
1860
+ if { [string length $token] } {
1861
+ error "incomplete token \"$token\""
1862
+ }
1863
+
1864
+ return $result
1865
+ }
1866
+
1867
+
1868
+ # tcltest::test --
1869
+ #
1870
+ # This procedure runs a test and prints an error message if the test
1871
+ # fails. If verbose has been set, it also prints a message even if the
1872
+ # test succeeds. The test will be skipped if it doesn't match the
1873
+ # match variable, if it matches an element in skip, or if one of the
1874
+ # elements of "constraints" turns out not to be true.
1875
+ #
1876
+ # If testLevel is 1, then this is a top level test, and we record
1877
+ # pass/fail information; otherwise, this information is not logged and
1878
+ # is not added to running totals.
1879
+ #
1880
+ # Attributes:
1881
+ # Only description is a required attribute. All others are optional.
1882
+ # Default values are indicated.
1883
+ #
1884
+ # constraints - A list of one or more keywords, each of which
1885
+ # must be the name of an element in the array
1886
+ # "testConstraints". If any of these elements is
1887
+ # zero, the test is skipped. This attribute is
1888
+ # optional; default is {}
1889
+ # body - Script to run to carry out the test. It must
1890
+ # return a result that can be checked for
1891
+ # correctness. This attribute is optional;
1892
+ # default is {}
1893
+ # result - Expected result from script. This attribute is
1894
+ # optional; default is {}.
1895
+ # output - Expected output sent to stdout. This attribute
1896
+ # is optional; default is {}.
1897
+ # errorOutput - Expected output sent to stderr. This attribute
1898
+ # is optional; default is {}.
1899
+ # returnCodes - Expected return codes. This attribute is
1900
+ # optional; default is {0 2}.
1901
+ # errorCode - Expected error code. This attribute is
1902
+ # optional; default is {*}. It is a glob pattern.
1903
+ # If given, returnCodes defaults to {1}.
1904
+ # setup - Code to run before $script (above). This
1905
+ # attribute is optional; default is {}.
1906
+ # cleanup - Code to run after $script (above). This
1907
+ # attribute is optional; default is {}.
1908
+ # match - specifies type of matching to do on result,
1909
+ # output, errorOutput; this must be a string
1910
+ # previously registered by a call to [customMatch].
1911
+ # The strings exact, glob, and regexp are preregistered
1912
+ # by the tcltest package. Default value is exact.
1913
+ #
1914
+ # Arguments:
1915
+ # name - Name of test, in the form foo-1.2.
1916
+ # description - Short textual description of the test, to
1917
+ # help humans understand what it does.
1918
+ #
1919
+ # Results:
1920
+ # None.
1921
+ #
1922
+ # Side effects:
1923
+ # Just about anything is possible depending on the test.
1924
+ #
1925
+
1926
+ proc tcltest::test {name description args} {
1927
+ global tcl_platform
1928
+ variable testLevel
1929
+ variable coreModTime
1930
+ variable fullutf
1931
+
1932
+ DebugPuts 3 "test $name $args"
1933
+ DebugDo 1 {
1934
+ variable TestNames
1935
+ catch {
1936
+ puts "test name '$name' re-used; prior use in $TestNames($name)"
1937
+ }
1938
+ set TestNames($name) [info script]
1939
+ }
1940
+
1941
+ FillFilesExisted
1942
+ incr testLevel
1943
+
1944
+ # Predefine everything to null except output and errorOutput. We
1945
+ # determine whether or not to trap output based on whether or not
1946
+ # these variables (output & errorOutput) are defined.
1947
+ lassign {} constraints setup cleanup body result returnCodes errorCode match
1948
+
1949
+ # Set the default match mode
1950
+ set match exact
1951
+
1952
+ # Set the default match values for return codes (0 is the standard
1953
+ # expected return value if everything went well; 2 represents
1954
+ # 'return' being used in the test script).
1955
+ set returnCodes [list 0 2]
1956
+
1957
+ # Set the default error code pattern
1958
+ set errorCode "*"
1959
+
1960
+ # The old test format can't have a 3rd argument (constraints or
1961
+ # script) that starts with '-'.
1962
+ if {[string match -* [lindex $args 0]] || ([llength $args] <= 1)} {
1963
+ if {[llength $args] == 1} {
1964
+ set list [SubstArguments [lindex $args 0]]
1965
+ foreach {element value} $list {
1966
+ set testAttributes($element) $value
1967
+ }
1968
+ foreach item {constraints match setup body cleanup \
1969
+ result returnCodes errorCode output errorOutput} {
1970
+ if {[info exists testAttributes(-$item)]} {
1971
+ set testAttributes(-$item) [uplevel 1 \
1972
+ ::concat $testAttributes(-$item)]
1973
+ }
1974
+ }
1975
+ } else {
1976
+ array set testAttributes $args
1977
+ }
1978
+
1979
+ set validFlags {-setup -cleanup -body -result -returnCodes \
1980
+ -errorCode -match -output -errorOutput -constraints}
1981
+
1982
+ foreach flag [array names testAttributes] {
1983
+ if {$flag ni $validFlags} {
1984
+ incr testLevel -1
1985
+ set sorted [lsort $validFlags]
1986
+ set options [join [lrange $sorted 0 end-1] ", "]
1987
+ append options ", or [lindex $sorted end]"
1988
+ return -code error "bad option \"$flag\": must be $options"
1989
+ }
1990
+ }
1991
+
1992
+ # store whatever the user gave us
1993
+ foreach item [array names testAttributes] {
1994
+ set [string trimleft $item "-"] $testAttributes($item)
1995
+ }
1996
+
1997
+ # Check the values supplied for -match
1998
+ variable CustomMatch
1999
+ if {$match ni [array names CustomMatch]} {
2000
+ incr testLevel -1
2001
+ set sorted [lsort [array names CustomMatch]]
2002
+ set values [join [lrange $sorted 0 end-1] ", "]
2003
+ append values ", or [lindex $sorted end]"
2004
+ return -code error "bad -match value \"$match\":\
2005
+ must be $values"
2006
+ }
2007
+
2008
+ # Replace symbolic valies supplied for -returnCodes
2009
+ foreach {strcode numcode} {ok 0 normal 0 error 1 return 2 break 3 continue 4} {
2010
+ set returnCodes [string map -nocase [list $strcode $numcode] $returnCodes]
2011
+ }
2012
+ # errorCode without returnCode 1 is meaningless
2013
+ if {$errorCode ne "*" && 1 ni $returnCodes} {
2014
+ set returnCodes 1
2015
+ }
2016
+ } else {
2017
+ # This is parsing for the old test command format; it is here
2018
+ # for backward compatibility.
2019
+ set result [lindex $args end]
2020
+ if {[llength $args] == 2} {
2021
+ set body [lindex $args 0]
2022
+ } elseif {[llength $args] == 3} {
2023
+ set constraints [lindex $args 0]
2024
+ set body [lindex $args 1]
2025
+ } else {
2026
+ incr testLevel -1
2027
+ return -code error "wrong # args:\
2028
+ should be \"test name desc ?options?\""
2029
+ }
2030
+ }
2031
+
2032
+ if {[Skipped $name $constraints]} {
2033
+ incr testLevel -1
2034
+ return
2035
+ }
2036
+
2037
+ # Save information about the core file.
2038
+ if {[preserveCore]} {
2039
+ if {[file exists [file join [workingDirectory] core]]} {
2040
+ set coreModTime [file mtime [file join [workingDirectory] core]]
2041
+ }
2042
+ }
2043
+
2044
+ # First, run the setup script (or a hook if it presents):
2045
+ if {[set cmd [namespace which -command [namespace current]::SetupTest]] ne ""} {
2046
+ set setup [list $cmd $setup]
2047
+ }
2048
+ set processTest 1
2049
+ set code [catch {uplevel 1 $setup} setupMsg]
2050
+ if {$code == 1} {
2051
+ set errorInfo(setup) $::errorInfo
2052
+ set errorCodeRes(setup) $::errorCode
2053
+ if {$errorCodeRes(setup) eq "BYPASS-SKIPPED-TEST"} {
2054
+ _noticeSkipped $name $setupMsg
2055
+ set processTest [set code 0]
2056
+ }
2057
+ }
2058
+ set setupFailure [expr {$code != 0}]
2059
+
2060
+ # Only run the test body if the setup was successful
2061
+ if {$processTest && !$setupFailure} {
2062
+
2063
+ # Register startup time
2064
+ if {[IsVerbose msec] || [IsVerbose usec]} {
2065
+ set timeStart [clock microseconds]
2066
+ }
2067
+
2068
+ # Verbose notification of $body start
2069
+ if {[IsVerbose start]} {
2070
+ puts [outputChannel] "---- $name start"
2071
+ flush [outputChannel]
2072
+ }
2073
+
2074
+ set command [list [namespace origin RunTest] $name $body]
2075
+ if {[info exists output] || [info exists errorOutput]} {
2076
+ set testResult [uplevel 1 [list [namespace origin Eval] $command 0]]
2077
+ } else {
2078
+ set testResult [uplevel 1 [list [namespace origin Eval] $command 1]]
2079
+ }
2080
+ lassign $testResult actualAnswer returnCode
2081
+ if {$returnCode == 1} {
2082
+ set errorInfo(body) $::errorInfo
2083
+ set errorCodeRes(body) $::errorCode
2084
+ if {$errorCodeRes(body) eq "BYPASS-SKIPPED-TEST"} {
2085
+ _noticeSkipped $name $actualAnswer
2086
+ set processTest [set returnCode 0]
2087
+ }
2088
+ }
2089
+ }
2090
+
2091
+ # check if the return code matched the expected return code
2092
+ set codeFailure 0
2093
+ if {$processTest && !$setupFailure && ($returnCode ni $returnCodes)} {
2094
+ set codeFailure 1
2095
+ }
2096
+ set errorCodeFailure 0
2097
+ if {$processTest && !$setupFailure && !$codeFailure && $returnCode == 1 && \
2098
+ ![string match $errorCode $errorCodeRes(body)]} {
2099
+ set errorCodeFailure 1
2100
+ }
2101
+
2102
+ # If expected output/error strings exist, we have to compare
2103
+ # them. If the comparison fails, then so did the test.
2104
+ set outputFailure 0
2105
+ variable outData
2106
+ if {$processTest && [info exists output] && !$codeFailure} {
2107
+ if {[set outputCompare [catch {
2108
+ CompareStrings $outData $output $match
2109
+ } outputMatch]] == 0} {
2110
+ set outputFailure [expr {!$outputMatch}]
2111
+ } else {
2112
+ set outputFailure 1
2113
+ }
2114
+ }
2115
+
2116
+ set errorFailure 0
2117
+ variable errData
2118
+ if {$processTest && [info exists errorOutput] && !$codeFailure} {
2119
+ if {[set errorCompare [catch {
2120
+ CompareStrings $errData $errorOutput $match
2121
+ } errorMatch]] == 0} {
2122
+ set errorFailure [expr {!$errorMatch}]
2123
+ } else {
2124
+ set errorFailure 1
2125
+ }
2126
+ }
2127
+
2128
+ # check if the answer matched the expected answer
2129
+ # Only check if we ran the body of the test (no setup failure)
2130
+ if {!$processTest} {
2131
+ set scriptFailure 0
2132
+ } elseif {$setupFailure || $codeFailure} {
2133
+ set scriptFailure 0
2134
+ } elseif {[set scriptCompare [catch {
2135
+ CompareStrings $actualAnswer $result $match
2136
+ } scriptMatch]] == 0} {
2137
+ set scriptFailure [expr {!$scriptMatch}]
2138
+ } else {
2139
+ set scriptFailure 1
2140
+ }
2141
+
2142
+ # Always run the cleanup script (or a hook if it presents):
2143
+ if {[set cmd [namespace which -command [namespace current]::CleanupTest]] ne ""} {
2144
+ set cleanup [list $cmd $cleanup]
2145
+ }
2146
+ set code [catch {uplevel 1 $cleanup} cleanupMsg]
2147
+ if {$code == 1} {
2148
+ set errorInfo(cleanup) $::errorInfo
2149
+ set errorCodeRes(cleanup) $::errorCode
2150
+ }
2151
+ set cleanupFailure [expr {$code != 0}]
2152
+
2153
+ set coreFailure 0
2154
+ set coreMsg ""
2155
+ # check for a core file first - if one was created by the test,
2156
+ # then the test failed
2157
+ if {[preserveCore]} {
2158
+ if {[file exists [file join [workingDirectory] core]]} {
2159
+ # There's only a test failure if there is a core file
2160
+ # and (1) there previously wasn't one or (2) the new
2161
+ # one is different from the old one.
2162
+ if {[info exists coreModTime]} {
2163
+ if {$coreModTime != [file mtime \
2164
+ [file join [workingDirectory] core]]} {
2165
+ set coreFailure 1
2166
+ }
2167
+ } else {
2168
+ set coreFailure 1
2169
+ }
2170
+
2171
+ if {([preserveCore] > 1) && ($coreFailure)} {
2172
+ append coreMsg "\nMoving file to:\
2173
+ [file join [temporaryDirectory] core-$name]"
2174
+ catch {file rename -force -- \
2175
+ [file join [workingDirectory] core] \
2176
+ [file join [temporaryDirectory] core-$name]
2177
+ } msg
2178
+ if {$msg ne {}} {
2179
+ append coreMsg "\nError:\
2180
+ Problem renaming core file: $msg"
2181
+ }
2182
+ }
2183
+ }
2184
+ }
2185
+
2186
+ if {[IsVerbose msec] || [IsVerbose usec]} {
2187
+ set t [expr {[clock microseconds] - $timeStart}]
2188
+ if {[IsVerbose usec]} {
2189
+ puts [outputChannel] "++++ $name took $t \xB5s"
2190
+ }
2191
+ if {[IsVerbose msec]} {
2192
+ puts [outputChannel] "++++ $name took [expr {round($t/1000.)}] ms"
2193
+ }
2194
+ }
2195
+
2196
+ # if skipped, it is safe to return here
2197
+ if {!$processTest} {
2198
+ incr testLevel -1
2199
+ return
2200
+ }
2201
+
2202
+ # if we didn't experience any failures, then we passed
2203
+ variable numTests
2204
+ if {!($setupFailure || $cleanupFailure || $coreFailure
2205
+ || $outputFailure || $errorFailure || $codeFailure
2206
+ || $errorCodeFailure || $scriptFailure)} {
2207
+ if {$testLevel == 1} {
2208
+ incr numTests(Passed)
2209
+ if {[IsVerbose pass]} {
2210
+ puts [outputChannel] "++++ $name PASSED"
2211
+ }
2212
+ }
2213
+ incr testLevel -1
2214
+ return
2215
+ }
2216
+
2217
+ # We know the test failed, tally it...
2218
+ if {$testLevel == 1} {
2219
+ incr numTests(Failed)
2220
+ }
2221
+
2222
+ # ... then report according to the type of failure
2223
+ variable currentFailure true
2224
+ if {![IsVerbose body]} {
2225
+ set body ""
2226
+ }
2227
+ puts [outputChannel] "\n"
2228
+ if {[IsVerbose line]} {
2229
+ if {![catch {set testFrame [info frame -1]}] &&
2230
+ [dict get $testFrame type] eq "source"} {
2231
+ set testFile [dict get $testFrame file]
2232
+ set testLine [dict get $testFrame line]
2233
+ } else {
2234
+ set testFile [file normalize [uplevel 1 {info script}]]
2235
+ if {[file readable $testFile]} {
2236
+ set testFd [open $testFile r]
2237
+ if {$fullutf} {
2238
+ fconfigure $testFd -profile tcl8 -encoding utf-8
2239
+ }
2240
+ set testLine [expr {[lsearch -regexp \
2241
+ [split [read $testFd] "\n"] \
2242
+ "^\[ \t\]*test [string map {. \\.} $name] "] + 1}]
2243
+ close $testFd
2244
+ }
2245
+ }
2246
+ if {[info exists testLine]} {
2247
+ puts [outputChannel] "$testFile:$testLine: error: test failed:\
2248
+ $name [string trim $description]"
2249
+ }
2250
+ }
2251
+ puts [outputChannel] "==== $name\
2252
+ [string trim $description] FAILED"
2253
+ if {[string length $body]} {
2254
+ puts [outputChannel] "==== Contents of test case:"
2255
+ puts [outputChannel] $body
2256
+ }
2257
+ if {$setupFailure} {
2258
+ puts [outputChannel] "---- Test setup\
2259
+ failed:\n$setupMsg"
2260
+ if {[info exists errorInfo(setup)]} {
2261
+ puts [outputChannel] "---- errorInfo(setup): $errorInfo(setup)"
2262
+ puts [outputChannel] "---- errorCode(setup): $errorCodeRes(setup)"
2263
+ }
2264
+ }
2265
+ if {$processTest && $scriptFailure} {
2266
+ if {$scriptCompare} {
2267
+ puts [outputChannel] "---- Error testing result: $scriptMatch"
2268
+ } else {
2269
+ if {[catch {
2270
+ puts [outputChannel] "---- Result was:\n[Asciify $actualAnswer]"
2271
+ } errMsg]} {
2272
+ puts [outputChannel] "\n---- Result was:\n<error printing result: $errMsg>"
2273
+ }
2274
+ puts [outputChannel] "---- Result should have been\
2275
+ ($match matching):\n[Asciify $result]"
2276
+ }
2277
+ }
2278
+ if {$errorCodeFailure} {
2279
+ puts [outputChannel] "---- Error code was: '$errorCodeRes(body)'"
2280
+ puts [outputChannel] "---- Error code should have been: '$errorCode'"
2281
+ }
2282
+ if {$codeFailure} {
2283
+ switch -- $returnCode {
2284
+ 0 { set msg "Test completed normally" }
2285
+ 1 { set msg "Test generated error" }
2286
+ 2 { set msg "Test generated return exception" }
2287
+ 3 { set msg "Test generated break exception" }
2288
+ 4 { set msg "Test generated continue exception" }
2289
+ default { set msg "Test generated exception" }
2290
+ }
2291
+ puts [outputChannel] "---- $msg; Return code was: $returnCode"
2292
+ puts [outputChannel] "---- Return code should have been\
2293
+ one of: $returnCodes"
2294
+ if {[IsVerbose error]} {
2295
+ if {[info exists errorInfo(body)] && (1 ni $returnCodes)} {
2296
+ puts [outputChannel] "---- errorInfo: $errorInfo(body)"
2297
+ puts [outputChannel] "---- errorCode: $errorCodeRes(body)"
2298
+ }
2299
+ }
2300
+ }
2301
+ if {$outputFailure} {
2302
+ if {$outputCompare} {
2303
+ puts [outputChannel] "---- Error testing output: $outputMatch"
2304
+ } else {
2305
+ puts [outputChannel] "---- Output was:\n$outData"
2306
+ puts [outputChannel] "---- Output should have been\
2307
+ ($match matching):\n$output"
2308
+ }
2309
+ }
2310
+ if {$errorFailure} {
2311
+ if {$errorCompare} {
2312
+ puts [outputChannel] "---- Error testing errorOutput: $errorMatch"
2313
+ } else {
2314
+ puts [outputChannel] "---- Error output was:\n$errData"
2315
+ puts [outputChannel] "---- Error output should have\
2316
+ been ($match matching):\n$errorOutput"
2317
+ }
2318
+ }
2319
+ if {$cleanupFailure} {
2320
+ puts [outputChannel] "---- Test cleanup failed:\n$cleanupMsg"
2321
+ if {[info exists errorInfo(cleanup)]} {
2322
+ puts [outputChannel] "---- errorInfo(cleanup): $errorInfo(cleanup)"
2323
+ puts [outputChannel] "---- errorCode(cleanup): $errorCodeRes(cleanup)"
2324
+ }
2325
+ }
2326
+ if {$coreFailure} {
2327
+ puts [outputChannel] "---- Core file produced while running\
2328
+ test! $coreMsg"
2329
+ }
2330
+ puts [outputChannel] "==== $name FAILED\n"
2331
+
2332
+ incr testLevel -1
2333
+ return
2334
+ }
2335
+
2336
+ # Skip --
2337
+ #
2338
+ # Skips a running test and add a reason to skipped "constraints". Can be used
2339
+ # to conditional intended abort of the test.
2340
+ #
2341
+ # Side Effects: Maintains tally of total tests seen and tests skipped.
2342
+ #
2343
+ proc tcltest::Skip {reason} {
2344
+ return -code error -errorcode BYPASS-SKIPPED-TEST $reason
2345
+ }
2346
+
2347
+ proc tcltest::_noticeSkipped {name reason} {
2348
+ variable testLevel
2349
+ variable numTests
2350
+
2351
+ if {[IsVerbose skip]} {
2352
+ puts [outputChannel] "++++ $name SKIPPED: $reason"
2353
+ }
2354
+
2355
+ if {$testLevel == 1} {
2356
+ incr numTests(Skipped)
2357
+ AddToSkippedBecause $reason
2358
+ }
2359
+ }
2360
+
2361
+
2362
+ # Skipped --
2363
+ #
2364
+ # Given a test name and it constraints, returns a boolean indicating
2365
+ # whether the current configuration says the test should be skipped.
2366
+ #
2367
+ # Side Effects: Maintains tally of total tests seen and tests skipped.
2368
+ #
2369
+ proc tcltest::Skipped {name constraints} {
2370
+ variable testLevel
2371
+ variable numTests
2372
+ variable testConstraints
2373
+
2374
+ if {$testLevel == 1} {
2375
+ incr numTests(Total)
2376
+ }
2377
+ # skip the test if it's name matches an element of skip
2378
+ foreach pattern [skip] {
2379
+ if {[string match $pattern $name]} {
2380
+ if {$testLevel == 1} {
2381
+ incr numTests(Skipped)
2382
+ DebugDo 1 {AddToSkippedBecause userSpecifiedSkip}
2383
+ }
2384
+ return 1
2385
+ }
2386
+ }
2387
+ # skip the test if it's name doesn't match any element of match
2388
+ set ok 0
2389
+ foreach pattern [match] {
2390
+ if {[string match $pattern $name]} {
2391
+ set ok 1
2392
+ break
2393
+ }
2394
+ }
2395
+ if {!$ok} {
2396
+ if {$testLevel == 1} {
2397
+ incr numTests(Skipped)
2398
+ DebugDo 1 {AddToSkippedBecause userSpecifiedNonMatch}
2399
+ }
2400
+ return 1
2401
+ }
2402
+ if {$constraints eq {}} {
2403
+ # If we're limited to the listed constraints and there aren't
2404
+ # any listed, then we shouldn't run the test.
2405
+ if {[limitConstraints]} {
2406
+ AddToSkippedBecause userSpecifiedLimitConstraint
2407
+ if {$testLevel == 1} {
2408
+ incr numTests(Skipped)
2409
+ }
2410
+ return 1
2411
+ }
2412
+ } else {
2413
+ # "constraints" argument exists;
2414
+ # make sure that the constraints are satisfied.
2415
+
2416
+ set doTest 0
2417
+ set constraints [string trim $constraints]
2418
+ if {[string match {*[$\[]*} $constraints] != 0} {
2419
+ # full expression, e.g. {$foo > [info tclversion]}
2420
+ catch {set doTest [uplevel #0 [list expr $constraints]]}
2421
+ } elseif {[regexp {[^.:_a-zA-Z0-9 \n\r\t]+} $constraints] != 0} {
2422
+ # something like {a || b} should be turned into
2423
+ # $testConstraints(a) || $testConstraints(b).
2424
+ regsub -all {[.\w]+} $constraints {$testConstraints(&)} c
2425
+ catch {set doTest [eval [list expr $c]]}
2426
+ } elseif {![catch {llength $constraints}]} {
2427
+ # just simple constraints such as {unixOnly fonts}.
2428
+ set doTest 1
2429
+ foreach constraint $constraints {
2430
+ if {(![info exists testConstraints($constraint)]) \
2431
+ || (!$testConstraints($constraint))} {
2432
+ set doTest 0
2433
+
2434
+ # store the constraint that kept the test from
2435
+ # running
2436
+ set constraints $constraint
2437
+ break
2438
+ }
2439
+ }
2440
+ }
2441
+
2442
+ if {!$doTest} {
2443
+ _noticeSkipped $name $constraints
2444
+ return 1
2445
+ }
2446
+ }
2447
+ return 0
2448
+ }
2449
+
2450
+ # RunTest --
2451
+ #
2452
+ # This is where the body of a test is evaluated. The combination of
2453
+ # [RunTest] and [Eval] allows the output and error output of the test
2454
+ # body to be captured for comparison against the expected values.
2455
+
2456
+ proc tcltest::RunTest {name script} {
2457
+ DebugPuts 3 "Running $name {$script}"
2458
+
2459
+ # If there is no "memory" command (because memory debugging isn't
2460
+ # enabled), then don't attempt to use the command.
2461
+
2462
+ if {[llength [info commands memory]] == 1} {
2463
+ memory tag $name
2464
+ }
2465
+
2466
+ # run the test script (or a hook if it presents):
2467
+ if {[set cmd [namespace which -command [namespace current]::EvalTest]] ne ""} {
2468
+ set script [list $cmd $script]
2469
+ }
2470
+ set code [catch {uplevel 1 $script} actualAnswer]
2471
+
2472
+ return [list $actualAnswer $code]
2473
+ }
2474
+
2475
+ #####################################################################
2476
+
2477
+ # tcltest::cleanupTestsHook --
2478
+ #
2479
+ # This hook allows a harness that builds upon tcltest to specify
2480
+ # additional things that should be done at cleanup.
2481
+ #
2482
+
2483
+ if {[llength [info commands tcltest::cleanupTestsHook]] == 0} {
2484
+ proc tcltest::cleanupTestsHook {} {}
2485
+ }
2486
+
2487
+ # tcltest::cleanupTests --
2488
+ #
2489
+ # Remove files and dirs created using the makeFile and makeDirectory
2490
+ # commands since the last time this proc was invoked.
2491
+ #
2492
+ # Print the names of the files created without the makeFile command
2493
+ # since the tests were invoked.
2494
+ #
2495
+ # Print the number tests (total, passed, failed, and skipped) since the
2496
+ # tests were invoked.
2497
+ #
2498
+ # Restore original environment (as reported by special variable env).
2499
+ #
2500
+ # Arguments:
2501
+ # calledFromAllFile - if 0, behave as if we are running a single
2502
+ # test file within an entire suite of tests. if we aren't running
2503
+ # a single test file, then don't report status. check for new
2504
+ # files created during the test run and report on them. if 1,
2505
+ # report collated status from all the test file runs.
2506
+ #
2507
+ # Results:
2508
+ # None.
2509
+ #
2510
+ # Side Effects:
2511
+ # None
2512
+ #
2513
+
2514
+ proc tcltest::cleanupTests {{calledFromAllFile 0}} {
2515
+ variable filesMade
2516
+ variable filesExisted
2517
+ variable createdNewFiles
2518
+ variable testSingleFile
2519
+ variable numTests
2520
+ variable numTestFiles
2521
+ variable failFiles
2522
+ variable skippedBecause
2523
+ variable currentFailure
2524
+ variable originalEnv
2525
+ variable originalTclPlatform
2526
+ variable coreModTime
2527
+
2528
+ FillFilesExisted
2529
+ set testFileName [file tail [info script]]
2530
+
2531
+ # Hook to handle reporting to a parent interpreter
2532
+ if {[llength [info commands [namespace current]::ReportToParent]]} {
2533
+ ReportToParent $numTests(Total) $numTests(Passed) $numTests(Skipped) \
2534
+ $numTests(Failed) [array get skippedBecause] \
2535
+ [array get createdNewFiles]
2536
+ set testSingleFile false
2537
+ }
2538
+
2539
+ # Call the cleanup hook
2540
+ cleanupTestsHook
2541
+
2542
+ # Remove files and directories created by the makeFile and
2543
+ # makeDirectory procedures. Record the names of files in
2544
+ # workingDirectory that were not preexisting, and associate them
2545
+ # with the test file that created them.
2546
+
2547
+ if {!$calledFromAllFile} {
2548
+ foreach file $filesMade {
2549
+ if {[file exists $file]} {
2550
+ DebugDo 1 {Warn "cleanupTests deleting $file..."}
2551
+ catch {file delete -force -- $file}
2552
+ }
2553
+ }
2554
+ set currentFiles {}
2555
+ foreach file [glob -nocomplain \
2556
+ -directory [temporaryDirectory] *] {
2557
+ lappend currentFiles [file tail $file]
2558
+ }
2559
+ set newFiles {}
2560
+ foreach file $currentFiles {
2561
+ if {$file ni $filesExisted} {
2562
+ lappend newFiles $file
2563
+ }
2564
+ }
2565
+ set filesExisted $currentFiles
2566
+ if {[llength $newFiles] > 0} {
2567
+ set createdNewFiles($testFileName) $newFiles
2568
+ }
2569
+ }
2570
+
2571
+ if {$calledFromAllFile || $testSingleFile} {
2572
+
2573
+ # print stats
2574
+
2575
+ puts -nonewline [outputChannel] "$testFileName:"
2576
+ foreach index [list "Total" "Passed" "Skipped" "Failed"] {
2577
+ puts -nonewline [outputChannel] \
2578
+ "\t$index\t$numTests($index)"
2579
+ }
2580
+ puts [outputChannel] ""
2581
+
2582
+ # print number test files sourced
2583
+ # print names of files that ran tests which failed
2584
+
2585
+ if {$calledFromAllFile} {
2586
+ puts [outputChannel] \
2587
+ "Sourced $numTestFiles Test Files."
2588
+ set numTestFiles 0
2589
+ if {[llength $failFiles] > 0} {
2590
+ puts [outputChannel] \
2591
+ "Files with failing tests: $failFiles"
2592
+ set failFiles {}
2593
+ }
2594
+ }
2595
+
2596
+ # if any tests were skipped, print the constraints that kept
2597
+ # them from running.
2598
+
2599
+ set constraintList [array names skippedBecause]
2600
+ if {[llength $constraintList] > 0} {
2601
+ puts [outputChannel] \
2602
+ "Number of tests skipped for each constraint:"
2603
+ foreach constraint [lsort $constraintList] {
2604
+ puts [outputChannel] \
2605
+ "\t$skippedBecause($constraint)\t$constraint"
2606
+ unset skippedBecause($constraint)
2607
+ }
2608
+ }
2609
+
2610
+ # report the names of test files in createdNewFiles, and reset
2611
+ # the array to be empty.
2612
+
2613
+ set testFilesThatTurded [lsort [array names createdNewFiles]]
2614
+ if {[llength $testFilesThatTurded] > 0} {
2615
+ puts [outputChannel] "Warning: files left behind:"
2616
+ foreach testFile $testFilesThatTurded {
2617
+ puts [outputChannel] \
2618
+ "\t$testFile:\t$createdNewFiles($testFile)"
2619
+ unset createdNewFiles($testFile)
2620
+ }
2621
+ }
2622
+
2623
+ # reset filesMade, filesExisted, and numTests
2624
+
2625
+ set filesMade {}
2626
+ foreach index [list "Total" "Passed" "Skipped" "Failed"] {
2627
+ set numTests($index) 0
2628
+ }
2629
+
2630
+ # exit only if running Tk in non-interactive mode
2631
+ # This should be changed to determine if an event
2632
+ # loop is running, which is the real issue.
2633
+ # Actually, this doesn't belong here at all. A package
2634
+ # really has no business [exit]-ing an application.
2635
+ if {[info exists ::tk_version] && ![testConstraint interactive]} {
2636
+ exit
2637
+ }
2638
+ } else {
2639
+
2640
+ # if we're deferring stat-reporting until all files are sourced,
2641
+ # then add current file to failFile list if any tests in this
2642
+ # file failed
2643
+
2644
+ if {$currentFailure && ($testFileName ni $failFiles)} {
2645
+ lappend failFiles $testFileName
2646
+ }
2647
+ set currentFailure false
2648
+
2649
+ # restore the environment to the state it was in before this package
2650
+ # was loaded
2651
+
2652
+ set newEnv {}
2653
+ set changedEnv {}
2654
+ set removedEnv {}
2655
+ foreach index [array names ::env] {
2656
+ if {![info exists originalEnv($index)]} {
2657
+ lappend newEnv $index
2658
+ unset ::env($index)
2659
+ }
2660
+ }
2661
+ foreach index [array names originalEnv] {
2662
+ if {![info exists ::env($index)]} {
2663
+ lappend removedEnv $index
2664
+ set ::env($index) $originalEnv($index)
2665
+ } elseif {$::env($index) ne $originalEnv($index)} {
2666
+ lappend changedEnv $index
2667
+ set ::env($index) $originalEnv($index)
2668
+ }
2669
+ }
2670
+ if {[llength $newEnv] > 0} {
2671
+ puts [outputChannel] \
2672
+ "env array elements created:\t$newEnv"
2673
+ }
2674
+ if {[llength $changedEnv] > 0} {
2675
+ puts [outputChannel] \
2676
+ "env array elements changed:\t$changedEnv"
2677
+ }
2678
+ if {[llength $removedEnv] > 0} {
2679
+ puts [outputChannel] \
2680
+ "env array elements removed:\t$removedEnv"
2681
+ }
2682
+
2683
+ set changedTclPlatform {}
2684
+ foreach index [array names originalTclPlatform] {
2685
+ if {$::tcl_platform($index) \
2686
+ != $originalTclPlatform($index)} {
2687
+ lappend changedTclPlatform $index
2688
+ set ::tcl_platform($index) $originalTclPlatform($index)
2689
+ }
2690
+ }
2691
+ if {[llength $changedTclPlatform] > 0} {
2692
+ puts [outputChannel] "tcl_platform array elements\
2693
+ changed:\t$changedTclPlatform"
2694
+ }
2695
+
2696
+ if {[file exists [file join [workingDirectory] core]]} {
2697
+ if {[preserveCore] > 1} {
2698
+ puts "rename core file (> 1)"
2699
+ puts [outputChannel] "produced core file! \
2700
+ Moving file to: \
2701
+ [file join [temporaryDirectory] core-$testFileName]"
2702
+ catch {file rename -force -- \
2703
+ [file join [workingDirectory] core] \
2704
+ [file join [temporaryDirectory] core-$testFileName]
2705
+ } msg
2706
+ if {$msg ne {}} {
2707
+ PrintError "Problem renaming file: $msg"
2708
+ }
2709
+ } else {
2710
+ # Print a message if there is a core file and (1) there
2711
+ # previously wasn't one or (2) the new one is different
2712
+ # from the old one.
2713
+
2714
+ if {[info exists coreModTime]} {
2715
+ if {$coreModTime != [file mtime \
2716
+ [file join [workingDirectory] core]]} {
2717
+ puts [outputChannel] "A core file was created!"
2718
+ }
2719
+ } else {
2720
+ puts [outputChannel] "A core file was created!"
2721
+ }
2722
+ }
2723
+ }
2724
+ }
2725
+ flush [outputChannel]
2726
+ flush [errorChannel]
2727
+ return
2728
+ }
2729
+
2730
+ #####################################################################
2731
+
2732
+ # Procs that determine which tests/test files to run
2733
+
2734
+ # tcltest::GetMatchingFiles
2735
+ #
2736
+ # Looks at the patterns given to match and skip files and uses
2737
+ # them to put together a list of the tests that will be run.
2738
+ #
2739
+ # Arguments:
2740
+ # directory to search
2741
+ #
2742
+ # Results:
2743
+ # The constructed list is returned to the user. This will
2744
+ # primarily be used in 'all.tcl' files. It is used in
2745
+ # runAllTests.
2746
+ #
2747
+ # Side Effects:
2748
+ # None
2749
+
2750
+ # a lower case version is needed for compatibility with tcltest 1.0
2751
+ proc tcltest::getMatchingFiles args {GetMatchingFiles {*}$args}
2752
+
2753
+ proc tcltest::GetMatchingFiles { args } {
2754
+ if {[llength $args]} {
2755
+ set dirList $args
2756
+ } else {
2757
+ # Finding tests only in [testsDirectory] is normal operation.
2758
+ # This procedure is written to accept multiple directory arguments
2759
+ # only to satisfy version 1 compatibility.
2760
+ set dirList [list [testsDirectory]]
2761
+ }
2762
+
2763
+ set matchingFiles [list]
2764
+ foreach directory $dirList {
2765
+
2766
+ # List files in $directory that match patterns to run.
2767
+ set matchFileList [list]
2768
+ foreach match [matchFiles] {
2769
+ set matchFileList [concat $matchFileList \
2770
+ [glob -directory $directory -types {b c f p s} \
2771
+ -nocomplain -- $match]]
2772
+ }
2773
+
2774
+ # List files in $directory that match patterns to skip.
2775
+ set skipFileList [list]
2776
+ foreach skip [skipFiles] {
2777
+ set skipFileList [concat $skipFileList \
2778
+ [glob -directory $directory -types {b c f p s} \
2779
+ -nocomplain -- $skip]]
2780
+ }
2781
+
2782
+ # Add to result list all files in match list and not in skip list
2783
+ foreach file $matchFileList {
2784
+ if {$file ni $skipFileList} {
2785
+ lappend matchingFiles $file
2786
+ }
2787
+ }
2788
+ }
2789
+
2790
+ if {[llength $matchingFiles] == 0} {
2791
+ PrintError "No test files remain after applying your match and\
2792
+ skip patterns!"
2793
+ }
2794
+ return $matchingFiles
2795
+ }
2796
+
2797
+ # tcltest::GetMatchingDirectories --
2798
+ #
2799
+ # Looks at the patterns given to match and skip directories and
2800
+ # uses them to put together a list of the test directories that we
2801
+ # should attempt to run. (Only subdirectories containing an
2802
+ # "all.tcl" file are put into the list.)
2803
+ #
2804
+ # Arguments:
2805
+ # root directory from which to search
2806
+ #
2807
+ # Results:
2808
+ # The constructed list is returned to the user. This is used in
2809
+ # the primary all.tcl file.
2810
+ #
2811
+ # Side Effects:
2812
+ # None.
2813
+
2814
+ proc tcltest::GetMatchingDirectories {rootdir} {
2815
+
2816
+ # Determine the skip list first, to avoid [glob]-ing over subdirectories
2817
+ # we're going to throw away anyway. Be sure we skip the $rootdir if it
2818
+ # comes up to avoid infinite loops.
2819
+ set skipDirs [list $rootdir]
2820
+ foreach pattern [skipDirectories] {
2821
+ set skipDirs [concat $skipDirs [glob -directory $rootdir -types d \
2822
+ -nocomplain -- $pattern]]
2823
+ }
2824
+
2825
+ # Now step through the matching directories, prune out the skipped ones
2826
+ # as you go.
2827
+ set matchDirs [list]
2828
+ foreach pattern [matchDirectories] {
2829
+ foreach path [glob -directory $rootdir -types d -nocomplain -- \
2830
+ $pattern] {
2831
+ if {$path ni $skipDirs && [file readable $path]} {
2832
+ set matchDirs [concat $matchDirs [GetMatchingDirectories $path]]
2833
+ if {[file exists [file join $path all.tcl]]} {
2834
+ lappend matchDirs $path
2835
+ }
2836
+ }
2837
+ }
2838
+ }
2839
+
2840
+ if {[llength $matchDirs] == 0} {
2841
+ DebugPuts 1 "No test directories remain after applying match\
2842
+ and skip patterns!"
2843
+ }
2844
+ return [lsort $matchDirs]
2845
+ }
2846
+
2847
+ # tcltest::runAllTests --
2848
+ #
2849
+ # prints output and sources test files according to the match and
2850
+ # skip patterns provided. after sourcing test files, it goes on
2851
+ # to source all.tcl files in matching test subdirectories.
2852
+ #
2853
+ # Arguments:
2854
+ # shell being tested
2855
+ #
2856
+ # Results:
2857
+ # Whether there were any failures.
2858
+ #
2859
+ # Side effects:
2860
+ # None.
2861
+
2862
+ proc tcltest::runAllTests { {shell ""} } {
2863
+ variable testSingleFile
2864
+ variable numTestFiles
2865
+ variable numTests
2866
+ variable failFiles
2867
+ variable DefaultValue
2868
+ variable fullutf
2869
+
2870
+ FillFilesExisted
2871
+ if {[llength [info level 0]] == 1} {
2872
+ set shell [interpreter]
2873
+ }
2874
+
2875
+ set testSingleFile false
2876
+
2877
+ puts [outputChannel] "Tests running in interp: $shell"
2878
+ puts [outputChannel] "Tests located in: [testsDirectory]"
2879
+ puts [outputChannel] "Tests running in: [workingDirectory]"
2880
+ puts [outputChannel] "Temporary files stored in\
2881
+ [temporaryDirectory]"
2882
+
2883
+ # [file system] first available in Tcl 8.4
2884
+ if {![catch {file system [testsDirectory]} result]
2885
+ && ([lindex $result 0] ne "native")} {
2886
+ # If we aren't running in the native filesystem, then we must
2887
+ # run the tests in a single process (via 'source'), because
2888
+ # trying to run then via a pipe will fail since the files don't
2889
+ # really exist.
2890
+ singleProcess 1
2891
+ }
2892
+
2893
+ if {[singleProcess]} {
2894
+ puts [outputChannel] \
2895
+ "Test files sourced into current interpreter"
2896
+ } else {
2897
+ puts [outputChannel] \
2898
+ "Test files run in separate interpreters"
2899
+ }
2900
+ if {[llength [skip]] > 0} {
2901
+ puts [outputChannel] "Skipping tests that match: [skip]"
2902
+ }
2903
+ puts [outputChannel] "Running tests that match: [match]"
2904
+
2905
+ if {[llength [skipFiles]] > 0} {
2906
+ puts [outputChannel] \
2907
+ "Skipping test files that match: [skipFiles]"
2908
+ }
2909
+ if {[llength [matchFiles]] > 0} {
2910
+ puts [outputChannel] \
2911
+ "Only running test files that match: [matchFiles]"
2912
+ }
2913
+
2914
+ set timeCmd {clock format now -format "%Y-%m-%d %H:%M:%S %Z" -locale en}
2915
+ puts [outputChannel] "Tests began at [eval $timeCmd]"
2916
+
2917
+ # Run each of the specified tests
2918
+ foreach file [lsort [GetMatchingFiles]] {
2919
+ set tail [file tail $file]
2920
+ puts [outputChannel] $tail
2921
+ flush [outputChannel]
2922
+
2923
+ if {[singleProcess]} {
2924
+ if {[catch {
2925
+ incr numTestFiles
2926
+ uplevel 1 [list ::source -encoding utf-8 $file]
2927
+ } msg]} {
2928
+ puts [outputChannel] "Test file error: $msg"
2929
+ # append the name of the test to a list to be reported
2930
+ # later
2931
+ lappend testFileFailures $file
2932
+ }
2933
+ if {$numTests(Failed) > 0} {
2934
+ set failFilesSet 1
2935
+ }
2936
+ } else {
2937
+ # Pass along our configuration to the child processes.
2938
+ # EXCEPT for the -outfile, because the parent process
2939
+ # needs to read and process output of children.
2940
+ set childargv [list]
2941
+ foreach opt [Configure] {
2942
+ if {$opt eq "-outfile"} {continue}
2943
+ set value [Configure $opt]
2944
+ # Don't bother passing default configuration options
2945
+ if {$value eq $DefaultValue($opt)} {
2946
+ continue
2947
+ }
2948
+ lappend childargv $opt $value
2949
+ }
2950
+ set cmd [linsert $childargv 0 | $shell $file]
2951
+ if {[catch {
2952
+ incr numTestFiles
2953
+ set pipeFd [open $cmd "r"]
2954
+ if {$fullutf} {
2955
+ fconfigure $pipeFd -profile tcl8 -encoding utf-8
2956
+ }
2957
+ while {[gets $pipeFd line] >= 0} {
2958
+ if {[regexp [join {
2959
+ {^([^:]+):\t}
2960
+ {Total\t([0-9]+)\t}
2961
+ {Passed\t([0-9]+)\t}
2962
+ {Skipped\t([0-9]+)\t}
2963
+ {Failed\t([0-9]+)}
2964
+ } ""] $line null testFile \
2965
+ Total Passed Skipped Failed]} {
2966
+ foreach index {Total Passed Skipped Failed} {
2967
+ incr numTests($index) [set $index]
2968
+ }
2969
+ if {$Failed > 0} {
2970
+ lappend failFiles $testFile
2971
+ set failFilesSet 1
2972
+ }
2973
+ } elseif {[regexp [join {
2974
+ {^Number of tests skipped }
2975
+ {for each constraint:}
2976
+ {|^\t(\d+)\t(.+)$}
2977
+ } ""] $line match skipped constraint]} {
2978
+ if {[string match \t* $match]} {
2979
+ AddToSkippedBecause $constraint $skipped
2980
+ }
2981
+ } else {
2982
+ puts [outputChannel] $line
2983
+ }
2984
+ }
2985
+ close $pipeFd
2986
+ } msg]} {
2987
+ puts [outputChannel] "Test file error: $msg"
2988
+ # append the name of the test to a list to be reported
2989
+ # later
2990
+ lappend testFileFailures $file
2991
+ }
2992
+ }
2993
+ }
2994
+
2995
+ # cleanup
2996
+ puts [outputChannel] "\nTests ended at [eval $timeCmd]"
2997
+ cleanupTests 1
2998
+ if {[info exists testFileFailures]} {
2999
+ puts [outputChannel] "\nTest files exiting with errors: \n"
3000
+ foreach file $testFileFailures {
3001
+ puts [outputChannel] " [file tail $file]\n"
3002
+ }
3003
+ }
3004
+
3005
+ # Checking for subdirectories in which to run tests
3006
+ foreach directory [GetMatchingDirectories [testsDirectory]] {
3007
+ set dir [file tail $directory]
3008
+ puts [outputChannel] [string repeat ~ 44]
3009
+ puts [outputChannel] "$dir test began at [eval $timeCmd]\n"
3010
+
3011
+ uplevel 1 [list ::source -encoding utf-8 [file join $directory all.tcl]]
3012
+
3013
+ set endTime [eval $timeCmd]
3014
+ puts [outputChannel] "\n$dir test ended at $endTime"
3015
+ puts [outputChannel] ""
3016
+ puts [outputChannel] [string repeat ~ 44]
3017
+ }
3018
+ return [expr {[info exists testFileFailures] || [info exists failFilesSet]}]
3019
+ }
3020
+
3021
+ #####################################################################
3022
+
3023
+ # Test utility procs - not used in tcltest, but may be useful for
3024
+ # testing.
3025
+
3026
+ # tcltest::loadTestedCommands --
3027
+ #
3028
+ # Uses the specified script to load the commands to test. Allowed to
3029
+ # be empty, as the tested commands could have been compiled into the
3030
+ # interpreter.
3031
+ #
3032
+ # Arguments
3033
+ # none
3034
+ #
3035
+ # Results
3036
+ # none
3037
+ #
3038
+ # Side Effects:
3039
+ # none.
3040
+
3041
+ proc tcltest::loadTestedCommands {} {
3042
+ return [uplevel 1 [loadScript]]
3043
+ }
3044
+
3045
+ # tcltest::saveState --
3046
+ #
3047
+ # Save information regarding what procs and variables exist.
3048
+ #
3049
+ # Arguments:
3050
+ # none
3051
+ #
3052
+ # Results:
3053
+ # Modifies the variable saveState
3054
+ #
3055
+ # Side effects:
3056
+ # None.
3057
+
3058
+ proc tcltest::saveState {} {
3059
+ variable saveState
3060
+ uplevel 1 [list ::set [namespace which -variable saveState]] \
3061
+ {[::list [::info procs] [::info vars]]}
3062
+ DebugPuts 2 "[lindex [info level 0] 0]: $saveState"
3063
+ return
3064
+ }
3065
+
3066
+ # tcltest::restoreState --
3067
+ #
3068
+ # Remove procs and variables that didn't exist before the call to
3069
+ # [saveState].
3070
+ #
3071
+ # Arguments:
3072
+ # none
3073
+ #
3074
+ # Results:
3075
+ # Removes procs and variables from your environment if they don't
3076
+ # exist in the saveState variable.
3077
+ #
3078
+ # Side effects:
3079
+ # None.
3080
+
3081
+ proc tcltest::restoreState {} {
3082
+ variable saveState
3083
+ foreach p [uplevel 1 {::info procs}] {
3084
+ if {($p ni [lindex $saveState 0]) && ("[namespace current]::$p" ne
3085
+ [uplevel 1 [list ::namespace origin $p]])} {
3086
+
3087
+ DebugPuts 2 "[lindex [info level 0] 0]: Removing proc $p"
3088
+ uplevel 1 [list ::catch [list ::rename $p {}]]
3089
+ }
3090
+ }
3091
+ foreach p [uplevel 1 {::info vars}] {
3092
+ if {$p ni [lindex $saveState 1]} {
3093
+ DebugPuts 2 "[lindex [info level 0] 0]:\
3094
+ Removing variable $p"
3095
+ uplevel 1 [list ::catch [list ::unset $p]]
3096
+ }
3097
+ }
3098
+ return
3099
+ }
3100
+
3101
+ # tcltest::normalizeMsg --
3102
+ #
3103
+ # Removes "extra" newlines from a string.
3104
+ #
3105
+ # Arguments:
3106
+ # msg String to be modified
3107
+ #
3108
+ # Results:
3109
+ # string with extra newlines removed
3110
+ #
3111
+ # Side effects:
3112
+ # None.
3113
+
3114
+ proc tcltest::normalizeMsg {msg} {
3115
+ regsub "\n$" [string tolower $msg] "" msg
3116
+ set msg [string map [list "\n\n" "\n"] $msg]
3117
+ return [string map [list "\n\}" "\}"] $msg]
3118
+ }
3119
+
3120
+ # tcltest::makeFile --
3121
+ #
3122
+ # Create a new file with the name <name>, and write <contents> to it.
3123
+ #
3124
+ # If this file hasn't been created via makeFile since the last time
3125
+ # cleanupTests was called, add it to the $filesMade list, so it will be
3126
+ # removed by the next call to cleanupTests.
3127
+ #
3128
+ # Arguments:
3129
+ # contents content of the new file
3130
+ # name name of the new file
3131
+ # directory directory name for new file
3132
+ #
3133
+ # Results:
3134
+ # absolute path to the file created
3135
+ #
3136
+ # Side effects:
3137
+ # None.
3138
+
3139
+ proc tcltest::makeFile {contents name {directory ""}} {
3140
+ variable filesMade
3141
+ variable fullutf
3142
+
3143
+ FillFilesExisted
3144
+
3145
+ if {[llength [info level 0]] == 3} {
3146
+ set directory [temporaryDirectory]
3147
+ }
3148
+
3149
+ set fullName [file join $directory $name]
3150
+
3151
+ DebugPuts 3 "[lindex [info level 0] 0]:\
3152
+ putting ``$contents'' into $fullName"
3153
+
3154
+ set fd [open $fullName w]
3155
+ fconfigure $fd -translation lf
3156
+ if {$fullutf} {
3157
+ fconfigure $fd -profile tcl8 -encoding utf-8
3158
+ }
3159
+ if {[string index $contents end] eq "\n"} {
3160
+ puts -nonewline $fd $contents
3161
+ } else {
3162
+ puts $fd $contents
3163
+ }
3164
+ close $fd
3165
+
3166
+ if {$fullName ni $filesMade} {
3167
+ lappend filesMade $fullName
3168
+ }
3169
+ return $fullName
3170
+ }
3171
+
3172
+ # tcltest::removeFile --
3173
+ #
3174
+ # Removes the named file from the filesystem
3175
+ #
3176
+ # Arguments:
3177
+ # name file to be removed
3178
+ # directory directory from which to remove file
3179
+ #
3180
+ # Results:
3181
+ # return value from [file delete]
3182
+ #
3183
+ # Side effects:
3184
+ # None.
3185
+
3186
+ proc tcltest::removeFile {name {directory ""}} {
3187
+ variable filesMade
3188
+ FillFilesExisted
3189
+ if {[llength [info level 0]] == 2} {
3190
+ set directory [temporaryDirectory]
3191
+ }
3192
+ set fullName [file join $directory $name]
3193
+ DebugPuts 3 "[lindex [info level 0] 0]: removing $fullName"
3194
+ set idx [lsearch -exact $filesMade $fullName]
3195
+ if {$idx < 0} {
3196
+ DebugDo 1 {
3197
+ Warn "removeFile removing \"$fullName\":\n not created by makeFile"
3198
+ }
3199
+ } else {
3200
+ set filesMade [lreplace $filesMade $idx $idx]
3201
+ }
3202
+ if {![file isfile $fullName]} {
3203
+ DebugDo 1 {
3204
+ Warn "removeFile removing \"$fullName\":\n not a file"
3205
+ }
3206
+ }
3207
+ if {[catch {file delete -- $fullName} msg ]} {
3208
+ DebugDo 1 {
3209
+ Warn "removeFile removing \"$fullName\":\n failed: $msg"
3210
+ }
3211
+ }
3212
+ return
3213
+ }
3214
+
3215
+ # tcltest::makeDirectory --
3216
+ #
3217
+ # Create a new dir with the name <name>.
3218
+ #
3219
+ # If this dir hasn't been created via makeDirectory since the last time
3220
+ # cleanupTests was called, add it to the $directoriesMade list, so it
3221
+ # will be removed by the next call to cleanupTests.
3222
+ #
3223
+ # Arguments:
3224
+ # name name of the new directory
3225
+ # directory directory in which to create new dir
3226
+ #
3227
+ # Results:
3228
+ # absolute path to the directory created
3229
+ #
3230
+ # Side effects:
3231
+ # None.
3232
+
3233
+ proc tcltest::makeDirectory {name {directory ""}} {
3234
+ variable filesMade
3235
+ FillFilesExisted
3236
+ if {[llength [info level 0]] == 2} {
3237
+ set directory [temporaryDirectory]
3238
+ }
3239
+ set fullName [file join $directory $name]
3240
+ DebugPuts 3 "[lindex [info level 0] 0]: creating $fullName"
3241
+ file mkdir $fullName
3242
+ if {$fullName ni $filesMade} {
3243
+ lappend filesMade $fullName
3244
+ }
3245
+ return $fullName
3246
+ }
3247
+
3248
+ # tcltest::removeDirectory --
3249
+ #
3250
+ # Removes a named directory from the file system.
3251
+ #
3252
+ # Arguments:
3253
+ # name Name of the directory to remove
3254
+ # directory Directory from which to remove
3255
+ #
3256
+ # Results:
3257
+ # return value from [file delete]
3258
+ #
3259
+ # Side effects:
3260
+ # None
3261
+
3262
+ proc tcltest::removeDirectory {name {directory ""}} {
3263
+ variable filesMade
3264
+ FillFilesExisted
3265
+ if {[llength [info level 0]] == 2} {
3266
+ set directory [temporaryDirectory]
3267
+ }
3268
+ set fullName [file join $directory $name]
3269
+ DebugPuts 3 "[lindex [info level 0] 0]: deleting $fullName"
3270
+ set idx [lsearch -exact $filesMade $fullName]
3271
+ set filesMade [lreplace $filesMade $idx $idx]
3272
+ if {$idx < 0} {
3273
+ DebugDo 1 {
3274
+ Warn "removeDirectory removing \"$fullName\":\n not created\
3275
+ by makeDirectory"
3276
+ }
3277
+ }
3278
+ if {![file isdirectory $fullName]} {
3279
+ DebugDo 1 {
3280
+ Warn "removeDirectory removing \"$fullName\":\n not a directory"
3281
+ }
3282
+ }
3283
+ return [file delete -force -- $fullName]
3284
+ }
3285
+
3286
+ # tcltest::viewFile --
3287
+ #
3288
+ # reads the content of a file and returns it
3289
+ #
3290
+ # Arguments:
3291
+ # name of the file to read
3292
+ # directory in which file is located
3293
+ #
3294
+ # Results:
3295
+ # content of the named file
3296
+ #
3297
+ # Side effects:
3298
+ # None.
3299
+
3300
+ proc tcltest::viewFile {name {directory ""}} {
3301
+ variable fullutf
3302
+
3303
+ FillFilesExisted
3304
+ if {[llength [info level 0]] == 2} {
3305
+ set directory [temporaryDirectory]
3306
+ }
3307
+ set fullName [file join $directory $name]
3308
+ set f [open $fullName]
3309
+ if {$fullutf} {
3310
+ fconfigure $f -profile tcl8 -encoding utf-8
3311
+ }
3312
+ set data [read -nonewline $f]
3313
+ close $f
3314
+ return $data
3315
+ }
3316
+
3317
+ # tcltest::bytestring --
3318
+ #
3319
+ # Construct a string that consists of the requested sequence of bytes,
3320
+ # as opposed to a string of properly formed UTF-8 characters.
3321
+ # This allows the tester to
3322
+ # 1. Create denormalized or improperly formed strings to pass to C
3323
+ # procedures that are supposed to accept strings with embedded NULL
3324
+ # bytes.
3325
+ # 2. Confirm that a string result has a certain pattern of bytes, for
3326
+ # instance to confirm that "\xE0\0" in a Tcl script is stored
3327
+ # internally in UTF-8 as the sequence of bytes "\xC3\xA0\xC0\x80".
3328
+ #
3329
+ # Generally, it's a bad idea to examine the bytes in a Tcl string or to
3330
+ # construct improperly formed strings in this manner, because it involves
3331
+ # exposing that Tcl uses UTF-8 internally.
3332
+ #
3333
+ # This function doesn't work any more in Tcl 9.0, since the 'identity'
3334
+ # is gone (TIP #345)
3335
+ #
3336
+ # Arguments:
3337
+ # string being converted
3338
+ #
3339
+ # Results:
3340
+ # result fom encoding
3341
+ #
3342
+ # Side effects:
3343
+ # None
3344
+
3345
+ if {![package vsatisfies [package provide Tcl] 9.0-]} {
3346
+ proc tcltest::bytestring {string} {
3347
+ return [encoding convertfrom identity $string]
3348
+ }
3349
+ }
3350
+
3351
+ # tcltest::OpenFiles --
3352
+ #
3353
+ # used in io tests, uses testchannel
3354
+ #
3355
+ # Arguments:
3356
+ # None.
3357
+ #
3358
+ # Results:
3359
+ # ???
3360
+ #
3361
+ # Side effects:
3362
+ # None.
3363
+
3364
+ proc tcltest::OpenFiles {} {
3365
+ if {[catch {testchannel open} result]} {
3366
+ return {}
3367
+ }
3368
+ return $result
3369
+ }
3370
+
3371
+ # tcltest::LeakFiles --
3372
+ #
3373
+ # used in io tests, uses testchannel
3374
+ #
3375
+ # Arguments:
3376
+ # None.
3377
+ #
3378
+ # Results:
3379
+ # ???
3380
+ #
3381
+ # Side effects:
3382
+ # None.
3383
+
3384
+ proc tcltest::LeakFiles {old} {
3385
+ if {[catch {testchannel open} new]} {
3386
+ return {}
3387
+ }
3388
+ set leak {}
3389
+ foreach p $new {
3390
+ if {$p ni $old} {
3391
+ lappend leak $p
3392
+ }
3393
+ }
3394
+ return $leak
3395
+ }
3396
+
3397
+ #
3398
+ # Internationalization / ISO support procs -- dl
3399
+ #
3400
+
3401
+ # tcltest::SetIso8859_1_Locale --
3402
+ #
3403
+ # used in cmdIL.test, uses testlocale
3404
+ #
3405
+ # Arguments:
3406
+ # None.
3407
+ #
3408
+ # Results:
3409
+ # None.
3410
+ #
3411
+ # Side effects:
3412
+ # None.
3413
+
3414
+ proc tcltest::SetIso8859_1_Locale {} {
3415
+ variable previousLocale
3416
+ variable isoLocale
3417
+ if {[info commands testlocale] != ""} {
3418
+ set previousLocale [testlocale ctype]
3419
+ testlocale ctype $isoLocale
3420
+ }
3421
+ return
3422
+ }
3423
+
3424
+ # tcltest::RestoreLocale --
3425
+ #
3426
+ # used in cmdIL.test, uses testlocale
3427
+ #
3428
+ # Arguments:
3429
+ # None.
3430
+ #
3431
+ # Results:
3432
+ # None.
3433
+ #
3434
+ # Side effects:
3435
+ # None.
3436
+
3437
+ proc tcltest::RestoreLocale {} {
3438
+ variable previousLocale
3439
+ if {[info commands testlocale] != ""} {
3440
+ testlocale ctype $previousLocale
3441
+ }
3442
+ return
3443
+ }
3444
+
3445
+ # tcltest::threadReap --
3446
+ #
3447
+ # Kill all threads except for the main thread.
3448
+ # Do nothing if testthread is not defined.
3449
+ #
3450
+ # Arguments:
3451
+ # none.
3452
+ #
3453
+ # Results:
3454
+ # Returns the number of existing threads.
3455
+ #
3456
+ # Side Effects:
3457
+ # none.
3458
+ #
3459
+
3460
+ proc tcltest::threadReap {} {
3461
+ if {[info commands testthread] ne {}} {
3462
+
3463
+ # testthread built into tcltest
3464
+
3465
+ testthread errorproc ThreadNullError
3466
+ while {[llength [testthread names]] > 1} {
3467
+ foreach tid [testthread names] {
3468
+ if {$tid != [mainThread]} {
3469
+ catch {
3470
+ testthread send -async $tid {testthread exit}
3471
+ }
3472
+ }
3473
+ }
3474
+ ## Enter a bit a sleep to give the threads enough breathing
3475
+ ## room to kill themselves off, otherwise the end up with a
3476
+ ## massive queue of repeated events
3477
+ after 1
3478
+ }
3479
+ testthread errorproc ThreadError
3480
+ return [llength [testthread names]]
3481
+ } elseif {[info commands thread::id] ne {}} {
3482
+
3483
+ # Thread extension
3484
+
3485
+ thread::errorproc ThreadNullError
3486
+ while {[llength [thread::names]] > 1} {
3487
+ foreach tid [thread::names] {
3488
+ if {$tid != [mainThread]} {
3489
+ catch {thread::send -async $tid {thread::exit}}
3490
+ }
3491
+ }
3492
+ ## Enter a bit a sleep to give the threads enough breathing
3493
+ ## room to kill themselves off, otherwise the end up with a
3494
+ ## massive queue of repeated events
3495
+ after 1
3496
+ }
3497
+ thread::errorproc ThreadError
3498
+ return [llength [thread::names]]
3499
+ } else {
3500
+ return 1
3501
+ }
3502
+ return 0
3503
+ }
3504
+
3505
+ # Initialize the constraints and set up command line arguments
3506
+ namespace eval tcltest {
3507
+ # Define initializers for all the built-in constraint definitions
3508
+ DefineConstraintInitializers
3509
+
3510
+ # Set up the constraints in the testConstraints array to be lazily
3511
+ # initialized by a registered initializer, or by "false" if no
3512
+ # initializer is registered.
3513
+ trace add variable testConstraints read [namespace code SafeFetch]
3514
+
3515
+ # Only initialize constraints at package load time if an
3516
+ # [initConstraintsHook] has been predefined. This is only
3517
+ # for compatibility support. The modern way to add a custom
3518
+ # test constraint is to just call the [testConstraint] command
3519
+ # straight away, without all this "hook" nonsense.
3520
+ if {[namespace current] eq
3521
+ [namespace qualifiers [namespace which initConstraintsHook]]} {
3522
+ InitConstraints
3523
+ } else {
3524
+ proc initConstraintsHook {} {}
3525
+ }
3526
+
3527
+ # Define the standard match commands
3528
+ customMatch exact [list string equal]
3529
+ customMatch glob [list string match]
3530
+ customMatch regexp [list regexp --]
3531
+
3532
+ # If the TCLTEST_OPTIONS environment variable exists, configure
3533
+ # tcltest according to the option values it specifies. This has
3534
+ # the effect of resetting tcltest's default configuration.
3535
+ proc ConfigureFromEnvironment {} {
3536
+ upvar #0 env(TCLTEST_OPTIONS) options
3537
+ if {[catch {llength $options} msg]} {
3538
+ Warn "invalid TCLTEST_OPTIONS \"$options\":\n invalid\
3539
+ Tcl list: $msg"
3540
+ return
3541
+ }
3542
+ if {[llength $options] % 2} {
3543
+ Warn "invalid TCLTEST_OPTIONS: \"$options\":\n should be\
3544
+ -option value ?-option value ...?"
3545
+ return
3546
+ }
3547
+ if {[catch {Configure {*}$options} msg]} {
3548
+ Warn "invalid TCLTEST_OPTIONS: \"$options\":\n $msg"
3549
+ return
3550
+ }
3551
+ }
3552
+ if {[info exists ::env(TCLTEST_OPTIONS)]} {
3553
+ ConfigureFromEnvironment
3554
+ }
3555
+
3556
+ proc LoadTimeCmdLineArgParsingRequired {} {
3557
+ set required false
3558
+ if {[info exists ::argv] && ("-help" in $::argv)} {
3559
+ # The command line asks for -help, so give it (and exit)
3560
+ # right now. ([configure] does not process -help)
3561
+ set required true
3562
+ }
3563
+ foreach hook { PrintUsageInfoHook processCmdLineArgsHook
3564
+ processCmdLineArgsAddFlagsHook } {
3565
+ if {[namespace current] eq
3566
+ [namespace qualifiers [namespace which $hook]]} {
3567
+ set required true
3568
+ } else {
3569
+ proc $hook args {}
3570
+ }
3571
+ }
3572
+ return $required
3573
+ }
3574
+
3575
+ # Only initialize configurable options from the command line arguments
3576
+ # at package load time if necessary for backward compatibility. This
3577
+ # lets the tcltest user call [configure] for themselves if they wish.
3578
+ # Traces are established for auto-configuration from the command line
3579
+ # if any configurable options are accessed before the user calls
3580
+ # [configure].
3581
+ if {[LoadTimeCmdLineArgParsingRequired]} {
3582
+ ProcessCmdLineArgs
3583
+ } else {
3584
+ EstablishAutoConfigureTraces
3585
+ }
3586
+
3587
+ package provide [namespace tail [namespace current]] $Version
3588
+ }