@djlint/linux-arm64-musl 0.0.0 → 1.54.2

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 (1753) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +3 -1
  3. package/package.json +1 -8
  4. package/python/bin/python3 +0 -0
  5. package/python/lib/python3.15/LICENSE.txt +277 -0
  6. package/python/lib/python3.15/__future__.py +147 -0
  7. package/python/lib/python3.15/__hello__.py +16 -0
  8. package/python/lib/python3.15/__phello__/__init__.py +7 -0
  9. package/python/lib/python3.15/__phello__/__pycache__/__init__.cpython-315.pyc +0 -0
  10. package/python/lib/python3.15/__phello__/__pycache__/spam.cpython-315.pyc +0 -0
  11. package/python/lib/python3.15/__phello__/spam.py +7 -0
  12. package/python/lib/python3.15/__pycache__/__future__.cpython-315.pyc +0 -0
  13. package/python/lib/python3.15/__pycache__/__hello__.cpython-315.pyc +0 -0
  14. package/python/lib/python3.15/__pycache__/_aix_support.cpython-315.pyc +0 -0
  15. package/python/lib/python3.15/__pycache__/_android_support.cpython-315.pyc +0 -0
  16. package/python/lib/python3.15/__pycache__/_apple_support.cpython-315.pyc +0 -0
  17. package/python/lib/python3.15/__pycache__/_ast_unparse.cpython-315.pyc +0 -0
  18. package/python/lib/python3.15/__pycache__/_collections_abc.cpython-315.pyc +0 -0
  19. package/python/lib/python3.15/__pycache__/_colorize.cpython-315.pyc +0 -0
  20. package/python/lib/python3.15/__pycache__/_compat_pickle.cpython-315.pyc +0 -0
  21. package/python/lib/python3.15/__pycache__/_ios_support.cpython-315.pyc +0 -0
  22. package/python/lib/python3.15/__pycache__/_markupbase.cpython-315.pyc +0 -0
  23. package/python/lib/python3.15/__pycache__/_missing_stdlib_info.cpython-315.pyc +0 -0
  24. package/python/lib/python3.15/__pycache__/_opcode_metadata.cpython-315.pyc +0 -0
  25. package/python/lib/python3.15/__pycache__/_osx_support.cpython-315.pyc +0 -0
  26. package/python/lib/python3.15/__pycache__/_py_abc.cpython-315.pyc +0 -0
  27. package/python/lib/python3.15/__pycache__/_py_warnings.cpython-315.pyc +0 -0
  28. package/python/lib/python3.15/__pycache__/_pydatetime.cpython-315.pyc +0 -0
  29. package/python/lib/python3.15/__pycache__/_pydecimal.cpython-315.pyc +0 -0
  30. package/python/lib/python3.15/__pycache__/_pyio.cpython-315.pyc +0 -0
  31. package/python/lib/python3.15/__pycache__/_pylong.cpython-315.pyc +0 -0
  32. package/python/lib/python3.15/__pycache__/_sitebuiltins.cpython-315.pyc +0 -0
  33. package/python/lib/python3.15/__pycache__/_strptime.cpython-315.pyc +0 -0
  34. package/python/lib/python3.15/__pycache__/_sysconfigdata__linux_aarch64-linux-musl.cpython-315.pyc +0 -0
  35. package/python/lib/python3.15/__pycache__/_threading_local.cpython-315.pyc +0 -0
  36. package/python/lib/python3.15/__pycache__/_weakrefset.cpython-315.pyc +0 -0
  37. package/python/lib/python3.15/__pycache__/abc.cpython-315.pyc +0 -0
  38. package/python/lib/python3.15/__pycache__/annotationlib.cpython-315.pyc +0 -0
  39. package/python/lib/python3.15/__pycache__/antigravity.cpython-315.pyc +0 -0
  40. package/python/lib/python3.15/__pycache__/argparse.cpython-315.pyc +0 -0
  41. package/python/lib/python3.15/__pycache__/ast.cpython-315.pyc +0 -0
  42. package/python/lib/python3.15/__pycache__/base64.cpython-315.pyc +0 -0
  43. package/python/lib/python3.15/__pycache__/bdb.cpython-315.pyc +0 -0
  44. package/python/lib/python3.15/__pycache__/bisect.cpython-315.pyc +0 -0
  45. package/python/lib/python3.15/__pycache__/bz2.cpython-315.pyc +0 -0
  46. package/python/lib/python3.15/__pycache__/cProfile.cpython-315.pyc +0 -0
  47. package/python/lib/python3.15/__pycache__/calendar.cpython-315.pyc +0 -0
  48. package/python/lib/python3.15/__pycache__/cmd.cpython-315.pyc +0 -0
  49. package/python/lib/python3.15/__pycache__/code.cpython-315.pyc +0 -0
  50. package/python/lib/python3.15/__pycache__/codecs.cpython-315.pyc +0 -0
  51. package/python/lib/python3.15/__pycache__/codeop.cpython-315.pyc +0 -0
  52. package/python/lib/python3.15/__pycache__/colorsys.cpython-315.pyc +0 -0
  53. package/python/lib/python3.15/__pycache__/compileall.cpython-315.pyc +0 -0
  54. package/python/lib/python3.15/__pycache__/configparser.cpython-315.pyc +0 -0
  55. package/python/lib/python3.15/__pycache__/contextlib.cpython-315.pyc +0 -0
  56. package/python/lib/python3.15/__pycache__/contextvars.cpython-315.pyc +0 -0
  57. package/python/lib/python3.15/__pycache__/copy.cpython-315.pyc +0 -0
  58. package/python/lib/python3.15/__pycache__/copyreg.cpython-315.pyc +0 -0
  59. package/python/lib/python3.15/__pycache__/csv.cpython-315.pyc +0 -0
  60. package/python/lib/python3.15/__pycache__/dataclasses.cpython-315.pyc +0 -0
  61. package/python/lib/python3.15/__pycache__/datetime.cpython-315.pyc +0 -0
  62. package/python/lib/python3.15/__pycache__/decimal.cpython-315.pyc +0 -0
  63. package/python/lib/python3.15/__pycache__/difflib.cpython-315.pyc +0 -0
  64. package/python/lib/python3.15/__pycache__/dis.cpython-315.pyc +0 -0
  65. package/python/lib/python3.15/__pycache__/doctest.cpython-315.pyc +0 -0
  66. package/python/lib/python3.15/__pycache__/enum.cpython-315.pyc +0 -0
  67. package/python/lib/python3.15/__pycache__/filecmp.cpython-315.pyc +0 -0
  68. package/python/lib/python3.15/__pycache__/fileinput.cpython-315.pyc +0 -0
  69. package/python/lib/python3.15/__pycache__/fnmatch.cpython-315.pyc +0 -0
  70. package/python/lib/python3.15/__pycache__/fractions.cpython-315.pyc +0 -0
  71. package/python/lib/python3.15/__pycache__/ftplib.cpython-315.pyc +0 -0
  72. package/python/lib/python3.15/__pycache__/functools.cpython-315.pyc +0 -0
  73. package/python/lib/python3.15/__pycache__/genericpath.cpython-315.pyc +0 -0
  74. package/python/lib/python3.15/__pycache__/getopt.cpython-315.pyc +0 -0
  75. package/python/lib/python3.15/__pycache__/getpass.cpython-315.pyc +0 -0
  76. package/python/lib/python3.15/__pycache__/gettext.cpython-315.pyc +0 -0
  77. package/python/lib/python3.15/__pycache__/glob.cpython-315.pyc +0 -0
  78. package/python/lib/python3.15/__pycache__/graphlib.cpython-315.pyc +0 -0
  79. package/python/lib/python3.15/__pycache__/gzip.cpython-315.pyc +0 -0
  80. package/python/lib/python3.15/__pycache__/hashlib.cpython-315.pyc +0 -0
  81. package/python/lib/python3.15/__pycache__/heapq.cpython-315.pyc +0 -0
  82. package/python/lib/python3.15/__pycache__/hmac.cpython-315.pyc +0 -0
  83. package/python/lib/python3.15/__pycache__/imaplib.cpython-315.pyc +0 -0
  84. package/python/lib/python3.15/__pycache__/inspect.cpython-315.pyc +0 -0
  85. package/python/lib/python3.15/__pycache__/io.cpython-315.pyc +0 -0
  86. package/python/lib/python3.15/__pycache__/ipaddress.cpython-315.pyc +0 -0
  87. package/python/lib/python3.15/__pycache__/keyword.cpython-315.pyc +0 -0
  88. package/python/lib/python3.15/__pycache__/linecache.cpython-315.pyc +0 -0
  89. package/python/lib/python3.15/__pycache__/locale.cpython-315.pyc +0 -0
  90. package/python/lib/python3.15/__pycache__/lzma.cpython-315.pyc +0 -0
  91. package/python/lib/python3.15/__pycache__/mailbox.cpython-315.pyc +0 -0
  92. package/python/lib/python3.15/__pycache__/mimetypes.cpython-315.pyc +0 -0
  93. package/python/lib/python3.15/__pycache__/modulefinder.cpython-315.pyc +0 -0
  94. package/python/lib/python3.15/__pycache__/netrc.cpython-315.pyc +0 -0
  95. package/python/lib/python3.15/__pycache__/ntpath.cpython-315.pyc +0 -0
  96. package/python/lib/python3.15/__pycache__/nturl2path.cpython-315.pyc +0 -0
  97. package/python/lib/python3.15/__pycache__/numbers.cpython-315.pyc +0 -0
  98. package/python/lib/python3.15/__pycache__/opcode.cpython-315.pyc +0 -0
  99. package/python/lib/python3.15/__pycache__/operator.cpython-315.pyc +0 -0
  100. package/python/lib/python3.15/__pycache__/optparse.cpython-315.pyc +0 -0
  101. package/python/lib/python3.15/__pycache__/os.cpython-315.pyc +0 -0
  102. package/python/lib/python3.15/__pycache__/pdb.cpython-315.pyc +0 -0
  103. package/python/lib/python3.15/__pycache__/pickle.cpython-315.pyc +0 -0
  104. package/python/lib/python3.15/__pycache__/pickletools.cpython-315.pyc +0 -0
  105. package/python/lib/python3.15/__pycache__/pkgutil.cpython-315.pyc +0 -0
  106. package/python/lib/python3.15/__pycache__/platform.cpython-315.pyc +0 -0
  107. package/python/lib/python3.15/__pycache__/plistlib.cpython-315.pyc +0 -0
  108. package/python/lib/python3.15/__pycache__/poplib.cpython-315.pyc +0 -0
  109. package/python/lib/python3.15/__pycache__/posixpath.cpython-315.pyc +0 -0
  110. package/python/lib/python3.15/__pycache__/pprint.cpython-315.pyc +0 -0
  111. package/python/lib/python3.15/__pycache__/profile.cpython-315.pyc +0 -0
  112. package/python/lib/python3.15/__pycache__/pstats.cpython-315.pyc +0 -0
  113. package/python/lib/python3.15/__pycache__/pty.cpython-315.pyc +0 -0
  114. package/python/lib/python3.15/__pycache__/py_compile.cpython-315.pyc +0 -0
  115. package/python/lib/python3.15/__pycache__/pyclbr.cpython-315.pyc +0 -0
  116. package/python/lib/python3.15/__pycache__/pydoc.cpython-315.pyc +0 -0
  117. package/python/lib/python3.15/__pycache__/queue.cpython-315.pyc +0 -0
  118. package/python/lib/python3.15/__pycache__/quopri.cpython-315.pyc +0 -0
  119. package/python/lib/python3.15/__pycache__/random.cpython-315.pyc +0 -0
  120. package/python/lib/python3.15/__pycache__/reprlib.cpython-315.pyc +0 -0
  121. package/python/lib/python3.15/__pycache__/rlcompleter.cpython-315.pyc +0 -0
  122. package/python/lib/python3.15/__pycache__/runpy.cpython-315.pyc +0 -0
  123. package/python/lib/python3.15/__pycache__/sched.cpython-315.pyc +0 -0
  124. package/python/lib/python3.15/__pycache__/secrets.cpython-315.pyc +0 -0
  125. package/python/lib/python3.15/__pycache__/selectors.cpython-315.pyc +0 -0
  126. package/python/lib/python3.15/__pycache__/shelve.cpython-315.pyc +0 -0
  127. package/python/lib/python3.15/__pycache__/shlex.cpython-315.pyc +0 -0
  128. package/python/lib/python3.15/__pycache__/shutil.cpython-315.pyc +0 -0
  129. package/python/lib/python3.15/__pycache__/signal.cpython-315.pyc +0 -0
  130. package/python/lib/python3.15/__pycache__/site.cpython-315.pyc +0 -0
  131. package/python/lib/python3.15/__pycache__/smtplib.cpython-315.pyc +0 -0
  132. package/python/lib/python3.15/__pycache__/socket.cpython-315.pyc +0 -0
  133. package/python/lib/python3.15/__pycache__/socketserver.cpython-315.pyc +0 -0
  134. package/python/lib/python3.15/__pycache__/ssl.cpython-315.pyc +0 -0
  135. package/python/lib/python3.15/__pycache__/stat.cpython-315.pyc +0 -0
  136. package/python/lib/python3.15/__pycache__/statistics.cpython-315.pyc +0 -0
  137. package/python/lib/python3.15/__pycache__/stringprep.cpython-315.pyc +0 -0
  138. package/python/lib/python3.15/__pycache__/struct.cpython-315.pyc +0 -0
  139. package/python/lib/python3.15/__pycache__/subprocess.cpython-315.pyc +0 -0
  140. package/python/lib/python3.15/__pycache__/symtable.cpython-315.pyc +0 -0
  141. package/python/lib/python3.15/__pycache__/tabnanny.cpython-315.pyc +0 -0
  142. package/python/lib/python3.15/__pycache__/tarfile.cpython-315.pyc +0 -0
  143. package/python/lib/python3.15/__pycache__/tempfile.cpython-315.pyc +0 -0
  144. package/python/lib/python3.15/__pycache__/textwrap.cpython-315.pyc +0 -0
  145. package/python/lib/python3.15/__pycache__/this.cpython-315.pyc +0 -0
  146. package/python/lib/python3.15/__pycache__/threading.cpython-315.pyc +0 -0
  147. package/python/lib/python3.15/__pycache__/timeit.cpython-315.pyc +0 -0
  148. package/python/lib/python3.15/__pycache__/token.cpython-315.pyc +0 -0
  149. package/python/lib/python3.15/__pycache__/tokenize.cpython-315.pyc +0 -0
  150. package/python/lib/python3.15/__pycache__/trace.cpython-315.pyc +0 -0
  151. package/python/lib/python3.15/__pycache__/traceback.cpython-315.pyc +0 -0
  152. package/python/lib/python3.15/__pycache__/tracemalloc.cpython-315.pyc +0 -0
  153. package/python/lib/python3.15/__pycache__/tty.cpython-315.pyc +0 -0
  154. package/python/lib/python3.15/__pycache__/types.cpython-315.pyc +0 -0
  155. package/python/lib/python3.15/__pycache__/typing.cpython-315.pyc +0 -0
  156. package/python/lib/python3.15/__pycache__/uuid.cpython-315.pyc +0 -0
  157. package/python/lib/python3.15/__pycache__/warnings.cpython-315.pyc +0 -0
  158. package/python/lib/python3.15/__pycache__/wave.cpython-315.pyc +0 -0
  159. package/python/lib/python3.15/__pycache__/weakref.cpython-315.pyc +0 -0
  160. package/python/lib/python3.15/__pycache__/webbrowser.cpython-315.pyc +0 -0
  161. package/python/lib/python3.15/__pycache__/zipapp.cpython-315.pyc +0 -0
  162. package/python/lib/python3.15/__pycache__/zipimport.cpython-315.pyc +0 -0
  163. package/python/lib/python3.15/_aix_support.py +108 -0
  164. package/python/lib/python3.15/_android_support.py +192 -0
  165. package/python/lib/python3.15/_apple_support.py +66 -0
  166. package/python/lib/python3.15/_ast_unparse.py +1165 -0
  167. package/python/lib/python3.15/_collections_abc.py +1183 -0
  168. package/python/lib/python3.15/_colorize.py +647 -0
  169. package/python/lib/python3.15/_compat_pickle.py +249 -0
  170. package/python/lib/python3.15/_ios_support.py +74 -0
  171. package/python/lib/python3.15/_markupbase.py +396 -0
  172. package/python/lib/python3.15/_missing_stdlib_info.py +32 -0
  173. package/python/lib/python3.15/_opcode_metadata.py +387 -0
  174. package/python/lib/python3.15/_osx_support.py +580 -0
  175. package/python/lib/python3.15/_py_abc.py +152 -0
  176. package/python/lib/python3.15/_py_warnings.py +928 -0
  177. package/python/lib/python3.15/_pydatetime.py +2779 -0
  178. package/python/lib/python3.15/_pydecimal.py +6514 -0
  179. package/python/lib/python3.15/_pyio.py +2788 -0
  180. package/python/lib/python3.15/_pylong.py +729 -0
  181. package/python/lib/python3.15/_pyrepl/__init__.py +19 -0
  182. package/python/lib/python3.15/_pyrepl/__main__.py +10 -0
  183. package/python/lib/python3.15/_pyrepl/__pycache__/__init__.cpython-315.pyc +0 -0
  184. package/python/lib/python3.15/_pyrepl/__pycache__/__main__.cpython-315.pyc +0 -0
  185. package/python/lib/python3.15/_pyrepl/__pycache__/_module_completer.cpython-315.pyc +0 -0
  186. package/python/lib/python3.15/_pyrepl/__pycache__/_threading_handler.cpython-315.pyc +0 -0
  187. package/python/lib/python3.15/_pyrepl/__pycache__/base_eventqueue.cpython-315.pyc +0 -0
  188. package/python/lib/python3.15/_pyrepl/__pycache__/commands.cpython-315.pyc +0 -0
  189. package/python/lib/python3.15/_pyrepl/__pycache__/completing_reader.cpython-315.pyc +0 -0
  190. package/python/lib/python3.15/_pyrepl/__pycache__/console.cpython-315.pyc +0 -0
  191. package/python/lib/python3.15/_pyrepl/__pycache__/content.cpython-315.pyc +0 -0
  192. package/python/lib/python3.15/_pyrepl/__pycache__/fancy_termios.cpython-315.pyc +0 -0
  193. package/python/lib/python3.15/_pyrepl/__pycache__/fancycompleter.cpython-315.pyc +0 -0
  194. package/python/lib/python3.15/_pyrepl/__pycache__/historical_reader.cpython-315.pyc +0 -0
  195. package/python/lib/python3.15/_pyrepl/__pycache__/input.cpython-315.pyc +0 -0
  196. package/python/lib/python3.15/_pyrepl/__pycache__/keymap.cpython-315.pyc +0 -0
  197. package/python/lib/python3.15/_pyrepl/__pycache__/layout.cpython-315.pyc +0 -0
  198. package/python/lib/python3.15/_pyrepl/__pycache__/main.cpython-315.pyc +0 -0
  199. package/python/lib/python3.15/_pyrepl/__pycache__/pager.cpython-315.pyc +0 -0
  200. package/python/lib/python3.15/_pyrepl/__pycache__/reader.cpython-315.pyc +0 -0
  201. package/python/lib/python3.15/_pyrepl/__pycache__/readline.cpython-315.pyc +0 -0
  202. package/python/lib/python3.15/_pyrepl/__pycache__/render.cpython-315.pyc +0 -0
  203. package/python/lib/python3.15/_pyrepl/__pycache__/simple_interact.cpython-315.pyc +0 -0
  204. package/python/lib/python3.15/_pyrepl/__pycache__/terminfo.cpython-315.pyc +0 -0
  205. package/python/lib/python3.15/_pyrepl/__pycache__/trace.cpython-315.pyc +0 -0
  206. package/python/lib/python3.15/_pyrepl/__pycache__/types.cpython-315.pyc +0 -0
  207. package/python/lib/python3.15/_pyrepl/__pycache__/unix_console.cpython-315.pyc +0 -0
  208. package/python/lib/python3.15/_pyrepl/__pycache__/unix_eventqueue.cpython-315.pyc +0 -0
  209. package/python/lib/python3.15/_pyrepl/__pycache__/utils.cpython-315.pyc +0 -0
  210. package/python/lib/python3.15/_pyrepl/__pycache__/windows_console.cpython-315.pyc +0 -0
  211. package/python/lib/python3.15/_pyrepl/__pycache__/windows_eventqueue.cpython-315.pyc +0 -0
  212. package/python/lib/python3.15/_pyrepl/_module_completer.py +580 -0
  213. package/python/lib/python3.15/_pyrepl/_threading_handler.py +74 -0
  214. package/python/lib/python3.15/_pyrepl/base_eventqueue.py +110 -0
  215. package/python/lib/python3.15/_pyrepl/commands.py +521 -0
  216. package/python/lib/python3.15/_pyrepl/completing_reader.py +332 -0
  217. package/python/lib/python3.15/_pyrepl/console.py +295 -0
  218. package/python/lib/python3.15/_pyrepl/content.py +136 -0
  219. package/python/lib/python3.15/_pyrepl/fancy_termios.py +82 -0
  220. package/python/lib/python3.15/_pyrepl/fancycompleter.py +213 -0
  221. package/python/lib/python3.15/_pyrepl/historical_reader.py +423 -0
  222. package/python/lib/python3.15/_pyrepl/input.py +115 -0
  223. package/python/lib/python3.15/_pyrepl/keymap.py +213 -0
  224. package/python/lib/python3.15/_pyrepl/layout.py +268 -0
  225. package/python/lib/python3.15/_pyrepl/main.py +58 -0
  226. package/python/lib/python3.15/_pyrepl/mypy.ini +25 -0
  227. package/python/lib/python3.15/_pyrepl/pager.py +175 -0
  228. package/python/lib/python3.15/_pyrepl/reader.py +1035 -0
  229. package/python/lib/python3.15/_pyrepl/readline.py +650 -0
  230. package/python/lib/python3.15/_pyrepl/render.py +399 -0
  231. package/python/lib/python3.15/_pyrepl/simple_interact.py +185 -0
  232. package/python/lib/python3.15/_pyrepl/terminfo.py +488 -0
  233. package/python/lib/python3.15/_pyrepl/trace.py +40 -0
  234. package/python/lib/python3.15/_pyrepl/types.py +16 -0
  235. package/python/lib/python3.15/_pyrepl/unix_console.py +1085 -0
  236. package/python/lib/python3.15/_pyrepl/unix_eventqueue.py +77 -0
  237. package/python/lib/python3.15/_pyrepl/utils.py +456 -0
  238. package/python/lib/python3.15/_pyrepl/windows_console.py +864 -0
  239. package/python/lib/python3.15/_pyrepl/windows_eventqueue.py +42 -0
  240. package/python/lib/python3.15/_sitebuiltins.py +101 -0
  241. package/python/lib/python3.15/_strptime.py +851 -0
  242. package/python/lib/python3.15/_sysconfig_vars__linux_aarch64-linux-musl.json +1196 -0
  243. package/python/lib/python3.15/_sysconfigdata__linux_aarch64-linux-musl.py +1182 -0
  244. package/python/lib/python3.15/_threading_local.py +120 -0
  245. package/python/lib/python3.15/_weakrefset.py +147 -0
  246. package/python/lib/python3.15/abc.py +188 -0
  247. package/python/lib/python3.15/annotationlib.py +1220 -0
  248. package/python/lib/python3.15/antigravity.py +17 -0
  249. package/python/lib/python3.15/argparse.py +2974 -0
  250. package/python/lib/python3.15/ast.py +718 -0
  251. package/python/lib/python3.15/asyncio/__init__.py +74 -0
  252. package/python/lib/python3.15/asyncio/__main__.py +269 -0
  253. package/python/lib/python3.15/asyncio/__pycache__/__init__.cpython-315.pyc +0 -0
  254. package/python/lib/python3.15/asyncio/__pycache__/__main__.cpython-315.pyc +0 -0
  255. package/python/lib/python3.15/asyncio/__pycache__/base_events.cpython-315.pyc +0 -0
  256. package/python/lib/python3.15/asyncio/__pycache__/base_futures.cpython-315.pyc +0 -0
  257. package/python/lib/python3.15/asyncio/__pycache__/base_subprocess.cpython-315.pyc +0 -0
  258. package/python/lib/python3.15/asyncio/__pycache__/base_tasks.cpython-315.pyc +0 -0
  259. package/python/lib/python3.15/asyncio/__pycache__/constants.cpython-315.pyc +0 -0
  260. package/python/lib/python3.15/asyncio/__pycache__/coroutines.cpython-315.pyc +0 -0
  261. package/python/lib/python3.15/asyncio/__pycache__/events.cpython-315.pyc +0 -0
  262. package/python/lib/python3.15/asyncio/__pycache__/exceptions.cpython-315.pyc +0 -0
  263. package/python/lib/python3.15/asyncio/__pycache__/format_helpers.cpython-315.pyc +0 -0
  264. package/python/lib/python3.15/asyncio/__pycache__/futures.cpython-315.pyc +0 -0
  265. package/python/lib/python3.15/asyncio/__pycache__/graph.cpython-315.pyc +0 -0
  266. package/python/lib/python3.15/asyncio/__pycache__/locks.cpython-315.pyc +0 -0
  267. package/python/lib/python3.15/asyncio/__pycache__/log.cpython-315.pyc +0 -0
  268. package/python/lib/python3.15/asyncio/__pycache__/mixins.cpython-315.pyc +0 -0
  269. package/python/lib/python3.15/asyncio/__pycache__/proactor_events.cpython-315.pyc +0 -0
  270. package/python/lib/python3.15/asyncio/__pycache__/protocols.cpython-315.pyc +0 -0
  271. package/python/lib/python3.15/asyncio/__pycache__/queues.cpython-315.pyc +0 -0
  272. package/python/lib/python3.15/asyncio/__pycache__/runners.cpython-315.pyc +0 -0
  273. package/python/lib/python3.15/asyncio/__pycache__/selector_events.cpython-315.pyc +0 -0
  274. package/python/lib/python3.15/asyncio/__pycache__/sslproto.cpython-315.pyc +0 -0
  275. package/python/lib/python3.15/asyncio/__pycache__/staggered.cpython-315.pyc +0 -0
  276. package/python/lib/python3.15/asyncio/__pycache__/streams.cpython-315.pyc +0 -0
  277. package/python/lib/python3.15/asyncio/__pycache__/subprocess.cpython-315.pyc +0 -0
  278. package/python/lib/python3.15/asyncio/__pycache__/taskgroups.cpython-315.pyc +0 -0
  279. package/python/lib/python3.15/asyncio/__pycache__/tasks.cpython-315.pyc +0 -0
  280. package/python/lib/python3.15/asyncio/__pycache__/threads.cpython-315.pyc +0 -0
  281. package/python/lib/python3.15/asyncio/__pycache__/timeouts.cpython-315.pyc +0 -0
  282. package/python/lib/python3.15/asyncio/__pycache__/tools.cpython-315.pyc +0 -0
  283. package/python/lib/python3.15/asyncio/__pycache__/transports.cpython-315.pyc +0 -0
  284. package/python/lib/python3.15/asyncio/__pycache__/trsock.cpython-315.pyc +0 -0
  285. package/python/lib/python3.15/asyncio/__pycache__/unix_events.cpython-315.pyc +0 -0
  286. package/python/lib/python3.15/asyncio/__pycache__/windows_events.cpython-315.pyc +0 -0
  287. package/python/lib/python3.15/asyncio/__pycache__/windows_utils.cpython-315.pyc +0 -0
  288. package/python/lib/python3.15/asyncio/base_events.py +2098 -0
  289. package/python/lib/python3.15/asyncio/base_futures.py +67 -0
  290. package/python/lib/python3.15/asyncio/base_subprocess.py +327 -0
  291. package/python/lib/python3.15/asyncio/base_tasks.py +94 -0
  292. package/python/lib/python3.15/asyncio/constants.py +41 -0
  293. package/python/lib/python3.15/asyncio/coroutines.py +118 -0
  294. package/python/lib/python3.15/asyncio/events.py +881 -0
  295. package/python/lib/python3.15/asyncio/exceptions.py +62 -0
  296. package/python/lib/python3.15/asyncio/format_helpers.py +84 -0
  297. package/python/lib/python3.15/asyncio/futures.py +482 -0
  298. package/python/lib/python3.15/asyncio/graph.py +279 -0
  299. package/python/lib/python3.15/asyncio/locks.py +617 -0
  300. package/python/lib/python3.15/asyncio/log.py +7 -0
  301. package/python/lib/python3.15/asyncio/mixins.py +21 -0
  302. package/python/lib/python3.15/asyncio/proactor_events.py +923 -0
  303. package/python/lib/python3.15/asyncio/protocols.py +216 -0
  304. package/python/lib/python3.15/asyncio/queues.py +309 -0
  305. package/python/lib/python3.15/asyncio/runners.py +226 -0
  306. package/python/lib/python3.15/asyncio/selector_events.py +1351 -0
  307. package/python/lib/python3.15/asyncio/sslproto.py +937 -0
  308. package/python/lib/python3.15/asyncio/staggered.py +178 -0
  309. package/python/lib/python3.15/asyncio/streams.py +790 -0
  310. package/python/lib/python3.15/asyncio/subprocess.py +229 -0
  311. package/python/lib/python3.15/asyncio/taskgroups.py +334 -0
  312. package/python/lib/python3.15/asyncio/tasks.py +1154 -0
  313. package/python/lib/python3.15/asyncio/threads.py +26 -0
  314. package/python/lib/python3.15/asyncio/timeouts.py +183 -0
  315. package/python/lib/python3.15/asyncio/tools.py +289 -0
  316. package/python/lib/python3.15/asyncio/transports.py +337 -0
  317. package/python/lib/python3.15/asyncio/trsock.py +98 -0
  318. package/python/lib/python3.15/asyncio/unix_events.py +1031 -0
  319. package/python/lib/python3.15/asyncio/windows_events.py +899 -0
  320. package/python/lib/python3.15/asyncio/windows_utils.py +181 -0
  321. package/python/lib/python3.15/base64.py +498 -0
  322. package/python/lib/python3.15/bdb.py +1205 -0
  323. package/python/lib/python3.15/bisect.py +118 -0
  324. package/python/lib/python3.15/build-details.json +61 -0
  325. package/python/lib/python3.15/bz2.py +352 -0
  326. package/python/lib/python3.15/cProfile.py +13 -0
  327. package/python/lib/python3.15/calendar.py +997 -0
  328. package/python/lib/python3.15/cmd.py +414 -0
  329. package/python/lib/python3.15/code.py +396 -0
  330. package/python/lib/python3.15/codecs.py +1125 -0
  331. package/python/lib/python3.15/codeop.py +154 -0
  332. package/python/lib/python3.15/collections/__init__.py +1667 -0
  333. package/python/lib/python3.15/collections/__pycache__/__init__.cpython-315.pyc +0 -0
  334. package/python/lib/python3.15/colorsys.py +166 -0
  335. package/python/lib/python3.15/compileall.py +479 -0
  336. package/python/lib/python3.15/compression/__init__.py +0 -0
  337. package/python/lib/python3.15/compression/__pycache__/__init__.cpython-315.pyc +0 -0
  338. package/python/lib/python3.15/compression/__pycache__/bz2.cpython-315.pyc +0 -0
  339. package/python/lib/python3.15/compression/__pycache__/gzip.cpython-315.pyc +0 -0
  340. package/python/lib/python3.15/compression/__pycache__/lzma.cpython-315.pyc +0 -0
  341. package/python/lib/python3.15/compression/__pycache__/zlib.cpython-315.pyc +0 -0
  342. package/python/lib/python3.15/compression/_common/__init__.py +0 -0
  343. package/python/lib/python3.15/compression/_common/__pycache__/__init__.cpython-315.pyc +0 -0
  344. package/python/lib/python3.15/compression/_common/__pycache__/_streams.cpython-315.pyc +0 -0
  345. package/python/lib/python3.15/compression/_common/_streams.py +162 -0
  346. package/python/lib/python3.15/compression/bz2.py +5 -0
  347. package/python/lib/python3.15/compression/gzip.py +5 -0
  348. package/python/lib/python3.15/compression/lzma.py +5 -0
  349. package/python/lib/python3.15/compression/zlib.py +5 -0
  350. package/python/lib/python3.15/compression/zstd/__init__.py +244 -0
  351. package/python/lib/python3.15/compression/zstd/__pycache__/__init__.cpython-315.pyc +0 -0
  352. package/python/lib/python3.15/compression/zstd/__pycache__/_zstdfile.cpython-315.pyc +0 -0
  353. package/python/lib/python3.15/compression/zstd/_zstdfile.py +347 -0
  354. package/python/lib/python3.15/concurrent/__init__.py +1 -0
  355. package/python/lib/python3.15/concurrent/__pycache__/__init__.cpython-315.pyc +0 -0
  356. package/python/lib/python3.15/concurrent/futures/__init__.py +51 -0
  357. package/python/lib/python3.15/concurrent/futures/__pycache__/__init__.cpython-315.pyc +0 -0
  358. package/python/lib/python3.15/concurrent/futures/__pycache__/_base.cpython-315.pyc +0 -0
  359. package/python/lib/python3.15/concurrent/futures/__pycache__/interpreter.cpython-315.pyc +0 -0
  360. package/python/lib/python3.15/concurrent/futures/__pycache__/process.cpython-315.pyc +0 -0
  361. package/python/lib/python3.15/concurrent/futures/__pycache__/thread.cpython-315.pyc +0 -0
  362. package/python/lib/python3.15/concurrent/futures/_base.py +707 -0
  363. package/python/lib/python3.15/concurrent/futures/interpreter.py +123 -0
  364. package/python/lib/python3.15/concurrent/futures/process.py +1060 -0
  365. package/python/lib/python3.15/concurrent/futures/thread.py +274 -0
  366. package/python/lib/python3.15/concurrent/interpreters/__init__.py +253 -0
  367. package/python/lib/python3.15/concurrent/interpreters/__pycache__/__init__.cpython-315.pyc +0 -0
  368. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_crossinterp.cpython-315.pyc +0 -0
  369. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_queues.cpython-315.pyc +0 -0
  370. package/python/lib/python3.15/concurrent/interpreters/_crossinterp.py +107 -0
  371. package/python/lib/python3.15/concurrent/interpreters/_queues.py +289 -0
  372. package/python/lib/python3.15/configparser.py +1426 -0
  373. package/python/lib/python3.15/contextlib.py +859 -0
  374. package/python/lib/python3.15/contextvars.py +8 -0
  375. package/python/lib/python3.15/copy.py +300 -0
  376. package/python/lib/python3.15/copyreg.py +222 -0
  377. package/python/lib/python3.15/csv.py +536 -0
  378. package/python/lib/python3.15/ctypes/__init__.py +684 -0
  379. package/python/lib/python3.15/ctypes/__pycache__/__init__.cpython-315.pyc +0 -0
  380. package/python/lib/python3.15/ctypes/__pycache__/_aix.cpython-315.pyc +0 -0
  381. package/python/lib/python3.15/ctypes/__pycache__/_endian.cpython-315.pyc +0 -0
  382. package/python/lib/python3.15/ctypes/__pycache__/_layout.cpython-315.pyc +0 -0
  383. package/python/lib/python3.15/ctypes/__pycache__/util.cpython-315.pyc +0 -0
  384. package/python/lib/python3.15/ctypes/__pycache__/wintypes.cpython-315.pyc +0 -0
  385. package/python/lib/python3.15/ctypes/_aix.py +327 -0
  386. package/python/lib/python3.15/ctypes/_endian.py +78 -0
  387. package/python/lib/python3.15/ctypes/_layout.py +331 -0
  388. package/python/lib/python3.15/ctypes/macholib/README.ctypes +7 -0
  389. package/python/lib/python3.15/ctypes/macholib/__init__.py +15 -0
  390. package/python/lib/python3.15/ctypes/macholib/__pycache__/__init__.cpython-315.pyc +0 -0
  391. package/python/lib/python3.15/ctypes/macholib/__pycache__/dyld.cpython-315.pyc +0 -0
  392. package/python/lib/python3.15/ctypes/macholib/__pycache__/dylib.cpython-315.pyc +0 -0
  393. package/python/lib/python3.15/ctypes/macholib/__pycache__/framework.cpython-315.pyc +0 -0
  394. package/python/lib/python3.15/ctypes/macholib/dyld.py +165 -0
  395. package/python/lib/python3.15/ctypes/macholib/dylib.py +42 -0
  396. package/python/lib/python3.15/ctypes/macholib/fetch_macholib +2 -0
  397. package/python/lib/python3.15/ctypes/macholib/fetch_macholib.bat +1 -0
  398. package/python/lib/python3.15/ctypes/macholib/framework.py +42 -0
  399. package/python/lib/python3.15/ctypes/util.py +503 -0
  400. package/python/lib/python3.15/ctypes/wintypes.py +210 -0
  401. package/python/lib/python3.15/curses/__init__.py +101 -0
  402. package/python/lib/python3.15/curses/__pycache__/__init__.cpython-315.pyc +0 -0
  403. package/python/lib/python3.15/curses/__pycache__/ascii.cpython-315.pyc +0 -0
  404. package/python/lib/python3.15/curses/__pycache__/has_key.cpython-315.pyc +0 -0
  405. package/python/lib/python3.15/curses/__pycache__/panel.cpython-315.pyc +0 -0
  406. package/python/lib/python3.15/curses/__pycache__/textpad.cpython-315.pyc +0 -0
  407. package/python/lib/python3.15/curses/ascii.py +99 -0
  408. package/python/lib/python3.15/curses/has_key.py +192 -0
  409. package/python/lib/python3.15/curses/panel.py +6 -0
  410. package/python/lib/python3.15/curses/textpad.py +236 -0
  411. package/python/lib/python3.15/dataclasses.py +1826 -0
  412. package/python/lib/python3.15/datetime.py +13 -0
  413. package/python/lib/python3.15/dbm/__init__.py +194 -0
  414. package/python/lib/python3.15/dbm/__pycache__/__init__.cpython-315.pyc +0 -0
  415. package/python/lib/python3.15/dbm/__pycache__/dumb.cpython-315.pyc +0 -0
  416. package/python/lib/python3.15/dbm/__pycache__/gnu.cpython-315.pyc +0 -0
  417. package/python/lib/python3.15/dbm/__pycache__/ndbm.cpython-315.pyc +0 -0
  418. package/python/lib/python3.15/dbm/__pycache__/sqlite3.cpython-315.pyc +0 -0
  419. package/python/lib/python3.15/dbm/dumb.py +346 -0
  420. package/python/lib/python3.15/dbm/gnu.py +3 -0
  421. package/python/lib/python3.15/dbm/ndbm.py +3 -0
  422. package/python/lib/python3.15/dbm/sqlite3.py +148 -0
  423. package/python/lib/python3.15/decimal.py +109 -0
  424. package/python/lib/python3.15/difflib.py +2105 -0
  425. package/python/lib/python3.15/dis.py +1172 -0
  426. package/python/lib/python3.15/doctest.py +2998 -0
  427. package/python/lib/python3.15/email/__init__.py +61 -0
  428. package/python/lib/python3.15/email/__pycache__/__init__.cpython-315.pyc +0 -0
  429. package/python/lib/python3.15/email/__pycache__/_encoded_words.cpython-315.pyc +0 -0
  430. package/python/lib/python3.15/email/__pycache__/_header_value_parser.cpython-315.pyc +0 -0
  431. package/python/lib/python3.15/email/__pycache__/_parseaddr.cpython-315.pyc +0 -0
  432. package/python/lib/python3.15/email/__pycache__/_policybase.cpython-315.pyc +0 -0
  433. package/python/lib/python3.15/email/__pycache__/base64mime.cpython-315.pyc +0 -0
  434. package/python/lib/python3.15/email/__pycache__/charset.cpython-315.pyc +0 -0
  435. package/python/lib/python3.15/email/__pycache__/contentmanager.cpython-315.pyc +0 -0
  436. package/python/lib/python3.15/email/__pycache__/encoders.cpython-315.pyc +0 -0
  437. package/python/lib/python3.15/email/__pycache__/errors.cpython-315.pyc +0 -0
  438. package/python/lib/python3.15/email/__pycache__/feedparser.cpython-315.pyc +0 -0
  439. package/python/lib/python3.15/email/__pycache__/generator.cpython-315.pyc +0 -0
  440. package/python/lib/python3.15/email/__pycache__/header.cpython-315.pyc +0 -0
  441. package/python/lib/python3.15/email/__pycache__/headerregistry.cpython-315.pyc +0 -0
  442. package/python/lib/python3.15/email/__pycache__/iterators.cpython-315.pyc +0 -0
  443. package/python/lib/python3.15/email/__pycache__/message.cpython-315.pyc +0 -0
  444. package/python/lib/python3.15/email/__pycache__/parser.cpython-315.pyc +0 -0
  445. package/python/lib/python3.15/email/__pycache__/policy.cpython-315.pyc +0 -0
  446. package/python/lib/python3.15/email/__pycache__/quoprimime.cpython-315.pyc +0 -0
  447. package/python/lib/python3.15/email/__pycache__/utils.cpython-315.pyc +0 -0
  448. package/python/lib/python3.15/email/_encoded_words.py +233 -0
  449. package/python/lib/python3.15/email/_header_value_parser.py +3216 -0
  450. package/python/lib/python3.15/email/_parseaddr.py +563 -0
  451. package/python/lib/python3.15/email/_policybase.py +392 -0
  452. package/python/lib/python3.15/email/architecture.rst +216 -0
  453. package/python/lib/python3.15/email/base64mime.py +114 -0
  454. package/python/lib/python3.15/email/charset.py +442 -0
  455. package/python/lib/python3.15/email/contentmanager.py +242 -0
  456. package/python/lib/python3.15/email/encoders.py +65 -0
  457. package/python/lib/python3.15/email/errors.py +117 -0
  458. package/python/lib/python3.15/email/feedparser.py +536 -0
  459. package/python/lib/python3.15/email/generator.py +530 -0
  460. package/python/lib/python3.15/email/header.py +582 -0
  461. package/python/lib/python3.15/email/headerregistry.py +616 -0
  462. package/python/lib/python3.15/email/iterators.py +68 -0
  463. package/python/lib/python3.15/email/message.py +1217 -0
  464. package/python/lib/python3.15/email/mime/__init__.py +0 -0
  465. package/python/lib/python3.15/email/mime/__pycache__/__init__.cpython-315.pyc +0 -0
  466. package/python/lib/python3.15/email/mime/__pycache__/application.cpython-315.pyc +0 -0
  467. package/python/lib/python3.15/email/mime/__pycache__/audio.cpython-315.pyc +0 -0
  468. package/python/lib/python3.15/email/mime/__pycache__/base.cpython-315.pyc +0 -0
  469. package/python/lib/python3.15/email/mime/__pycache__/image.cpython-315.pyc +0 -0
  470. package/python/lib/python3.15/email/mime/__pycache__/message.cpython-315.pyc +0 -0
  471. package/python/lib/python3.15/email/mime/__pycache__/multipart.cpython-315.pyc +0 -0
  472. package/python/lib/python3.15/email/mime/__pycache__/nonmultipart.cpython-315.pyc +0 -0
  473. package/python/lib/python3.15/email/mime/__pycache__/text.cpython-315.pyc +0 -0
  474. package/python/lib/python3.15/email/mime/application.py +37 -0
  475. package/python/lib/python3.15/email/mime/audio.py +97 -0
  476. package/python/lib/python3.15/email/mime/base.py +29 -0
  477. package/python/lib/python3.15/email/mime/image.py +152 -0
  478. package/python/lib/python3.15/email/mime/message.py +33 -0
  479. package/python/lib/python3.15/email/mime/multipart.py +47 -0
  480. package/python/lib/python3.15/email/mime/nonmultipart.py +21 -0
  481. package/python/lib/python3.15/email/mime/text.py +40 -0
  482. package/python/lib/python3.15/email/parser.py +127 -0
  483. package/python/lib/python3.15/email/policy.py +239 -0
  484. package/python/lib/python3.15/email/quoprimime.py +300 -0
  485. package/python/lib/python3.15/email/utils.py +493 -0
  486. package/python/lib/python3.15/encodings/__init__.py +178 -0
  487. package/python/lib/python3.15/encodings/__pycache__/__init__.cpython-315.pyc +0 -0
  488. package/python/lib/python3.15/encodings/__pycache__/_win_cp_codecs.cpython-315.pyc +0 -0
  489. package/python/lib/python3.15/encodings/__pycache__/aliases.cpython-315.pyc +0 -0
  490. package/python/lib/python3.15/encodings/__pycache__/ascii.cpython-315.pyc +0 -0
  491. package/python/lib/python3.15/encodings/__pycache__/base64_codec.cpython-315.pyc +0 -0
  492. package/python/lib/python3.15/encodings/__pycache__/big5.cpython-315.pyc +0 -0
  493. package/python/lib/python3.15/encodings/__pycache__/big5hkscs.cpython-315.pyc +0 -0
  494. package/python/lib/python3.15/encodings/__pycache__/bz2_codec.cpython-315.pyc +0 -0
  495. package/python/lib/python3.15/encodings/__pycache__/charmap.cpython-315.pyc +0 -0
  496. package/python/lib/python3.15/encodings/__pycache__/cp037.cpython-315.pyc +0 -0
  497. package/python/lib/python3.15/encodings/__pycache__/cp1006.cpython-315.pyc +0 -0
  498. package/python/lib/python3.15/encodings/__pycache__/cp1026.cpython-315.pyc +0 -0
  499. package/python/lib/python3.15/encodings/__pycache__/cp1125.cpython-315.pyc +0 -0
  500. package/python/lib/python3.15/encodings/__pycache__/cp1140.cpython-315.pyc +0 -0
  501. package/python/lib/python3.15/encodings/__pycache__/cp1250.cpython-315.pyc +0 -0
  502. package/python/lib/python3.15/encodings/__pycache__/cp1251.cpython-315.pyc +0 -0
  503. package/python/lib/python3.15/encodings/__pycache__/cp1252.cpython-315.pyc +0 -0
  504. package/python/lib/python3.15/encodings/__pycache__/cp1253.cpython-315.pyc +0 -0
  505. package/python/lib/python3.15/encodings/__pycache__/cp1254.cpython-315.pyc +0 -0
  506. package/python/lib/python3.15/encodings/__pycache__/cp1255.cpython-315.pyc +0 -0
  507. package/python/lib/python3.15/encodings/__pycache__/cp1256.cpython-315.pyc +0 -0
  508. package/python/lib/python3.15/encodings/__pycache__/cp1257.cpython-315.pyc +0 -0
  509. package/python/lib/python3.15/encodings/__pycache__/cp1258.cpython-315.pyc +0 -0
  510. package/python/lib/python3.15/encodings/__pycache__/cp273.cpython-315.pyc +0 -0
  511. package/python/lib/python3.15/encodings/__pycache__/cp424.cpython-315.pyc +0 -0
  512. package/python/lib/python3.15/encodings/__pycache__/cp437.cpython-315.pyc +0 -0
  513. package/python/lib/python3.15/encodings/__pycache__/cp500.cpython-315.pyc +0 -0
  514. package/python/lib/python3.15/encodings/__pycache__/cp720.cpython-315.pyc +0 -0
  515. package/python/lib/python3.15/encodings/__pycache__/cp737.cpython-315.pyc +0 -0
  516. package/python/lib/python3.15/encodings/__pycache__/cp775.cpython-315.pyc +0 -0
  517. package/python/lib/python3.15/encodings/__pycache__/cp850.cpython-315.pyc +0 -0
  518. package/python/lib/python3.15/encodings/__pycache__/cp852.cpython-315.pyc +0 -0
  519. package/python/lib/python3.15/encodings/__pycache__/cp855.cpython-315.pyc +0 -0
  520. package/python/lib/python3.15/encodings/__pycache__/cp856.cpython-315.pyc +0 -0
  521. package/python/lib/python3.15/encodings/__pycache__/cp857.cpython-315.pyc +0 -0
  522. package/python/lib/python3.15/encodings/__pycache__/cp858.cpython-315.pyc +0 -0
  523. package/python/lib/python3.15/encodings/__pycache__/cp860.cpython-315.pyc +0 -0
  524. package/python/lib/python3.15/encodings/__pycache__/cp861.cpython-315.pyc +0 -0
  525. package/python/lib/python3.15/encodings/__pycache__/cp862.cpython-315.pyc +0 -0
  526. package/python/lib/python3.15/encodings/__pycache__/cp863.cpython-315.pyc +0 -0
  527. package/python/lib/python3.15/encodings/__pycache__/cp864.cpython-315.pyc +0 -0
  528. package/python/lib/python3.15/encodings/__pycache__/cp865.cpython-315.pyc +0 -0
  529. package/python/lib/python3.15/encodings/__pycache__/cp866.cpython-315.pyc +0 -0
  530. package/python/lib/python3.15/encodings/__pycache__/cp869.cpython-315.pyc +0 -0
  531. package/python/lib/python3.15/encodings/__pycache__/cp874.cpython-315.pyc +0 -0
  532. package/python/lib/python3.15/encodings/__pycache__/cp875.cpython-315.pyc +0 -0
  533. package/python/lib/python3.15/encodings/__pycache__/cp932.cpython-315.pyc +0 -0
  534. package/python/lib/python3.15/encodings/__pycache__/cp949.cpython-315.pyc +0 -0
  535. package/python/lib/python3.15/encodings/__pycache__/cp950.cpython-315.pyc +0 -0
  536. package/python/lib/python3.15/encodings/__pycache__/euc_jis_2004.cpython-315.pyc +0 -0
  537. package/python/lib/python3.15/encodings/__pycache__/euc_jisx0213.cpython-315.pyc +0 -0
  538. package/python/lib/python3.15/encodings/__pycache__/euc_jp.cpython-315.pyc +0 -0
  539. package/python/lib/python3.15/encodings/__pycache__/euc_kr.cpython-315.pyc +0 -0
  540. package/python/lib/python3.15/encodings/__pycache__/gb18030.cpython-315.pyc +0 -0
  541. package/python/lib/python3.15/encodings/__pycache__/gb2312.cpython-315.pyc +0 -0
  542. package/python/lib/python3.15/encodings/__pycache__/gbk.cpython-315.pyc +0 -0
  543. package/python/lib/python3.15/encodings/__pycache__/hex_codec.cpython-315.pyc +0 -0
  544. package/python/lib/python3.15/encodings/__pycache__/hp_roman8.cpython-315.pyc +0 -0
  545. package/python/lib/python3.15/encodings/__pycache__/hz.cpython-315.pyc +0 -0
  546. package/python/lib/python3.15/encodings/__pycache__/idna.cpython-315.pyc +0 -0
  547. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp.cpython-315.pyc +0 -0
  548. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_1.cpython-315.pyc +0 -0
  549. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2.cpython-315.pyc +0 -0
  550. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2004.cpython-315.pyc +0 -0
  551. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_3.cpython-315.pyc +0 -0
  552. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_ext.cpython-315.pyc +0 -0
  553. package/python/lib/python3.15/encodings/__pycache__/iso2022_kr.cpython-315.pyc +0 -0
  554. package/python/lib/python3.15/encodings/__pycache__/iso8859_1.cpython-315.pyc +0 -0
  555. package/python/lib/python3.15/encodings/__pycache__/iso8859_10.cpython-315.pyc +0 -0
  556. package/python/lib/python3.15/encodings/__pycache__/iso8859_11.cpython-315.pyc +0 -0
  557. package/python/lib/python3.15/encodings/__pycache__/iso8859_13.cpython-315.pyc +0 -0
  558. package/python/lib/python3.15/encodings/__pycache__/iso8859_14.cpython-315.pyc +0 -0
  559. package/python/lib/python3.15/encodings/__pycache__/iso8859_15.cpython-315.pyc +0 -0
  560. package/python/lib/python3.15/encodings/__pycache__/iso8859_16.cpython-315.pyc +0 -0
  561. package/python/lib/python3.15/encodings/__pycache__/iso8859_2.cpython-315.pyc +0 -0
  562. package/python/lib/python3.15/encodings/__pycache__/iso8859_3.cpython-315.pyc +0 -0
  563. package/python/lib/python3.15/encodings/__pycache__/iso8859_4.cpython-315.pyc +0 -0
  564. package/python/lib/python3.15/encodings/__pycache__/iso8859_5.cpython-315.pyc +0 -0
  565. package/python/lib/python3.15/encodings/__pycache__/iso8859_6.cpython-315.pyc +0 -0
  566. package/python/lib/python3.15/encodings/__pycache__/iso8859_7.cpython-315.pyc +0 -0
  567. package/python/lib/python3.15/encodings/__pycache__/iso8859_8.cpython-315.pyc +0 -0
  568. package/python/lib/python3.15/encodings/__pycache__/iso8859_9.cpython-315.pyc +0 -0
  569. package/python/lib/python3.15/encodings/__pycache__/johab.cpython-315.pyc +0 -0
  570. package/python/lib/python3.15/encodings/__pycache__/koi8_r.cpython-315.pyc +0 -0
  571. package/python/lib/python3.15/encodings/__pycache__/koi8_t.cpython-315.pyc +0 -0
  572. package/python/lib/python3.15/encodings/__pycache__/koi8_u.cpython-315.pyc +0 -0
  573. package/python/lib/python3.15/encodings/__pycache__/kz1048.cpython-315.pyc +0 -0
  574. package/python/lib/python3.15/encodings/__pycache__/latin_1.cpython-315.pyc +0 -0
  575. package/python/lib/python3.15/encodings/__pycache__/mac_arabic.cpython-315.pyc +0 -0
  576. package/python/lib/python3.15/encodings/__pycache__/mac_croatian.cpython-315.pyc +0 -0
  577. package/python/lib/python3.15/encodings/__pycache__/mac_cyrillic.cpython-315.pyc +0 -0
  578. package/python/lib/python3.15/encodings/__pycache__/mac_farsi.cpython-315.pyc +0 -0
  579. package/python/lib/python3.15/encodings/__pycache__/mac_greek.cpython-315.pyc +0 -0
  580. package/python/lib/python3.15/encodings/__pycache__/mac_iceland.cpython-315.pyc +0 -0
  581. package/python/lib/python3.15/encodings/__pycache__/mac_latin2.cpython-315.pyc +0 -0
  582. package/python/lib/python3.15/encodings/__pycache__/mac_roman.cpython-315.pyc +0 -0
  583. package/python/lib/python3.15/encodings/__pycache__/mac_romanian.cpython-315.pyc +0 -0
  584. package/python/lib/python3.15/encodings/__pycache__/mac_turkish.cpython-315.pyc +0 -0
  585. package/python/lib/python3.15/encodings/__pycache__/mbcs.cpython-315.pyc +0 -0
  586. package/python/lib/python3.15/encodings/__pycache__/oem.cpython-315.pyc +0 -0
  587. package/python/lib/python3.15/encodings/__pycache__/palmos.cpython-315.pyc +0 -0
  588. package/python/lib/python3.15/encodings/__pycache__/ptcp154.cpython-315.pyc +0 -0
  589. package/python/lib/python3.15/encodings/__pycache__/punycode.cpython-315.pyc +0 -0
  590. package/python/lib/python3.15/encodings/__pycache__/quopri_codec.cpython-315.pyc +0 -0
  591. package/python/lib/python3.15/encodings/__pycache__/raw_unicode_escape.cpython-315.pyc +0 -0
  592. package/python/lib/python3.15/encodings/__pycache__/rot_13.cpython-315.pyc +0 -0
  593. package/python/lib/python3.15/encodings/__pycache__/shift_jis.cpython-315.pyc +0 -0
  594. package/python/lib/python3.15/encodings/__pycache__/shift_jis_2004.cpython-315.pyc +0 -0
  595. package/python/lib/python3.15/encodings/__pycache__/shift_jisx0213.cpython-315.pyc +0 -0
  596. package/python/lib/python3.15/encodings/__pycache__/tis_620.cpython-315.pyc +0 -0
  597. package/python/lib/python3.15/encodings/__pycache__/undefined.cpython-315.pyc +0 -0
  598. package/python/lib/python3.15/encodings/__pycache__/unicode_escape.cpython-315.pyc +0 -0
  599. package/python/lib/python3.15/encodings/__pycache__/utf_16.cpython-315.pyc +0 -0
  600. package/python/lib/python3.15/encodings/__pycache__/utf_16_be.cpython-315.pyc +0 -0
  601. package/python/lib/python3.15/encodings/__pycache__/utf_16_le.cpython-315.pyc +0 -0
  602. package/python/lib/python3.15/encodings/__pycache__/utf_32.cpython-315.pyc +0 -0
  603. package/python/lib/python3.15/encodings/__pycache__/utf_32_be.cpython-315.pyc +0 -0
  604. package/python/lib/python3.15/encodings/__pycache__/utf_32_le.cpython-315.pyc +0 -0
  605. package/python/lib/python3.15/encodings/__pycache__/utf_7.cpython-315.pyc +0 -0
  606. package/python/lib/python3.15/encodings/__pycache__/utf_8.cpython-315.pyc +0 -0
  607. package/python/lib/python3.15/encodings/__pycache__/utf_8_sig.cpython-315.pyc +0 -0
  608. package/python/lib/python3.15/encodings/__pycache__/uu_codec.cpython-315.pyc +0 -0
  609. package/python/lib/python3.15/encodings/__pycache__/zlib_codec.cpython-315.pyc +0 -0
  610. package/python/lib/python3.15/encodings/_win_cp_codecs.py +36 -0
  611. package/python/lib/python3.15/encodings/aliases.py +627 -0
  612. package/python/lib/python3.15/encodings/ascii.py +50 -0
  613. package/python/lib/python3.15/encodings/base64_codec.py +55 -0
  614. package/python/lib/python3.15/encodings/big5.py +39 -0
  615. package/python/lib/python3.15/encodings/big5hkscs.py +39 -0
  616. package/python/lib/python3.15/encodings/bz2_codec.py +78 -0
  617. package/python/lib/python3.15/encodings/charmap.py +69 -0
  618. package/python/lib/python3.15/encodings/cp037.py +307 -0
  619. package/python/lib/python3.15/encodings/cp1006.py +307 -0
  620. package/python/lib/python3.15/encodings/cp1026.py +307 -0
  621. package/python/lib/python3.15/encodings/cp1125.py +698 -0
  622. package/python/lib/python3.15/encodings/cp1140.py +307 -0
  623. package/python/lib/python3.15/encodings/cp1250.py +307 -0
  624. package/python/lib/python3.15/encodings/cp1251.py +307 -0
  625. package/python/lib/python3.15/encodings/cp1252.py +307 -0
  626. package/python/lib/python3.15/encodings/cp1253.py +307 -0
  627. package/python/lib/python3.15/encodings/cp1254.py +307 -0
  628. package/python/lib/python3.15/encodings/cp1255.py +307 -0
  629. package/python/lib/python3.15/encodings/cp1256.py +307 -0
  630. package/python/lib/python3.15/encodings/cp1257.py +307 -0
  631. package/python/lib/python3.15/encodings/cp1258.py +307 -0
  632. package/python/lib/python3.15/encodings/cp273.py +307 -0
  633. package/python/lib/python3.15/encodings/cp424.py +307 -0
  634. package/python/lib/python3.15/encodings/cp437.py +698 -0
  635. package/python/lib/python3.15/encodings/cp500.py +307 -0
  636. package/python/lib/python3.15/encodings/cp720.py +309 -0
  637. package/python/lib/python3.15/encodings/cp737.py +698 -0
  638. package/python/lib/python3.15/encodings/cp775.py +697 -0
  639. package/python/lib/python3.15/encodings/cp850.py +698 -0
  640. package/python/lib/python3.15/encodings/cp852.py +698 -0
  641. package/python/lib/python3.15/encodings/cp855.py +698 -0
  642. package/python/lib/python3.15/encodings/cp856.py +307 -0
  643. package/python/lib/python3.15/encodings/cp857.py +694 -0
  644. package/python/lib/python3.15/encodings/cp858.py +698 -0
  645. package/python/lib/python3.15/encodings/cp860.py +698 -0
  646. package/python/lib/python3.15/encodings/cp861.py +698 -0
  647. package/python/lib/python3.15/encodings/cp862.py +698 -0
  648. package/python/lib/python3.15/encodings/cp863.py +698 -0
  649. package/python/lib/python3.15/encodings/cp864.py +690 -0
  650. package/python/lib/python3.15/encodings/cp865.py +698 -0
  651. package/python/lib/python3.15/encodings/cp866.py +698 -0
  652. package/python/lib/python3.15/encodings/cp869.py +689 -0
  653. package/python/lib/python3.15/encodings/cp874.py +307 -0
  654. package/python/lib/python3.15/encodings/cp875.py +307 -0
  655. package/python/lib/python3.15/encodings/cp932.py +39 -0
  656. package/python/lib/python3.15/encodings/cp949.py +39 -0
  657. package/python/lib/python3.15/encodings/cp950.py +39 -0
  658. package/python/lib/python3.15/encodings/euc_jis_2004.py +39 -0
  659. package/python/lib/python3.15/encodings/euc_jisx0213.py +39 -0
  660. package/python/lib/python3.15/encodings/euc_jp.py +39 -0
  661. package/python/lib/python3.15/encodings/euc_kr.py +39 -0
  662. package/python/lib/python3.15/encodings/gb18030.py +39 -0
  663. package/python/lib/python3.15/encodings/gb2312.py +39 -0
  664. package/python/lib/python3.15/encodings/gbk.py +39 -0
  665. package/python/lib/python3.15/encodings/hex_codec.py +55 -0
  666. package/python/lib/python3.15/encodings/hp_roman8.py +314 -0
  667. package/python/lib/python3.15/encodings/hz.py +39 -0
  668. package/python/lib/python3.15/encodings/idna.py +388 -0
  669. package/python/lib/python3.15/encodings/iso2022_jp.py +39 -0
  670. package/python/lib/python3.15/encodings/iso2022_jp_1.py +39 -0
  671. package/python/lib/python3.15/encodings/iso2022_jp_2.py +39 -0
  672. package/python/lib/python3.15/encodings/iso2022_jp_2004.py +39 -0
  673. package/python/lib/python3.15/encodings/iso2022_jp_3.py +39 -0
  674. package/python/lib/python3.15/encodings/iso2022_jp_ext.py +39 -0
  675. package/python/lib/python3.15/encodings/iso2022_kr.py +39 -0
  676. package/python/lib/python3.15/encodings/iso8859_1.py +307 -0
  677. package/python/lib/python3.15/encodings/iso8859_10.py +307 -0
  678. package/python/lib/python3.15/encodings/iso8859_11.py +307 -0
  679. package/python/lib/python3.15/encodings/iso8859_13.py +307 -0
  680. package/python/lib/python3.15/encodings/iso8859_14.py +307 -0
  681. package/python/lib/python3.15/encodings/iso8859_15.py +307 -0
  682. package/python/lib/python3.15/encodings/iso8859_16.py +307 -0
  683. package/python/lib/python3.15/encodings/iso8859_2.py +307 -0
  684. package/python/lib/python3.15/encodings/iso8859_3.py +307 -0
  685. package/python/lib/python3.15/encodings/iso8859_4.py +307 -0
  686. package/python/lib/python3.15/encodings/iso8859_5.py +307 -0
  687. package/python/lib/python3.15/encodings/iso8859_6.py +307 -0
  688. package/python/lib/python3.15/encodings/iso8859_7.py +307 -0
  689. package/python/lib/python3.15/encodings/iso8859_8.py +307 -0
  690. package/python/lib/python3.15/encodings/iso8859_9.py +307 -0
  691. package/python/lib/python3.15/encodings/johab.py +39 -0
  692. package/python/lib/python3.15/encodings/koi8_r.py +307 -0
  693. package/python/lib/python3.15/encodings/koi8_t.py +308 -0
  694. package/python/lib/python3.15/encodings/koi8_u.py +307 -0
  695. package/python/lib/python3.15/encodings/kz1048.py +307 -0
  696. package/python/lib/python3.15/encodings/latin_1.py +50 -0
  697. package/python/lib/python3.15/encodings/mac_arabic.py +698 -0
  698. package/python/lib/python3.15/encodings/mac_croatian.py +307 -0
  699. package/python/lib/python3.15/encodings/mac_cyrillic.py +307 -0
  700. package/python/lib/python3.15/encodings/mac_farsi.py +307 -0
  701. package/python/lib/python3.15/encodings/mac_greek.py +307 -0
  702. package/python/lib/python3.15/encodings/mac_iceland.py +307 -0
  703. package/python/lib/python3.15/encodings/mac_latin2.py +312 -0
  704. package/python/lib/python3.15/encodings/mac_roman.py +307 -0
  705. package/python/lib/python3.15/encodings/mac_romanian.py +307 -0
  706. package/python/lib/python3.15/encodings/mac_turkish.py +307 -0
  707. package/python/lib/python3.15/encodings/mbcs.py +47 -0
  708. package/python/lib/python3.15/encodings/oem.py +41 -0
  709. package/python/lib/python3.15/encodings/palmos.py +308 -0
  710. package/python/lib/python3.15/encodings/ptcp154.py +312 -0
  711. package/python/lib/python3.15/encodings/punycode.py +253 -0
  712. package/python/lib/python3.15/encodings/quopri_codec.py +56 -0
  713. package/python/lib/python3.15/encodings/raw_unicode_escape.py +46 -0
  714. package/python/lib/python3.15/encodings/rot_13.py +113 -0
  715. package/python/lib/python3.15/encodings/shift_jis.py +39 -0
  716. package/python/lib/python3.15/encodings/shift_jis_2004.py +39 -0
  717. package/python/lib/python3.15/encodings/shift_jisx0213.py +39 -0
  718. package/python/lib/python3.15/encodings/tis_620.py +307 -0
  719. package/python/lib/python3.15/encodings/undefined.py +49 -0
  720. package/python/lib/python3.15/encodings/unicode_escape.py +46 -0
  721. package/python/lib/python3.15/encodings/utf_16.py +155 -0
  722. package/python/lib/python3.15/encodings/utf_16_be.py +42 -0
  723. package/python/lib/python3.15/encodings/utf_16_le.py +42 -0
  724. package/python/lib/python3.15/encodings/utf_32.py +150 -0
  725. package/python/lib/python3.15/encodings/utf_32_be.py +37 -0
  726. package/python/lib/python3.15/encodings/utf_32_le.py +37 -0
  727. package/python/lib/python3.15/encodings/utf_7.py +38 -0
  728. package/python/lib/python3.15/encodings/utf_8.py +42 -0
  729. package/python/lib/python3.15/encodings/utf_8_sig.py +130 -0
  730. package/python/lib/python3.15/encodings/uu_codec.py +103 -0
  731. package/python/lib/python3.15/encodings/zlib_codec.py +77 -0
  732. package/python/lib/python3.15/enum.py +2198 -0
  733. package/python/lib/python3.15/filecmp.py +320 -0
  734. package/python/lib/python3.15/fileinput.py +442 -0
  735. package/python/lib/python3.15/fnmatch.py +209 -0
  736. package/python/lib/python3.15/fractions.py +1078 -0
  737. package/python/lib/python3.15/ftplib.py +975 -0
  738. package/python/lib/python3.15/functools.py +1208 -0
  739. package/python/lib/python3.15/genericpath.py +220 -0
  740. package/python/lib/python3.15/getopt.py +232 -0
  741. package/python/lib/python3.15/getpass.py +450 -0
  742. package/python/lib/python3.15/gettext.py +661 -0
  743. package/python/lib/python3.15/glob.py +553 -0
  744. package/python/lib/python3.15/graphlib.py +309 -0
  745. package/python/lib/python3.15/gzip.py +754 -0
  746. package/python/lib/python3.15/hashlib.py +297 -0
  747. package/python/lib/python3.15/heapq.py +611 -0
  748. package/python/lib/python3.15/hmac.py +293 -0
  749. package/python/lib/python3.15/html/__init__.py +132 -0
  750. package/python/lib/python3.15/html/__pycache__/__init__.cpython-315.pyc +0 -0
  751. package/python/lib/python3.15/html/__pycache__/entities.cpython-315.pyc +0 -0
  752. package/python/lib/python3.15/html/__pycache__/parser.cpython-315.pyc +0 -0
  753. package/python/lib/python3.15/html/entities.py +2513 -0
  754. package/python/lib/python3.15/html/parser.py +583 -0
  755. package/python/lib/python3.15/http/__init__.py +213 -0
  756. package/python/lib/python3.15/http/__pycache__/__init__.cpython-315.pyc +0 -0
  757. package/python/lib/python3.15/http/__pycache__/client.cpython-315.pyc +0 -0
  758. package/python/lib/python3.15/http/__pycache__/cookiejar.cpython-315.pyc +0 -0
  759. package/python/lib/python3.15/http/__pycache__/cookies.cpython-315.pyc +0 -0
  760. package/python/lib/python3.15/http/__pycache__/server.cpython-315.pyc +0 -0
  761. package/python/lib/python3.15/http/client.py +1614 -0
  762. package/python/lib/python3.15/http/cookiejar.py +2138 -0
  763. package/python/lib/python3.15/http/cookies.py +652 -0
  764. package/python/lib/python3.15/http/server.py +1177 -0
  765. package/python/lib/python3.15/imaplib.py +2106 -0
  766. package/python/lib/python3.15/importlib/__init__.py +136 -0
  767. package/python/lib/python3.15/importlib/__pycache__/__init__.cpython-315.pyc +0 -0
  768. package/python/lib/python3.15/importlib/__pycache__/_abc.cpython-315.pyc +0 -0
  769. package/python/lib/python3.15/importlib/__pycache__/_bootstrap.cpython-315.pyc +0 -0
  770. package/python/lib/python3.15/importlib/__pycache__/_bootstrap_external.cpython-315.pyc +0 -0
  771. package/python/lib/python3.15/importlib/__pycache__/abc.cpython-315.pyc +0 -0
  772. package/python/lib/python3.15/importlib/__pycache__/machinery.cpython-315.pyc +0 -0
  773. package/python/lib/python3.15/importlib/__pycache__/readers.cpython-315.pyc +0 -0
  774. package/python/lib/python3.15/importlib/__pycache__/simple.cpython-315.pyc +0 -0
  775. package/python/lib/python3.15/importlib/__pycache__/util.cpython-315.pyc +0 -0
  776. package/python/lib/python3.15/importlib/_abc.py +21 -0
  777. package/python/lib/python3.15/importlib/_bootstrap.py +1553 -0
  778. package/python/lib/python3.15/importlib/_bootstrap_external.py +1591 -0
  779. package/python/lib/python3.15/importlib/abc.py +251 -0
  780. package/python/lib/python3.15/importlib/machinery.py +51 -0
  781. package/python/lib/python3.15/importlib/metadata/__init__.py +1206 -0
  782. package/python/lib/python3.15/importlib/metadata/__pycache__/__init__.cpython-315.pyc +0 -0
  783. package/python/lib/python3.15/importlib/metadata/__pycache__/_adapters.cpython-315.pyc +0 -0
  784. package/python/lib/python3.15/importlib/metadata/__pycache__/_collections.cpython-315.pyc +0 -0
  785. package/python/lib/python3.15/importlib/metadata/__pycache__/_context.cpython-315.pyc +0 -0
  786. package/python/lib/python3.15/importlib/metadata/__pycache__/_functools.cpython-315.pyc +0 -0
  787. package/python/lib/python3.15/importlib/metadata/__pycache__/_itertools.cpython-315.pyc +0 -0
  788. package/python/lib/python3.15/importlib/metadata/__pycache__/_meta.cpython-315.pyc +0 -0
  789. package/python/lib/python3.15/importlib/metadata/__pycache__/_text.cpython-315.pyc +0 -0
  790. package/python/lib/python3.15/importlib/metadata/__pycache__/_typing.cpython-315.pyc +0 -0
  791. package/python/lib/python3.15/importlib/metadata/__pycache__/diagnose.cpython-315.pyc +0 -0
  792. package/python/lib/python3.15/importlib/metadata/_adapters.py +136 -0
  793. package/python/lib/python3.15/importlib/metadata/_collections.py +34 -0
  794. package/python/lib/python3.15/importlib/metadata/_context.py +118 -0
  795. package/python/lib/python3.15/importlib/metadata/_functools.py +136 -0
  796. package/python/lib/python3.15/importlib/metadata/_itertools.py +171 -0
  797. package/python/lib/python3.15/importlib/metadata/_meta.py +71 -0
  798. package/python/lib/python3.15/importlib/metadata/_text.py +99 -0
  799. package/python/lib/python3.15/importlib/metadata/_typing.py +15 -0
  800. package/python/lib/python3.15/importlib/metadata/diagnose.py +21 -0
  801. package/python/lib/python3.15/importlib/readers.py +12 -0
  802. package/python/lib/python3.15/importlib/resources/__init__.py +40 -0
  803. package/python/lib/python3.15/importlib/resources/__pycache__/__init__.cpython-315.pyc +0 -0
  804. package/python/lib/python3.15/importlib/resources/__pycache__/_adapters.cpython-315.pyc +0 -0
  805. package/python/lib/python3.15/importlib/resources/__pycache__/_common.cpython-315.pyc +0 -0
  806. package/python/lib/python3.15/importlib/resources/__pycache__/_functional.cpython-315.pyc +0 -0
  807. package/python/lib/python3.15/importlib/resources/__pycache__/_itertools.cpython-315.pyc +0 -0
  808. package/python/lib/python3.15/importlib/resources/__pycache__/abc.cpython-315.pyc +0 -0
  809. package/python/lib/python3.15/importlib/resources/__pycache__/readers.cpython-315.pyc +0 -0
  810. package/python/lib/python3.15/importlib/resources/__pycache__/simple.cpython-315.pyc +0 -0
  811. package/python/lib/python3.15/importlib/resources/_adapters.py +168 -0
  812. package/python/lib/python3.15/importlib/resources/_common.py +191 -0
  813. package/python/lib/python3.15/importlib/resources/_functional.py +84 -0
  814. package/python/lib/python3.15/importlib/resources/_itertools.py +38 -0
  815. package/python/lib/python3.15/importlib/resources/abc.py +189 -0
  816. package/python/lib/python3.15/importlib/resources/readers.py +202 -0
  817. package/python/lib/python3.15/importlib/resources/simple.py +106 -0
  818. package/python/lib/python3.15/importlib/simple.py +14 -0
  819. package/python/lib/python3.15/importlib/util.py +279 -0
  820. package/python/lib/python3.15/inspect.py +3511 -0
  821. package/python/lib/python3.15/io.py +150 -0
  822. package/python/lib/python3.15/ipaddress.py +2431 -0
  823. package/python/lib/python3.15/json/__init__.py +395 -0
  824. package/python/lib/python3.15/json/__main__.py +20 -0
  825. package/python/lib/python3.15/json/__pycache__/__init__.cpython-315.pyc +0 -0
  826. package/python/lib/python3.15/json/__pycache__/__main__.cpython-315.pyc +0 -0
  827. package/python/lib/python3.15/json/__pycache__/decoder.cpython-315.pyc +0 -0
  828. package/python/lib/python3.15/json/__pycache__/encoder.cpython-315.pyc +0 -0
  829. package/python/lib/python3.15/json/__pycache__/scanner.cpython-315.pyc +0 -0
  830. package/python/lib/python3.15/json/__pycache__/tool.cpython-315.pyc +0 -0
  831. package/python/lib/python3.15/json/decoder.py +377 -0
  832. package/python/lib/python3.15/json/encoder.py +459 -0
  833. package/python/lib/python3.15/json/scanner.py +74 -0
  834. package/python/lib/python3.15/json/tool.py +123 -0
  835. package/python/lib/python3.15/keyword.py +65 -0
  836. package/python/lib/python3.15/lib-dynload/.empty +0 -0
  837. package/python/lib/python3.15/lib-dynload/_dbm.cpython-315-aarch64-linux-musl.so +0 -0
  838. package/python/lib/python3.15/linecache.py +339 -0
  839. package/python/lib/python3.15/locale.py +2007 -0
  840. package/python/lib/python3.15/logging/__init__.py +2369 -0
  841. package/python/lib/python3.15/logging/__pycache__/__init__.cpython-315.pyc +0 -0
  842. package/python/lib/python3.15/logging/__pycache__/config.cpython-315.pyc +0 -0
  843. package/python/lib/python3.15/logging/__pycache__/handlers.cpython-315.pyc +0 -0
  844. package/python/lib/python3.15/logging/config.py +1093 -0
  845. package/python/lib/python3.15/logging/handlers.py +1667 -0
  846. package/python/lib/python3.15/lzma.py +364 -0
  847. package/python/lib/python3.15/mailbox.py +2225 -0
  848. package/python/lib/python3.15/mimetypes.py +768 -0
  849. package/python/lib/python3.15/modulefinder.py +680 -0
  850. package/python/lib/python3.15/multiprocessing/__init__.py +37 -0
  851. package/python/lib/python3.15/multiprocessing/__pycache__/__init__.cpython-315.pyc +0 -0
  852. package/python/lib/python3.15/multiprocessing/__pycache__/connection.cpython-315.pyc +0 -0
  853. package/python/lib/python3.15/multiprocessing/__pycache__/context.cpython-315.pyc +0 -0
  854. package/python/lib/python3.15/multiprocessing/__pycache__/forkserver.cpython-315.pyc +0 -0
  855. package/python/lib/python3.15/multiprocessing/__pycache__/heap.cpython-315.pyc +0 -0
  856. package/python/lib/python3.15/multiprocessing/__pycache__/managers.cpython-315.pyc +0 -0
  857. package/python/lib/python3.15/multiprocessing/__pycache__/pool.cpython-315.pyc +0 -0
  858. package/python/lib/python3.15/multiprocessing/__pycache__/popen_fork.cpython-315.pyc +0 -0
  859. package/python/lib/python3.15/multiprocessing/__pycache__/popen_forkserver.cpython-315.pyc +0 -0
  860. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_posix.cpython-315.pyc +0 -0
  861. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_win32.cpython-315.pyc +0 -0
  862. package/python/lib/python3.15/multiprocessing/__pycache__/process.cpython-315.pyc +0 -0
  863. package/python/lib/python3.15/multiprocessing/__pycache__/queues.cpython-315.pyc +0 -0
  864. package/python/lib/python3.15/multiprocessing/__pycache__/reduction.cpython-315.pyc +0 -0
  865. package/python/lib/python3.15/multiprocessing/__pycache__/resource_sharer.cpython-315.pyc +0 -0
  866. package/python/lib/python3.15/multiprocessing/__pycache__/resource_tracker.cpython-315.pyc +0 -0
  867. package/python/lib/python3.15/multiprocessing/__pycache__/shared_memory.cpython-315.pyc +0 -0
  868. package/python/lib/python3.15/multiprocessing/__pycache__/sharedctypes.cpython-315.pyc +0 -0
  869. package/python/lib/python3.15/multiprocessing/__pycache__/spawn.cpython-315.pyc +0 -0
  870. package/python/lib/python3.15/multiprocessing/__pycache__/synchronize.cpython-315.pyc +0 -0
  871. package/python/lib/python3.15/multiprocessing/__pycache__/util.cpython-315.pyc +0 -0
  872. package/python/lib/python3.15/multiprocessing/connection.py +1240 -0
  873. package/python/lib/python3.15/multiprocessing/context.py +408 -0
  874. package/python/lib/python3.15/multiprocessing/dummy/__init__.py +126 -0
  875. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/__init__.cpython-315.pyc +0 -0
  876. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/connection.cpython-315.pyc +0 -0
  877. package/python/lib/python3.15/multiprocessing/dummy/connection.py +75 -0
  878. package/python/lib/python3.15/multiprocessing/forkserver.py +493 -0
  879. package/python/lib/python3.15/multiprocessing/heap.py +333 -0
  880. package/python/lib/python3.15/multiprocessing/managers.py +1438 -0
  881. package/python/lib/python3.15/multiprocessing/pool.py +957 -0
  882. package/python/lib/python3.15/multiprocessing/popen_fork.py +100 -0
  883. package/python/lib/python3.15/multiprocessing/popen_forkserver.py +74 -0
  884. package/python/lib/python3.15/multiprocessing/popen_spawn_posix.py +76 -0
  885. package/python/lib/python3.15/multiprocessing/popen_spawn_win32.py +147 -0
  886. package/python/lib/python3.15/multiprocessing/process.py +443 -0
  887. package/python/lib/python3.15/multiprocessing/queues.py +399 -0
  888. package/python/lib/python3.15/multiprocessing/reduction.py +281 -0
  889. package/python/lib/python3.15/multiprocessing/resource_sharer.py +154 -0
  890. package/python/lib/python3.15/multiprocessing/resource_tracker.py +495 -0
  891. package/python/lib/python3.15/multiprocessing/shared_memory.py +544 -0
  892. package/python/lib/python3.15/multiprocessing/sharedctypes.py +245 -0
  893. package/python/lib/python3.15/multiprocessing/spawn.py +307 -0
  894. package/python/lib/python3.15/multiprocessing/synchronize.py +411 -0
  895. package/python/lib/python3.15/multiprocessing/util.py +619 -0
  896. package/python/lib/python3.15/netrc.py +205 -0
  897. package/python/lib/python3.15/ntpath.py +896 -0
  898. package/python/lib/python3.15/nturl2path.py +82 -0
  899. package/python/lib/python3.15/numbers.py +427 -0
  900. package/python/lib/python3.15/opcode.py +135 -0
  901. package/python/lib/python3.15/operator.py +475 -0
  902. package/python/lib/python3.15/optparse.py +1673 -0
  903. package/python/lib/python3.15/os.py +1217 -0
  904. package/python/lib/python3.15/pathlib/__init__.py +1508 -0
  905. package/python/lib/python3.15/pathlib/__pycache__/__init__.cpython-315.pyc +0 -0
  906. package/python/lib/python3.15/pathlib/__pycache__/_local.cpython-315.pyc +0 -0
  907. package/python/lib/python3.15/pathlib/__pycache__/_os.cpython-315.pyc +0 -0
  908. package/python/lib/python3.15/pathlib/__pycache__/types.cpython-315.pyc +0 -0
  909. package/python/lib/python3.15/pathlib/_local.py +12 -0
  910. package/python/lib/python3.15/pathlib/_os.py +303 -0
  911. package/python/lib/python3.15/pathlib/types.py +476 -0
  912. package/python/lib/python3.15/pdb.py +3899 -0
  913. package/python/lib/python3.15/pickle.py +1955 -0
  914. package/python/lib/python3.15/pickletools.py +2934 -0
  915. package/python/lib/python3.15/pkgutil.py +492 -0
  916. package/python/lib/python3.15/platform.py +1446 -0
  917. package/python/lib/python3.15/plistlib.py +949 -0
  918. package/python/lib/python3.15/poplib.py +479 -0
  919. package/python/lib/python3.15/posixpath.py +597 -0
  920. package/python/lib/python3.15/pprint.py +972 -0
  921. package/python/lib/python3.15/profile.py +623 -0
  922. package/python/lib/python3.15/profiling/__init__.py +13 -0
  923. package/python/lib/python3.15/profiling/__pycache__/__init__.cpython-315.pyc +0 -0
  924. package/python/lib/python3.15/profiling/sampling/__init__.py +23 -0
  925. package/python/lib/python3.15/profiling/sampling/__main__.py +73 -0
  926. package/python/lib/python3.15/profiling/sampling/__pycache__/__init__.cpython-315.pyc +0 -0
  927. package/python/lib/python3.15/profiling/sampling/__pycache__/__main__.cpython-315.pyc +0 -0
  928. package/python/lib/python3.15/profiling/sampling/__pycache__/_child_monitor.cpython-315.pyc +0 -0
  929. package/python/lib/python3.15/profiling/sampling/__pycache__/_css_utils.cpython-315.pyc +0 -0
  930. package/python/lib/python3.15/profiling/sampling/__pycache__/_format_utils.cpython-315.pyc +0 -0
  931. package/python/lib/python3.15/profiling/sampling/__pycache__/_sync_coordinator.cpython-315.pyc +0 -0
  932. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_collector.cpython-315.pyc +0 -0
  933. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_reader.cpython-315.pyc +0 -0
  934. package/python/lib/python3.15/profiling/sampling/__pycache__/cli.cpython-315.pyc +0 -0
  935. package/python/lib/python3.15/profiling/sampling/__pycache__/collector.cpython-315.pyc +0 -0
  936. package/python/lib/python3.15/profiling/sampling/__pycache__/constants.cpython-315.pyc +0 -0
  937. package/python/lib/python3.15/profiling/sampling/__pycache__/dump.cpython-315.pyc +0 -0
  938. package/python/lib/python3.15/profiling/sampling/__pycache__/errors.cpython-315.pyc +0 -0
  939. package/python/lib/python3.15/profiling/sampling/__pycache__/gecko_collector.cpython-315.pyc +0 -0
  940. package/python/lib/python3.15/profiling/sampling/__pycache__/heatmap_collector.cpython-315.pyc +0 -0
  941. package/python/lib/python3.15/profiling/sampling/__pycache__/jsonl_collector.cpython-315.pyc +0 -0
  942. package/python/lib/python3.15/profiling/sampling/__pycache__/module_utils.cpython-315.pyc +0 -0
  943. package/python/lib/python3.15/profiling/sampling/__pycache__/opcode_utils.cpython-315.pyc +0 -0
  944. package/python/lib/python3.15/profiling/sampling/__pycache__/pstats_collector.cpython-315.pyc +0 -0
  945. package/python/lib/python3.15/profiling/sampling/__pycache__/sample.cpython-315.pyc +0 -0
  946. package/python/lib/python3.15/profiling/sampling/__pycache__/stack_collector.cpython-315.pyc +0 -0
  947. package/python/lib/python3.15/profiling/sampling/__pycache__/string_table.cpython-315.pyc +0 -0
  948. package/python/lib/python3.15/profiling/sampling/_assets/python-logo-only.png +0 -0
  949. package/python/lib/python3.15/profiling/sampling/_assets/tachyon-logo.png +0 -0
  950. package/python/lib/python3.15/profiling/sampling/_child_monitor.py +279 -0
  951. package/python/lib/python3.15/profiling/sampling/_css_utils.py +22 -0
  952. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.css +1085 -0
  953. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.js +1528 -0
  954. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph_template.html +464 -0
  955. package/python/lib/python3.15/profiling/sampling/_format_utils.py +5 -0
  956. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.css +1555 -0
  957. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.js +738 -0
  958. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index.js +104 -0
  959. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index_template.html +136 -0
  960. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_pyfile_template.html +131 -0
  961. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_shared.js +64 -0
  962. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.css +514 -0
  963. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.js +58 -0
  964. package/python/lib/python3.15/profiling/sampling/_sync_coordinator.py +261 -0
  965. package/python/lib/python3.15/profiling/sampling/_vendor/d3/7.8.5/d3.min.js +2 -0
  966. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph-tooltip.min.js +1 -0
  967. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.css +46 -0
  968. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.min.js +1 -0
  969. package/python/lib/python3.15/profiling/sampling/binary_collector.py +159 -0
  970. package/python/lib/python3.15/profiling/sampling/binary_reader.py +148 -0
  971. package/python/lib/python3.15/profiling/sampling/cli.py +1462 -0
  972. package/python/lib/python3.15/profiling/sampling/collector.py +292 -0
  973. package/python/lib/python3.15/profiling/sampling/constants.py +57 -0
  974. package/python/lib/python3.15/profiling/sampling/dump.py +295 -0
  975. package/python/lib/python3.15/profiling/sampling/errors.py +19 -0
  976. package/python/lib/python3.15/profiling/sampling/gecko_collector.py +1006 -0
  977. package/python/lib/python3.15/profiling/sampling/heatmap_collector.py +1145 -0
  978. package/python/lib/python3.15/profiling/sampling/jsonl_collector.py +268 -0
  979. package/python/lib/python3.15/profiling/sampling/live_collector/__init__.py +200 -0
  980. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/__init__.cpython-315.pyc +0 -0
  981. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/collector.cpython-315.pyc +0 -0
  982. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/constants.cpython-315.pyc +0 -0
  983. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/display.cpython-315.pyc +0 -0
  984. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/trend_tracker.cpython-315.pyc +0 -0
  985. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/widgets.cpython-315.pyc +0 -0
  986. package/python/lib/python3.15/profiling/sampling/live_collector/collector.py +1112 -0
  987. package/python/lib/python3.15/profiling/sampling/live_collector/constants.py +65 -0
  988. package/python/lib/python3.15/profiling/sampling/live_collector/display.py +240 -0
  989. package/python/lib/python3.15/profiling/sampling/live_collector/trend_tracker.py +157 -0
  990. package/python/lib/python3.15/profiling/sampling/live_collector/widgets.py +1090 -0
  991. package/python/lib/python3.15/profiling/sampling/module_utils.py +102 -0
  992. package/python/lib/python3.15/profiling/sampling/opcode_utils.py +94 -0
  993. package/python/lib/python3.15/profiling/sampling/pstats_collector.py +429 -0
  994. package/python/lib/python3.15/profiling/sampling/sample.py +665 -0
  995. package/python/lib/python3.15/profiling/sampling/stack_collector.py +928 -0
  996. package/python/lib/python3.15/profiling/sampling/string_table.py +53 -0
  997. package/python/lib/python3.15/profiling/tracing/__init__.py +220 -0
  998. package/python/lib/python3.15/profiling/tracing/__main__.py +6 -0
  999. package/python/lib/python3.15/profiling/tracing/__pycache__/__init__.cpython-315.pyc +0 -0
  1000. package/python/lib/python3.15/profiling/tracing/__pycache__/__main__.cpython-315.pyc +0 -0
  1001. package/python/lib/python3.15/profiling/tracing/__pycache__/_utils.cpython-315.pyc +0 -0
  1002. package/python/lib/python3.15/profiling/tracing/_utils.py +32 -0
  1003. package/python/lib/python3.15/pstats.py +840 -0
  1004. package/python/lib/python3.15/pty.py +182 -0
  1005. package/python/lib/python3.15/py_compile.py +214 -0
  1006. package/python/lib/python3.15/pyclbr.py +313 -0
  1007. package/python/lib/python3.15/pydoc.py +2843 -0
  1008. package/python/lib/python3.15/queue.py +385 -0
  1009. package/python/lib/python3.15/quopri.py +235 -0
  1010. package/python/lib/python3.15/random.py +1087 -0
  1011. package/python/lib/python3.15/re/__init__.py +442 -0
  1012. package/python/lib/python3.15/re/__pycache__/__init__.cpython-315.pyc +0 -0
  1013. package/python/lib/python3.15/re/__pycache__/_casefix.cpython-315.pyc +0 -0
  1014. package/python/lib/python3.15/re/__pycache__/_compiler.cpython-315.pyc +0 -0
  1015. package/python/lib/python3.15/re/__pycache__/_constants.cpython-315.pyc +0 -0
  1016. package/python/lib/python3.15/re/__pycache__/_parser.cpython-315.pyc +0 -0
  1017. package/python/lib/python3.15/re/_casefix.py +106 -0
  1018. package/python/lib/python3.15/re/_compiler.py +782 -0
  1019. package/python/lib/python3.15/re/_constants.py +224 -0
  1020. package/python/lib/python3.15/re/_parser.py +1065 -0
  1021. package/python/lib/python3.15/reprlib.py +230 -0
  1022. package/python/lib/python3.15/rlcompleter.py +232 -0
  1023. package/python/lib/python3.15/runpy.py +324 -0
  1024. package/python/lib/python3.15/sched.py +167 -0
  1025. package/python/lib/python3.15/secrets.py +71 -0
  1026. package/python/lib/python3.15/selectors.py +603 -0
  1027. package/python/lib/python3.15/shelve.py +266 -0
  1028. package/python/lib/python3.15/shlex.py +351 -0
  1029. package/python/lib/python3.15/shutil.py +1663 -0
  1030. package/python/lib/python3.15/signal.py +94 -0
  1031. package/python/lib/python3.15/site-packages/_yaml/__init__.py +33 -0
  1032. package/python/lib/python3.15/site-packages/_yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1033. package/python/lib/python3.15/site-packages/click/__init__.py +144 -0
  1034. package/python/lib/python3.15/site-packages/click/__pycache__/__init__.cpython-315.pyc +0 -0
  1035. package/python/lib/python3.15/site-packages/click/__pycache__/_compat.cpython-315.pyc +0 -0
  1036. package/python/lib/python3.15/site-packages/click/__pycache__/_termui_impl.cpython-315.pyc +0 -0
  1037. package/python/lib/python3.15/site-packages/click/__pycache__/_textwrap.cpython-315.pyc +0 -0
  1038. package/python/lib/python3.15/site-packages/click/__pycache__/_utils.cpython-315.pyc +0 -0
  1039. package/python/lib/python3.15/site-packages/click/__pycache__/_winconsole.cpython-315.pyc +0 -0
  1040. package/python/lib/python3.15/site-packages/click/__pycache__/core.cpython-315.pyc +0 -0
  1041. package/python/lib/python3.15/site-packages/click/__pycache__/decorators.cpython-315.pyc +0 -0
  1042. package/python/lib/python3.15/site-packages/click/__pycache__/exceptions.cpython-315.pyc +0 -0
  1043. package/python/lib/python3.15/site-packages/click/__pycache__/formatting.cpython-315.pyc +0 -0
  1044. package/python/lib/python3.15/site-packages/click/__pycache__/globals.cpython-315.pyc +0 -0
  1045. package/python/lib/python3.15/site-packages/click/__pycache__/parser.cpython-315.pyc +0 -0
  1046. package/python/lib/python3.15/site-packages/click/__pycache__/shell_completion.cpython-315.pyc +0 -0
  1047. package/python/lib/python3.15/site-packages/click/__pycache__/termui.cpython-315.pyc +0 -0
  1048. package/python/lib/python3.15/site-packages/click/__pycache__/testing.cpython-315.pyc +0 -0
  1049. package/python/lib/python3.15/site-packages/click/__pycache__/types.cpython-315.pyc +0 -0
  1050. package/python/lib/python3.15/site-packages/click/__pycache__/utils.cpython-315.pyc +0 -0
  1051. package/python/lib/python3.15/site-packages/click/_compat.py +590 -0
  1052. package/python/lib/python3.15/site-packages/click/_termui_impl.py +970 -0
  1053. package/python/lib/python3.15/site-packages/click/_textwrap.py +188 -0
  1054. package/python/lib/python3.15/site-packages/click/_utils.py +45 -0
  1055. package/python/lib/python3.15/site-packages/click/_winconsole.py +292 -0
  1056. package/python/lib/python3.15/site-packages/click/core.py +3825 -0
  1057. package/python/lib/python3.15/site-packages/click/decorators.py +625 -0
  1058. package/python/lib/python3.15/site-packages/click/exceptions.py +378 -0
  1059. package/python/lib/python3.15/site-packages/click/formatting.py +320 -0
  1060. package/python/lib/python3.15/site-packages/click/globals.py +67 -0
  1061. package/python/lib/python3.15/site-packages/click/parser.py +533 -0
  1062. package/python/lib/python3.15/site-packages/click/py.typed +0 -0
  1063. package/python/lib/python3.15/site-packages/click/shell_completion.py +796 -0
  1064. package/python/lib/python3.15/site-packages/click/termui.py +1024 -0
  1065. package/python/lib/python3.15/site-packages/click/testing.py +796 -0
  1066. package/python/lib/python3.15/site-packages/click/types.py +1437 -0
  1067. package/python/lib/python3.15/site-packages/click/utils.py +676 -0
  1068. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
  1069. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/METADATA +83 -0
  1070. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/RECORD +24 -0
  1071. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
  1072. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
  1073. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
  1074. package/python/lib/python3.15/site-packages/cssbeautifier/__init__.py +51 -0
  1075. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1076. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1077. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/_main.cpython-315.pyc +0 -0
  1078. package/python/lib/python3.15/site-packages/cssbeautifier/__version__.py +1 -0
  1079. package/python/lib/python3.15/site-packages/cssbeautifier/_main.py +208 -0
  1080. package/python/lib/python3.15/site-packages/cssbeautifier/css/__init__.py +1 -0
  1081. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-315.pyc +0 -0
  1082. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-315.pyc +0 -0
  1083. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/options.cpython-315.pyc +0 -0
  1084. package/python/lib/python3.15/site-packages/cssbeautifier/css/beautifier.py +559 -0
  1085. package/python/lib/python3.15/site-packages/cssbeautifier/css/options.py +60 -0
  1086. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__init__.py +1 -0
  1087. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1088. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
  1089. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1090. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1091. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
  1092. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1093. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
  1094. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
  1095. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1096. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1097. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1098. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1099. package/python/lib/python3.15/site-packages/djlint/__init__.py +27 -0
  1100. package/python/lib/python3.15/site-packages/djlint/__main__.py +8 -0
  1101. package/python/lib/python3.15/site-packages/djlint/__pycache__/__init__.cpython-315.pyc +0 -0
  1102. package/python/lib/python3.15/site-packages/djlint/__pycache__/__main__.cpython-315.pyc +0 -0
  1103. package/python/lib/python3.15/site-packages/djlint/__pycache__/_cli.cpython-315.pyc +0 -0
  1104. package/python/lib/python3.15/site-packages/djlint/__pycache__/api.cpython-315.pyc +0 -0
  1105. package/python/lib/python3.15/site-packages/djlint/__pycache__/const.cpython-315.pyc +0 -0
  1106. package/python/lib/python3.15/site-packages/djlint/__pycache__/github_output.cpython-315.pyc +0 -0
  1107. package/python/lib/python3.15/site-packages/djlint/__pycache__/helpers.cpython-315.pyc +0 -0
  1108. package/python/lib/python3.15/site-packages/djlint/__pycache__/lint.cpython-315.pyc +0 -0
  1109. package/python/lib/python3.15/site-packages/djlint/__pycache__/output.cpython-315.pyc +0 -0
  1110. package/python/lib/python3.15/site-packages/djlint/__pycache__/reformat.cpython-315.pyc +0 -0
  1111. package/python/lib/python3.15/site-packages/djlint/__pycache__/sarif_output.cpython-315.pyc +0 -0
  1112. package/python/lib/python3.15/site-packages/djlint/__pycache__/server.cpython-315.pyc +0 -0
  1113. package/python/lib/python3.15/site-packages/djlint/__pycache__/settings.cpython-315.pyc +0 -0
  1114. package/python/lib/python3.15/site-packages/djlint/__pycache__/src.cpython-315.pyc +0 -0
  1115. package/python/lib/python3.15/site-packages/djlint/_cli.cpython-315-aarch64-linux-musl.so +0 -0
  1116. package/python/lib/python3.15/site-packages/djlint/_cli.py +1006 -0
  1117. package/python/lib/python3.15/site-packages/djlint/api.cpython-315-aarch64-linux-musl.so +0 -0
  1118. package/python/lib/python3.15/site-packages/djlint/api.py +106 -0
  1119. package/python/lib/python3.15/site-packages/djlint/const.cpython-315-aarch64-linux-musl.so +0 -0
  1120. package/python/lib/python3.15/site-packages/djlint/const.py +506 -0
  1121. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1122. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.py +0 -0
  1123. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/__init__.cpython-315.pyc +0 -0
  1124. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-315.pyc +0 -0
  1125. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attributes.cpython-315.pyc +0 -0
  1126. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/beautifier.cpython-315.pyc +0 -0
  1127. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-315.pyc +0 -0
  1128. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/compress.cpython-315.pyc +0 -0
  1129. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/condense.cpython-315.pyc +0 -0
  1130. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/css.cpython-315.pyc +0 -0
  1131. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/endblocks.cpython-315.pyc +0 -0
  1132. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/entities.cpython-315.pyc +0 -0
  1133. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/expand.cpython-315.pyc +0 -0
  1134. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/indent.cpython-315.pyc +0 -0
  1135. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/js.cpython-315.pyc +0 -0
  1136. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/load_tags.cpython-315.pyc +0 -0
  1137. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/mako.cpython-315.pyc +0 -0
  1138. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1139. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.cpython-315-aarch64-linux-musl.so +0 -0
  1140. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.py +152 -0
  1141. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1142. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.py +580 -0
  1143. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.cpython-315-aarch64-linux-musl.so +0 -0
  1144. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.py +144 -0
  1145. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1146. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.py +318 -0
  1147. package/python/lib/python3.15/site-packages/djlint/formatter/compress.cpython-315-aarch64-linux-musl.so +0 -0
  1148. package/python/lib/python3.15/site-packages/djlint/formatter/compress.py +158 -0
  1149. package/python/lib/python3.15/site-packages/djlint/formatter/condense.cpython-315-aarch64-linux-musl.so +0 -0
  1150. package/python/lib/python3.15/site-packages/djlint/formatter/condense.py +503 -0
  1151. package/python/lib/python3.15/site-packages/djlint/formatter/css.cpython-315-aarch64-linux-musl.so +0 -0
  1152. package/python/lib/python3.15/site-packages/djlint/formatter/css.py +28 -0
  1153. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.cpython-315-aarch64-linux-musl.so +0 -0
  1154. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.py +68 -0
  1155. package/python/lib/python3.15/site-packages/djlint/formatter/entities.cpython-315-aarch64-linux-musl.so +0 -0
  1156. package/python/lib/python3.15/site-packages/djlint/formatter/entities.py +39 -0
  1157. package/python/lib/python3.15/site-packages/djlint/formatter/expand.cpython-315-aarch64-linux-musl.so +0 -0
  1158. package/python/lib/python3.15/site-packages/djlint/formatter/expand.py +576 -0
  1159. package/python/lib/python3.15/site-packages/djlint/formatter/indent.cpython-315-aarch64-linux-musl.so +0 -0
  1160. package/python/lib/python3.15/site-packages/djlint/formatter/indent.py +1239 -0
  1161. package/python/lib/python3.15/site-packages/djlint/formatter/js.cpython-315-aarch64-linux-musl.so +0 -0
  1162. package/python/lib/python3.15/site-packages/djlint/formatter/js.py +82 -0
  1163. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.cpython-315-aarch64-linux-musl.so +0 -0
  1164. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.py +60 -0
  1165. package/python/lib/python3.15/site-packages/djlint/formatter/mako.cpython-315-aarch64-linux-musl.so +0 -0
  1166. package/python/lib/python3.15/site-packages/djlint/formatter/mako.py +501 -0
  1167. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.cpython-315-aarch64-linux-musl.so +0 -0
  1168. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.py +359 -0
  1169. package/python/lib/python3.15/site-packages/djlint/github_output.cpython-315-aarch64-linux-musl.so +0 -0
  1170. package/python/lib/python3.15/site-packages/djlint/github_output.py +117 -0
  1171. package/python/lib/python3.15/site-packages/djlint/helpers.cpython-315-aarch64-linux-musl.so +0 -0
  1172. package/python/lib/python3.15/site-packages/djlint/helpers.py +979 -0
  1173. package/python/lib/python3.15/site-packages/djlint/lint.cpython-315-aarch64-linux-musl.so +0 -0
  1174. package/python/lib/python3.15/site-packages/djlint/lint.py +246 -0
  1175. package/python/lib/python3.15/site-packages/djlint/output.cpython-315-aarch64-linux-musl.so +0 -0
  1176. package/python/lib/python3.15/site-packages/djlint/output.py +250 -0
  1177. package/python/lib/python3.15/site-packages/djlint/py.typed +0 -0
  1178. package/python/lib/python3.15/site-packages/djlint/reformat.cpython-315-aarch64-linux-musl.so +0 -0
  1179. package/python/lib/python3.15/site-packages/djlint/reformat.py +130 -0
  1180. package/python/lib/python3.15/site-packages/djlint/rules/D058.cpython-315-aarch64-linux-musl.so +0 -0
  1181. package/python/lib/python3.15/site-packages/djlint/rules/D058.py +78 -0
  1182. package/python/lib/python3.15/site-packages/djlint/rules/D059.cpython-315-aarch64-linux-musl.so +0 -0
  1183. package/python/lib/python3.15/site-packages/djlint/rules/D059.py +139 -0
  1184. package/python/lib/python3.15/site-packages/djlint/rules/H009.cpython-315-aarch64-linux-musl.so +0 -0
  1185. package/python/lib/python3.15/site-packages/djlint/rules/H009.py +54 -0
  1186. package/python/lib/python3.15/site-packages/djlint/rules/H012.cpython-315-aarch64-linux-musl.so +0 -0
  1187. package/python/lib/python3.15/site-packages/djlint/rules/H012.py +240 -0
  1188. package/python/lib/python3.15/site-packages/djlint/rules/H014.cpython-315-aarch64-linux-musl.so +0 -0
  1189. package/python/lib/python3.15/site-packages/djlint/rules/H014.py +68 -0
  1190. package/python/lib/python3.15/site-packages/djlint/rules/H016.cpython-315-aarch64-linux-musl.so +0 -0
  1191. package/python/lib/python3.15/site-packages/djlint/rules/H016.py +83 -0
  1192. package/python/lib/python3.15/site-packages/djlint/rules/H022.cpython-315-aarch64-linux-musl.so +0 -0
  1193. package/python/lib/python3.15/site-packages/djlint/rules/H022.py +161 -0
  1194. package/python/lib/python3.15/site-packages/djlint/rules/H025.cpython-315-aarch64-linux-musl.so +0 -0
  1195. package/python/lib/python3.15/site-packages/djlint/rules/H025.py +141 -0
  1196. package/python/lib/python3.15/site-packages/djlint/rules/H036.cpython-315-aarch64-linux-musl.so +0 -0
  1197. package/python/lib/python3.15/site-packages/djlint/rules/H036.py +183 -0
  1198. package/python/lib/python3.15/site-packages/djlint/rules/H037.cpython-315-aarch64-linux-musl.so +0 -0
  1199. package/python/lib/python3.15/site-packages/djlint/rules/H037.py +138 -0
  1200. package/python/lib/python3.15/site-packages/djlint/rules/H041.cpython-315-aarch64-linux-musl.so +0 -0
  1201. package/python/lib/python3.15/site-packages/djlint/rules/H041.py +113 -0
  1202. package/python/lib/python3.15/site-packages/djlint/rules/H042.cpython-315-aarch64-linux-musl.so +0 -0
  1203. package/python/lib/python3.15/site-packages/djlint/rules/H042.py +199 -0
  1204. package/python/lib/python3.15/site-packages/djlint/rules/H044.cpython-315-aarch64-linux-musl.so +0 -0
  1205. package/python/lib/python3.15/site-packages/djlint/rules/H044.py +119 -0
  1206. package/python/lib/python3.15/site-packages/djlint/rules/H047.cpython-315-aarch64-linux-musl.so +0 -0
  1207. package/python/lib/python3.15/site-packages/djlint/rules/H047.py +118 -0
  1208. package/python/lib/python3.15/site-packages/djlint/rules/H048.cpython-315-aarch64-linux-musl.so +0 -0
  1209. package/python/lib/python3.15/site-packages/djlint/rules/H048.py +82 -0
  1210. package/python/lib/python3.15/site-packages/djlint/rules/H051.cpython-315-aarch64-linux-musl.so +0 -0
  1211. package/python/lib/python3.15/site-packages/djlint/rules/H051.py +98 -0
  1212. package/python/lib/python3.15/site-packages/djlint/rules/H053.cpython-315-aarch64-linux-musl.so +0 -0
  1213. package/python/lib/python3.15/site-packages/djlint/rules/H053.py +361 -0
  1214. package/python/lib/python3.15/site-packages/djlint/rules/H054.cpython-315-aarch64-linux-musl.so +0 -0
  1215. package/python/lib/python3.15/site-packages/djlint/rules/H054.py +264 -0
  1216. package/python/lib/python3.15/site-packages/djlint/rules/H057.cpython-315-aarch64-linux-musl.so +0 -0
  1217. package/python/lib/python3.15/site-packages/djlint/rules/H057.py +235 -0
  1218. package/python/lib/python3.15/site-packages/djlint/rules/T001.cpython-315-aarch64-linux-musl.so +0 -0
  1219. package/python/lib/python3.15/site-packages/djlint/rules/T001.py +103 -0
  1220. package/python/lib/python3.15/site-packages/djlint/rules/T002.cpython-315-aarch64-linux-musl.so +0 -0
  1221. package/python/lib/python3.15/site-packages/djlint/rules/T002.py +75 -0
  1222. package/python/lib/python3.15/site-packages/djlint/rules/T003.cpython-315-aarch64-linux-musl.so +0 -0
  1223. package/python/lib/python3.15/site-packages/djlint/rules/T003.py +93 -0
  1224. package/python/lib/python3.15/site-packages/djlint/rules/T027.cpython-315-aarch64-linux-musl.so +0 -0
  1225. package/python/lib/python3.15/site-packages/djlint/rules/T027.py +183 -0
  1226. package/python/lib/python3.15/site-packages/djlint/rules/T038.cpython-315-aarch64-linux-musl.so +0 -0
  1227. package/python/lib/python3.15/site-packages/djlint/rules/T038.py +152 -0
  1228. package/python/lib/python3.15/site-packages/djlint/rules/T039.cpython-315-aarch64-linux-musl.so +0 -0
  1229. package/python/lib/python3.15/site-packages/djlint/rules/T039.py +167 -0
  1230. package/python/lib/python3.15/site-packages/djlint/rules/T041.cpython-315-aarch64-linux-musl.so +0 -0
  1231. package/python/lib/python3.15/site-packages/djlint/rules/T041.py +307 -0
  1232. package/python/lib/python3.15/site-packages/djlint/rules/T042.cpython-315-aarch64-linux-musl.so +0 -0
  1233. package/python/lib/python3.15/site-packages/djlint/rules/T042.py +219 -0
  1234. package/python/lib/python3.15/site-packages/djlint/rules/T043.cpython-315-aarch64-linux-musl.so +0 -0
  1235. package/python/lib/python3.15/site-packages/djlint/rules/T043.py +154 -0
  1236. package/python/lib/python3.15/site-packages/djlint/rules/T044.cpython-315-aarch64-linux-musl.so +0 -0
  1237. package/python/lib/python3.15/site-packages/djlint/rules/T044.py +189 -0
  1238. package/python/lib/python3.15/site-packages/djlint/rules/T045.cpython-315-aarch64-linux-musl.so +0 -0
  1239. package/python/lib/python3.15/site-packages/djlint/rules/T045.py +281 -0
  1240. package/python/lib/python3.15/site-packages/djlint/rules/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1241. package/python/lib/python3.15/site-packages/djlint/rules/__init__.py +0 -0
  1242. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D058.cpython-315.pyc +0 -0
  1243. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D059.cpython-315.pyc +0 -0
  1244. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H009.cpython-315.pyc +0 -0
  1245. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H012.cpython-315.pyc +0 -0
  1246. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H014.cpython-315.pyc +0 -0
  1247. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H016.cpython-315.pyc +0 -0
  1248. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H022.cpython-315.pyc +0 -0
  1249. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H025.cpython-315.pyc +0 -0
  1250. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H036.cpython-315.pyc +0 -0
  1251. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H037.cpython-315.pyc +0 -0
  1252. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H041.cpython-315.pyc +0 -0
  1253. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H042.cpython-315.pyc +0 -0
  1254. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H044.cpython-315.pyc +0 -0
  1255. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H047.cpython-315.pyc +0 -0
  1256. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H048.cpython-315.pyc +0 -0
  1257. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H051.cpython-315.pyc +0 -0
  1258. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H053.cpython-315.pyc +0 -0
  1259. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H054.cpython-315.pyc +0 -0
  1260. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H057.cpython-315.pyc +0 -0
  1261. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T001.cpython-315.pyc +0 -0
  1262. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T002.cpython-315.pyc +0 -0
  1263. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T003.cpython-315.pyc +0 -0
  1264. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T027.cpython-315.pyc +0 -0
  1265. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T038.cpython-315.pyc +0 -0
  1266. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T039.cpython-315.pyc +0 -0
  1267. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T041.cpython-315.pyc +0 -0
  1268. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T042.cpython-315.pyc +0 -0
  1269. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T043.cpython-315.pyc +0 -0
  1270. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T044.cpython-315.pyc +0 -0
  1271. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T045.cpython-315.pyc +0 -0
  1272. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/__init__.cpython-315.pyc +0 -0
  1273. package/python/lib/python3.15/site-packages/djlint/rules.yaml +482 -0
  1274. package/python/lib/python3.15/site-packages/djlint/sarif_output.cpython-315-aarch64-linux-musl.so +0 -0
  1275. package/python/lib/python3.15/site-packages/djlint/sarif_output.py +171 -0
  1276. package/python/lib/python3.15/site-packages/djlint/server.cpython-315-aarch64-linux-musl.so +0 -0
  1277. package/python/lib/python3.15/site-packages/djlint/server.py +983 -0
  1278. package/python/lib/python3.15/site-packages/djlint/settings.cpython-315-aarch64-linux-musl.so +0 -0
  1279. package/python/lib/python3.15/site-packages/djlint/settings.py +2381 -0
  1280. package/python/lib/python3.15/site-packages/djlint/src.cpython-315-aarch64-linux-musl.so +0 -0
  1281. package/python/lib/python3.15/site-packages/djlint/src.py +192 -0
  1282. package/python/lib/python3.15/site-packages/djlint/types.pyi +20 -0
  1283. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/INSTALLER +1 -0
  1284. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/METADATA +236 -0
  1285. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/RECORD +133 -0
  1286. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/REQUESTED +0 -0
  1287. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/WHEEL +5 -0
  1288. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/entry_points.txt +2 -0
  1289. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE +675 -0
  1290. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1291. package/python/lib/python3.15/site-packages/ed0510dfe26979f3c42b__mypyc.cpython-315-aarch64-linux-musl.so +0 -0
  1292. package/python/lib/python3.15/site-packages/editorconfig/__init__.py +20 -0
  1293. package/python/lib/python3.15/site-packages/editorconfig/__main__.py +83 -0
  1294. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1295. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1296. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/exceptions.cpython-315.pyc +0 -0
  1297. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/fnmatch.cpython-315.pyc +0 -0
  1298. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/handler.cpython-315.pyc +0 -0
  1299. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/ini.cpython-315.pyc +0 -0
  1300. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/version.cpython-315.pyc +0 -0
  1301. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/versiontools.cpython-315.pyc +0 -0
  1302. package/python/lib/python3.15/site-packages/editorconfig/exceptions.py +24 -0
  1303. package/python/lib/python3.15/site-packages/editorconfig/fnmatch.py +224 -0
  1304. package/python/lib/python3.15/site-packages/editorconfig/handler.py +128 -0
  1305. package/python/lib/python3.15/site-packages/editorconfig/ini.py +173 -0
  1306. package/python/lib/python3.15/site-packages/editorconfig/py.typed +0 -0
  1307. package/python/lib/python3.15/site-packages/editorconfig/version.py +1 -0
  1308. package/python/lib/python3.15/site-packages/editorconfig/versiontools.py +36 -0
  1309. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1310. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1311. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1312. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1313. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1314. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1315. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1316. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1317. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1318. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1319. package/python/lib/python3.15/site-packages/jsbeautifier/__init__.py +309 -0
  1320. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1321. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1322. package/python/lib/python3.15/site-packages/jsbeautifier/__version__.py +1 -0
  1323. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1324. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-315.pyc +0 -0
  1325. package/python/lib/python3.15/site-packages/jsbeautifier/core/__init__.py +1 -0
  1326. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-315.pyc +0 -0
  1327. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/directives.cpython-315.pyc +0 -0
  1328. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-315.pyc +0 -0
  1329. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/options.cpython-315.pyc +0 -0
  1330. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/output.cpython-315.pyc +0 -0
  1331. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-315.pyc +0 -0
  1332. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-315.pyc +0 -0
  1333. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/token.cpython-315.pyc +0 -0
  1334. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1335. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-315.pyc +0 -0
  1336. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-315.pyc +0 -0
  1337. package/python/lib/python3.15/site-packages/jsbeautifier/core/directives.py +55 -0
  1338. package/python/lib/python3.15/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1339. package/python/lib/python3.15/site-packages/jsbeautifier/core/options.py +230 -0
  1340. package/python/lib/python3.15/site-packages/jsbeautifier/core/output.py +352 -0
  1341. package/python/lib/python3.15/site-packages/jsbeautifier/core/pattern.py +83 -0
  1342. package/python/lib/python3.15/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1343. package/python/lib/python3.15/site-packages/jsbeautifier/core/token.py +38 -0
  1344. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1345. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1346. package/python/lib/python3.15/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1347. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1348. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-315.pyc +0 -0
  1349. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-315.pyc +0 -0
  1350. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-315.pyc +0 -0
  1351. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-315.pyc +0 -0
  1352. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1353. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1354. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1355. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/options.py +102 -0
  1356. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1357. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1358. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1359. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-315.pyc +0 -0
  1360. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1361. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1362. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1363. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1364. package/python/lib/python3.15/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1365. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1366. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-315.pyc +0 -0
  1367. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-315.pyc +0 -0
  1368. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-315.pyc +0 -0
  1369. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-315.pyc +0 -0
  1370. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-315.pyc +0 -0
  1371. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-315.pyc +0 -0
  1372. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1373. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1374. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1375. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1376. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1377. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1378. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-315.pyc +0 -0
  1379. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-315.pyc +0 -0
  1380. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-315.pyc +0 -0
  1381. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-315.pyc +0 -0
  1382. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1383. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1384. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1385. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1386. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1387. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1388. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1389. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1390. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1391. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1392. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1393. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1394. package/python/lib/python3.15/site-packages/json5/__init__.py +30 -0
  1395. package/python/lib/python3.15/site-packages/json5/__main__.py +22 -0
  1396. package/python/lib/python3.15/site-packages/json5/__pycache__/__init__.cpython-315.pyc +0 -0
  1397. package/python/lib/python3.15/site-packages/json5/__pycache__/__main__.cpython-315.pyc +0 -0
  1398. package/python/lib/python3.15/site-packages/json5/__pycache__/host.cpython-315.pyc +0 -0
  1399. package/python/lib/python3.15/site-packages/json5/__pycache__/lib.cpython-315.pyc +0 -0
  1400. package/python/lib/python3.15/site-packages/json5/__pycache__/parser.cpython-315.pyc +0 -0
  1401. package/python/lib/python3.15/site-packages/json5/__pycache__/tool.cpython-315.pyc +0 -0
  1402. package/python/lib/python3.15/site-packages/json5/__pycache__/version.cpython-315.pyc +0 -0
  1403. package/python/lib/python3.15/site-packages/json5/host.py +53 -0
  1404. package/python/lib/python3.15/site-packages/json5/lib.py +1007 -0
  1405. package/python/lib/python3.15/site-packages/json5/parser.py +1376 -0
  1406. package/python/lib/python3.15/site-packages/json5/py.typed +0 -0
  1407. package/python/lib/python3.15/site-packages/json5/tool.py +198 -0
  1408. package/python/lib/python3.15/site-packages/json5/version.py +18 -0
  1409. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1410. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1411. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1412. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1413. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1414. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1415. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1416. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1417. package/python/lib/python3.15/site-packages/pathspec/__init__.py +68 -0
  1418. package/python/lib/python3.15/site-packages/pathspec/__pycache__/__init__.cpython-315.pyc +0 -0
  1419. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_meta.cpython-315.pyc +0 -0
  1420. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_typing.cpython-315.pyc +0 -0
  1421. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_version.cpython-315.pyc +0 -0
  1422. package/python/lib/python3.15/site-packages/pathspec/__pycache__/backend.cpython-315.pyc +0 -0
  1423. package/python/lib/python3.15/site-packages/pathspec/__pycache__/gitignore.cpython-315.pyc +0 -0
  1424. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pathspec.cpython-315.pyc +0 -0
  1425. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pattern.cpython-315.pyc +0 -0
  1426. package/python/lib/python3.15/site-packages/pathspec/__pycache__/util.cpython-315.pyc +0 -0
  1427. package/python/lib/python3.15/site-packages/pathspec/_backends/__init__.py +4 -0
  1428. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/__init__.cpython-315.pyc +0 -0
  1429. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/_utils.cpython-315.pyc +0 -0
  1430. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/agg.cpython-315.pyc +0 -0
  1431. package/python/lib/python3.15/site-packages/pathspec/_backends/_utils.py +45 -0
  1432. package/python/lib/python3.15/site-packages/pathspec/_backends/agg.py +104 -0
  1433. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1434. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-315.pyc +0 -0
  1435. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-315.pyc +0 -0
  1436. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-315.pyc +0 -0
  1437. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-315.pyc +0 -0
  1438. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-315.pyc +0 -0
  1439. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1440. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1441. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1442. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1443. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1444. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-315.pyc +0 -0
  1445. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-315.pyc +0 -0
  1446. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-315.pyc +0 -0
  1447. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-315.pyc +0 -0
  1448. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-315.pyc +0 -0
  1449. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1450. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/base.py +18 -0
  1451. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1452. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1453. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1454. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-315.pyc +0 -0
  1455. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-315.pyc +0 -0
  1456. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-315.pyc +0 -0
  1457. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1458. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1459. package/python/lib/python3.15/site-packages/pathspec/_meta.py +70 -0
  1460. package/python/lib/python3.15/site-packages/pathspec/_typing.py +64 -0
  1461. package/python/lib/python3.15/site-packages/pathspec/_version.py +5 -0
  1462. package/python/lib/python3.15/site-packages/pathspec/backend.py +51 -0
  1463. package/python/lib/python3.15/site-packages/pathspec/gitignore.py +172 -0
  1464. package/python/lib/python3.15/site-packages/pathspec/pathspec.py +527 -0
  1465. package/python/lib/python3.15/site-packages/pathspec/pattern.py +259 -0
  1466. package/python/lib/python3.15/site-packages/pathspec/patterns/__init__.py +12 -0
  1467. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/__init__.cpython-315.pyc +0 -0
  1468. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-315.pyc +0 -0
  1469. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1470. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-315.pyc +0 -0
  1471. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-315.pyc +0 -0
  1472. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-315.pyc +0 -0
  1473. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-315.pyc +0 -0
  1474. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1475. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1476. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1477. package/python/lib/python3.15/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1478. package/python/lib/python3.15/site-packages/pathspec/py.typed +1 -0
  1479. package/python/lib/python3.15/site-packages/pathspec/util.py +864 -0
  1480. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1481. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1482. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1483. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1484. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1485. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1486. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/INSTALLER +1 -0
  1487. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/METADATA +58 -0
  1488. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/RECORD +26 -0
  1489. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/REQUESTED +0 -0
  1490. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/WHEEL +5 -0
  1491. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/licenses/LICENSE +20 -0
  1492. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/top_level.txt +2 -0
  1493. package/python/lib/python3.15/site-packages/regex/__init__.py +3 -0
  1494. package/python/lib/python3.15/site-packages/regex/__pycache__/__init__.cpython-315.pyc +0 -0
  1495. package/python/lib/python3.15/site-packages/regex/__pycache__/_main.cpython-315.pyc +0 -0
  1496. package/python/lib/python3.15/site-packages/regex/__pycache__/_regex_core.cpython-315.pyc +0 -0
  1497. package/python/lib/python3.15/site-packages/regex/_main.py +759 -0
  1498. package/python/lib/python3.15/site-packages/regex/_regex.cpython-315-aarch64-linux-musl.so +0 -0
  1499. package/python/lib/python3.15/site-packages/regex/_regex_core.py +4689 -0
  1500. package/python/lib/python3.15/site-packages/regex/tests/__pycache__/test_regex.cpython-315.pyc +0 -0
  1501. package/python/lib/python3.15/site-packages/regex/tests/test_regex.py +4612 -0
  1502. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/INSTALLER +1 -0
  1503. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/METADATA +1060 -0
  1504. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/RECORD +12 -0
  1505. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/REQUESTED +0 -0
  1506. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/WHEEL +5 -0
  1507. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/licenses/LICENSE.txt +208 -0
  1508. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/top_level.txt +1 -0
  1509. package/python/lib/python3.15/site-packages/yaml/__init__.py +390 -0
  1510. package/python/lib/python3.15/site-packages/yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1511. package/python/lib/python3.15/site-packages/yaml/__pycache__/composer.cpython-315.pyc +0 -0
  1512. package/python/lib/python3.15/site-packages/yaml/__pycache__/constructor.cpython-315.pyc +0 -0
  1513. package/python/lib/python3.15/site-packages/yaml/__pycache__/cyaml.cpython-315.pyc +0 -0
  1514. package/python/lib/python3.15/site-packages/yaml/__pycache__/dumper.cpython-315.pyc +0 -0
  1515. package/python/lib/python3.15/site-packages/yaml/__pycache__/emitter.cpython-315.pyc +0 -0
  1516. package/python/lib/python3.15/site-packages/yaml/__pycache__/error.cpython-315.pyc +0 -0
  1517. package/python/lib/python3.15/site-packages/yaml/__pycache__/events.cpython-315.pyc +0 -0
  1518. package/python/lib/python3.15/site-packages/yaml/__pycache__/loader.cpython-315.pyc +0 -0
  1519. package/python/lib/python3.15/site-packages/yaml/__pycache__/nodes.cpython-315.pyc +0 -0
  1520. package/python/lib/python3.15/site-packages/yaml/__pycache__/parser.cpython-315.pyc +0 -0
  1521. package/python/lib/python3.15/site-packages/yaml/__pycache__/reader.cpython-315.pyc +0 -0
  1522. package/python/lib/python3.15/site-packages/yaml/__pycache__/representer.cpython-315.pyc +0 -0
  1523. package/python/lib/python3.15/site-packages/yaml/__pycache__/resolver.cpython-315.pyc +0 -0
  1524. package/python/lib/python3.15/site-packages/yaml/__pycache__/scanner.cpython-315.pyc +0 -0
  1525. package/python/lib/python3.15/site-packages/yaml/__pycache__/serializer.cpython-315.pyc +0 -0
  1526. package/python/lib/python3.15/site-packages/yaml/__pycache__/tokens.cpython-315.pyc +0 -0
  1527. package/python/lib/python3.15/site-packages/yaml/_yaml.cpython-315-aarch64-linux-musl.so +0 -0
  1528. package/python/lib/python3.15/site-packages/yaml/composer.py +139 -0
  1529. package/python/lib/python3.15/site-packages/yaml/constructor.py +751 -0
  1530. package/python/lib/python3.15/site-packages/yaml/cyaml.py +101 -0
  1531. package/python/lib/python3.15/site-packages/yaml/dumper.py +62 -0
  1532. package/python/lib/python3.15/site-packages/yaml/emitter.py +1137 -0
  1533. package/python/lib/python3.15/site-packages/yaml/error.py +75 -0
  1534. package/python/lib/python3.15/site-packages/yaml/events.py +86 -0
  1535. package/python/lib/python3.15/site-packages/yaml/loader.py +63 -0
  1536. package/python/lib/python3.15/site-packages/yaml/nodes.py +49 -0
  1537. package/python/lib/python3.15/site-packages/yaml/parser.py +589 -0
  1538. package/python/lib/python3.15/site-packages/yaml/reader.py +185 -0
  1539. package/python/lib/python3.15/site-packages/yaml/representer.py +389 -0
  1540. package/python/lib/python3.15/site-packages/yaml/resolver.py +227 -0
  1541. package/python/lib/python3.15/site-packages/yaml/scanner.py +1435 -0
  1542. package/python/lib/python3.15/site-packages/yaml/serializer.py +111 -0
  1543. package/python/lib/python3.15/site-packages/yaml/tokens.py +104 -0
  1544. package/python/lib/python3.15/site.py +1159 -0
  1545. package/python/lib/python3.15/smtplib.py +1121 -0
  1546. package/python/lib/python3.15/socket.py +1003 -0
  1547. package/python/lib/python3.15/socketserver.py +869 -0
  1548. package/python/lib/python3.15/sqlite3/__init__.py +57 -0
  1549. package/python/lib/python3.15/sqlite3/__main__.py +156 -0
  1550. package/python/lib/python3.15/sqlite3/__pycache__/__init__.cpython-315.pyc +0 -0
  1551. package/python/lib/python3.15/sqlite3/__pycache__/__main__.cpython-315.pyc +0 -0
  1552. package/python/lib/python3.15/sqlite3/__pycache__/_completer.cpython-315.pyc +0 -0
  1553. package/python/lib/python3.15/sqlite3/__pycache__/dbapi2.cpython-315.pyc +0 -0
  1554. package/python/lib/python3.15/sqlite3/__pycache__/dump.cpython-315.pyc +0 -0
  1555. package/python/lib/python3.15/sqlite3/_completer.py +111 -0
  1556. package/python/lib/python3.15/sqlite3/dbapi2.py +96 -0
  1557. package/python/lib/python3.15/sqlite3/dump.py +118 -0
  1558. package/python/lib/python3.15/ssl.py +1600 -0
  1559. package/python/lib/python3.15/stat.py +227 -0
  1560. package/python/lib/python3.15/statistics.py +1880 -0
  1561. package/python/lib/python3.15/string/__init__.py +323 -0
  1562. package/python/lib/python3.15/string/__pycache__/__init__.cpython-315.pyc +0 -0
  1563. package/python/lib/python3.15/string/__pycache__/templatelib.cpython-315.pyc +0 -0
  1564. package/python/lib/python3.15/string/templatelib.py +33 -0
  1565. package/python/lib/python3.15/stringprep.py +463 -0
  1566. package/python/lib/python3.15/struct.py +15 -0
  1567. package/python/lib/python3.15/subprocess.py +2509 -0
  1568. package/python/lib/python3.15/symtable.py +452 -0
  1569. package/python/lib/python3.15/sysconfig/__init__.py +797 -0
  1570. package/python/lib/python3.15/sysconfig/__main__.py +250 -0
  1571. package/python/lib/python3.15/sysconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1572. package/python/lib/python3.15/sysconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1573. package/python/lib/python3.15/tabnanny.py +345 -0
  1574. package/python/lib/python3.15/tarfile.py +3259 -0
  1575. package/python/lib/python3.15/tempfile.py +1057 -0
  1576. package/python/lib/python3.15/textwrap.py +475 -0
  1577. package/python/lib/python3.15/this.py +28 -0
  1578. package/python/lib/python3.15/threading.py +1780 -0
  1579. package/python/lib/python3.15/timeit.py +431 -0
  1580. package/python/lib/python3.15/token.py +144 -0
  1581. package/python/lib/python3.15/tokenize.py +644 -0
  1582. package/python/lib/python3.15/tomllib/__init__.py +10 -0
  1583. package/python/lib/python3.15/tomllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1584. package/python/lib/python3.15/tomllib/__pycache__/_parser.cpython-315.pyc +0 -0
  1585. package/python/lib/python3.15/tomllib/__pycache__/_re.cpython-315.pyc +0 -0
  1586. package/python/lib/python3.15/tomllib/__pycache__/_types.cpython-315.pyc +0 -0
  1587. package/python/lib/python3.15/tomllib/_parser.py +776 -0
  1588. package/python/lib/python3.15/tomllib/_re.py +119 -0
  1589. package/python/lib/python3.15/tomllib/_types.py +10 -0
  1590. package/python/lib/python3.15/tomllib/mypy.ini +15 -0
  1591. package/python/lib/python3.15/trace.py +749 -0
  1592. package/python/lib/python3.15/traceback.py +2090 -0
  1593. package/python/lib/python3.15/tracemalloc.py +560 -0
  1594. package/python/lib/python3.15/tty.py +73 -0
  1595. package/python/lib/python3.15/types.py +355 -0
  1596. package/python/lib/python3.15/typing.py +3949 -0
  1597. package/python/lib/python3.15/unittest/__init__.py +80 -0
  1598. package/python/lib/python3.15/unittest/__main__.py +18 -0
  1599. package/python/lib/python3.15/unittest/__pycache__/__init__.cpython-315.pyc +0 -0
  1600. package/python/lib/python3.15/unittest/__pycache__/__main__.cpython-315.pyc +0 -0
  1601. package/python/lib/python3.15/unittest/__pycache__/_log.cpython-315.pyc +0 -0
  1602. package/python/lib/python3.15/unittest/__pycache__/async_case.cpython-315.pyc +0 -0
  1603. package/python/lib/python3.15/unittest/__pycache__/case.cpython-315.pyc +0 -0
  1604. package/python/lib/python3.15/unittest/__pycache__/loader.cpython-315.pyc +0 -0
  1605. package/python/lib/python3.15/unittest/__pycache__/main.cpython-315.pyc +0 -0
  1606. package/python/lib/python3.15/unittest/__pycache__/mock.cpython-315.pyc +0 -0
  1607. package/python/lib/python3.15/unittest/__pycache__/result.cpython-315.pyc +0 -0
  1608. package/python/lib/python3.15/unittest/__pycache__/runner.cpython-315.pyc +0 -0
  1609. package/python/lib/python3.15/unittest/__pycache__/signals.cpython-315.pyc +0 -0
  1610. package/python/lib/python3.15/unittest/__pycache__/suite.cpython-315.pyc +0 -0
  1611. package/python/lib/python3.15/unittest/__pycache__/util.cpython-315.pyc +0 -0
  1612. package/python/lib/python3.15/unittest/_log.py +87 -0
  1613. package/python/lib/python3.15/unittest/async_case.py +158 -0
  1614. package/python/lib/python3.15/unittest/case.py +1652 -0
  1615. package/python/lib/python3.15/unittest/loader.py +491 -0
  1616. package/python/lib/python3.15/unittest/main.py +280 -0
  1617. package/python/lib/python3.15/unittest/mock.py +3212 -0
  1618. package/python/lib/python3.15/unittest/result.py +259 -0
  1619. package/python/lib/python3.15/unittest/runner.py +312 -0
  1620. package/python/lib/python3.15/unittest/signals.py +71 -0
  1621. package/python/lib/python3.15/unittest/suite.py +391 -0
  1622. package/python/lib/python3.15/unittest/util.py +187 -0
  1623. package/python/lib/python3.15/urllib/__init__.py +0 -0
  1624. package/python/lib/python3.15/urllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1625. package/python/lib/python3.15/urllib/__pycache__/error.cpython-315.pyc +0 -0
  1626. package/python/lib/python3.15/urllib/__pycache__/parse.cpython-315.pyc +0 -0
  1627. package/python/lib/python3.15/urllib/__pycache__/request.cpython-315.pyc +0 -0
  1628. package/python/lib/python3.15/urllib/__pycache__/response.cpython-315.pyc +0 -0
  1629. package/python/lib/python3.15/urllib/__pycache__/robotparser.cpython-315.pyc +0 -0
  1630. package/python/lib/python3.15/urllib/error.py +74 -0
  1631. package/python/lib/python3.15/urllib/parse.py +1407 -0
  1632. package/python/lib/python3.15/urllib/request.py +2177 -0
  1633. package/python/lib/python3.15/urllib/response.py +84 -0
  1634. package/python/lib/python3.15/urllib/robotparser.py +363 -0
  1635. package/python/lib/python3.15/uuid.py +1013 -0
  1636. package/python/lib/python3.15/venv/__init__.py +695 -0
  1637. package/python/lib/python3.15/venv/__main__.py +10 -0
  1638. package/python/lib/python3.15/venv/__pycache__/__init__.cpython-315.pyc +0 -0
  1639. package/python/lib/python3.15/venv/__pycache__/__main__.cpython-315.pyc +0 -0
  1640. package/python/lib/python3.15/venv/scripts/common/Activate.ps1 +248 -0
  1641. package/python/lib/python3.15/venv/scripts/common/activate +76 -0
  1642. package/python/lib/python3.15/venv/scripts/common/activate.fish +69 -0
  1643. package/python/lib/python3.15/venv/scripts/posix/activate.csh +29 -0
  1644. package/python/lib/python3.15/warnings.py +99 -0
  1645. package/python/lib/python3.15/wave.py +704 -0
  1646. package/python/lib/python3.15/weakref.py +576 -0
  1647. package/python/lib/python3.15/webbrowser.py +841 -0
  1648. package/python/lib/python3.15/wsgiref/__init__.py +25 -0
  1649. package/python/lib/python3.15/wsgiref/__pycache__/__init__.cpython-315.pyc +0 -0
  1650. package/python/lib/python3.15/wsgiref/__pycache__/handlers.cpython-315.pyc +0 -0
  1651. package/python/lib/python3.15/wsgiref/__pycache__/headers.cpython-315.pyc +0 -0
  1652. package/python/lib/python3.15/wsgiref/__pycache__/simple_server.cpython-315.pyc +0 -0
  1653. package/python/lib/python3.15/wsgiref/__pycache__/types.cpython-315.pyc +0 -0
  1654. package/python/lib/python3.15/wsgiref/__pycache__/util.cpython-315.pyc +0 -0
  1655. package/python/lib/python3.15/wsgiref/__pycache__/validate.cpython-315.pyc +0 -0
  1656. package/python/lib/python3.15/wsgiref/handlers.py +576 -0
  1657. package/python/lib/python3.15/wsgiref/headers.py +192 -0
  1658. package/python/lib/python3.15/wsgiref/simple_server.py +169 -0
  1659. package/python/lib/python3.15/wsgiref/types.py +54 -0
  1660. package/python/lib/python3.15/wsgiref/util.py +159 -0
  1661. package/python/lib/python3.15/wsgiref/validate.py +438 -0
  1662. package/python/lib/python3.15/xml/__init__.py +21 -0
  1663. package/python/lib/python3.15/xml/__pycache__/__init__.cpython-315.pyc +0 -0
  1664. package/python/lib/python3.15/xml/__pycache__/utils.cpython-315.pyc +0 -0
  1665. package/python/lib/python3.15/xml/dom/NodeFilter.py +27 -0
  1666. package/python/lib/python3.15/xml/dom/__init__.py +140 -0
  1667. package/python/lib/python3.15/xml/dom/__pycache__/NodeFilter.cpython-315.pyc +0 -0
  1668. package/python/lib/python3.15/xml/dom/__pycache__/__init__.cpython-315.pyc +0 -0
  1669. package/python/lib/python3.15/xml/dom/__pycache__/domreg.cpython-315.pyc +0 -0
  1670. package/python/lib/python3.15/xml/dom/__pycache__/expatbuilder.cpython-315.pyc +0 -0
  1671. package/python/lib/python3.15/xml/dom/__pycache__/minicompat.cpython-315.pyc +0 -0
  1672. package/python/lib/python3.15/xml/dom/__pycache__/minidom.cpython-315.pyc +0 -0
  1673. package/python/lib/python3.15/xml/dom/__pycache__/pulldom.cpython-315.pyc +0 -0
  1674. package/python/lib/python3.15/xml/dom/__pycache__/xmlbuilder.cpython-315.pyc +0 -0
  1675. package/python/lib/python3.15/xml/dom/domreg.py +99 -0
  1676. package/python/lib/python3.15/xml/dom/expatbuilder.py +964 -0
  1677. package/python/lib/python3.15/xml/dom/minicompat.py +109 -0
  1678. package/python/lib/python3.15/xml/dom/minidom.py +2027 -0
  1679. package/python/lib/python3.15/xml/dom/pulldom.py +350 -0
  1680. package/python/lib/python3.15/xml/dom/xmlbuilder.py +389 -0
  1681. package/python/lib/python3.15/xml/etree/ElementInclude.py +186 -0
  1682. package/python/lib/python3.15/xml/etree/ElementPath.py +430 -0
  1683. package/python/lib/python3.15/xml/etree/ElementTree.py +2111 -0
  1684. package/python/lib/python3.15/xml/etree/__init__.py +33 -0
  1685. package/python/lib/python3.15/xml/etree/__pycache__/ElementInclude.cpython-315.pyc +0 -0
  1686. package/python/lib/python3.15/xml/etree/__pycache__/ElementPath.cpython-315.pyc +0 -0
  1687. package/python/lib/python3.15/xml/etree/__pycache__/ElementTree.cpython-315.pyc +0 -0
  1688. package/python/lib/python3.15/xml/etree/__pycache__/__init__.cpython-315.pyc +0 -0
  1689. package/python/lib/python3.15/xml/etree/__pycache__/cElementTree.cpython-315.pyc +0 -0
  1690. package/python/lib/python3.15/xml/etree/cElementTree.py +3 -0
  1691. package/python/lib/python3.15/xml/parsers/__init__.py +8 -0
  1692. package/python/lib/python3.15/xml/parsers/__pycache__/__init__.cpython-315.pyc +0 -0
  1693. package/python/lib/python3.15/xml/parsers/__pycache__/expat.cpython-315.pyc +0 -0
  1694. package/python/lib/python3.15/xml/parsers/expat.py +8 -0
  1695. package/python/lib/python3.15/xml/sax/__init__.py +109 -0
  1696. package/python/lib/python3.15/xml/sax/__pycache__/__init__.cpython-315.pyc +0 -0
  1697. package/python/lib/python3.15/xml/sax/__pycache__/_exceptions.cpython-315.pyc +0 -0
  1698. package/python/lib/python3.15/xml/sax/__pycache__/expatreader.cpython-315.pyc +0 -0
  1699. package/python/lib/python3.15/xml/sax/__pycache__/handler.cpython-315.pyc +0 -0
  1700. package/python/lib/python3.15/xml/sax/__pycache__/saxutils.cpython-315.pyc +0 -0
  1701. package/python/lib/python3.15/xml/sax/__pycache__/xmlreader.cpython-315.pyc +0 -0
  1702. package/python/lib/python3.15/xml/sax/_exceptions.py +127 -0
  1703. package/python/lib/python3.15/xml/sax/expatreader.py +462 -0
  1704. package/python/lib/python3.15/xml/sax/handler.py +394 -0
  1705. package/python/lib/python3.15/xml/sax/saxutils.py +370 -0
  1706. package/python/lib/python3.15/xml/sax/xmlreader.py +379 -0
  1707. package/python/lib/python3.15/xml/utils.py +37 -0
  1708. package/python/lib/python3.15/xmlrpc/__init__.py +1 -0
  1709. package/python/lib/python3.15/xmlrpc/__pycache__/__init__.cpython-315.pyc +0 -0
  1710. package/python/lib/python3.15/xmlrpc/__pycache__/client.cpython-315.pyc +0 -0
  1711. package/python/lib/python3.15/xmlrpc/__pycache__/server.cpython-315.pyc +0 -0
  1712. package/python/lib/python3.15/xmlrpc/client.py +1503 -0
  1713. package/python/lib/python3.15/xmlrpc/server.py +1003 -0
  1714. package/python/lib/python3.15/zipapp.py +231 -0
  1715. package/python/lib/python3.15/zipfile/__init__.py +2444 -0
  1716. package/python/lib/python3.15/zipfile/__main__.py +4 -0
  1717. package/python/lib/python3.15/zipfile/__pycache__/__init__.cpython-315.pyc +0 -0
  1718. package/python/lib/python3.15/zipfile/__pycache__/__main__.cpython-315.pyc +0 -0
  1719. package/python/lib/python3.15/zipfile/_path/__init__.py +456 -0
  1720. package/python/lib/python3.15/zipfile/_path/__pycache__/__init__.cpython-315.pyc +0 -0
  1721. package/python/lib/python3.15/zipfile/_path/__pycache__/_functools.cpython-315.pyc +0 -0
  1722. package/python/lib/python3.15/zipfile/_path/__pycache__/glob.cpython-315.pyc +0 -0
  1723. package/python/lib/python3.15/zipfile/_path/_functools.py +31 -0
  1724. package/python/lib/python3.15/zipfile/_path/glob.py +113 -0
  1725. package/python/lib/python3.15/zipimport.py +849 -0
  1726. package/python/lib/python3.15/zoneinfo/__init__.py +34 -0
  1727. package/python/lib/python3.15/zoneinfo/__pycache__/__init__.cpython-315.pyc +0 -0
  1728. package/python/lib/python3.15/zoneinfo/__pycache__/_common.cpython-315.pyc +0 -0
  1729. package/python/lib/python3.15/zoneinfo/__pycache__/_tzpath.cpython-315.pyc +0 -0
  1730. package/python/lib/python3.15/zoneinfo/__pycache__/_zoneinfo.cpython-315.pyc +0 -0
  1731. package/python/lib/python3.15/zoneinfo/_common.py +172 -0
  1732. package/python/lib/python3.15/zoneinfo/_tzpath.py +193 -0
  1733. package/python/lib/python3.15/zoneinfo/_zoneinfo.py +779 -0
  1734. package/python/licenses/LICENSE.bdb.txt +126 -0
  1735. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1736. package/python/licenses/LICENSE.cpython.txt +771 -0
  1737. package/python/licenses/LICENSE.expat.txt +21 -0
  1738. package/python/licenses/LICENSE.libX11.txt +942 -0
  1739. package/python/licenses/LICENSE.libXau.txt +21 -0
  1740. package/python/licenses/LICENSE.libedit.txt +29 -0
  1741. package/python/licenses/LICENSE.libffi.txt +21 -0
  1742. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1743. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1744. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1745. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1746. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1747. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1748. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1749. package/python/licenses/LICENSE.tcl.txt +40 -0
  1750. package/python/licenses/LICENSE.tix.txt +54 -0
  1751. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1752. package/python/licenses/LICENSE.zlib.txt +22 -0
  1753. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2998 @@
1
+ # Module doctest.
2
+ # Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org).
3
+ # Major enhancements and refactoring by:
4
+ # Jim Fulton
5
+ # Edward Loper
6
+
7
+ # Provided as-is; use at your own risk; no warranty; no promises; enjoy!
8
+
9
+ r"""Module doctest -- a framework for running examples in docstrings.
10
+
11
+ In simplest use, end each module M to be tested with:
12
+
13
+ def _test():
14
+ import doctest
15
+ doctest.testmod()
16
+
17
+ if __name__ == "__main__":
18
+ _test()
19
+
20
+ Then running the module as a script will cause the examples in the
21
+ docstrings to get executed and verified:
22
+
23
+ python M.py
24
+
25
+ This won't display anything unless an example fails, in which case the
26
+ failing example(s) and the cause(s) of the failure(s) are printed to stdout
27
+ (why not stderr? because stderr is a lame hack <0.2 wink>), and the final
28
+ line of output is "Test failed.".
29
+
30
+ Run it with the -v switch instead:
31
+
32
+ python M.py -v
33
+
34
+ and a detailed report of all examples tried is printed to stdout, along
35
+ with assorted summaries at the end.
36
+
37
+ You can force verbose mode by passing "verbose=True" to testmod, or prohibit
38
+ it by passing "verbose=False". In either of those cases, sys.argv is not
39
+ examined by testmod.
40
+
41
+ There are a variety of other ways to run doctests, including integration
42
+ with the unittest framework, and support for running non-Python text
43
+ files containing doctests. There are also many ways to override parts
44
+ of doctest's default behaviors. See the Library Reference Manual for
45
+ details.
46
+ """
47
+
48
+ __docformat__ = 'reStructuredText en'
49
+
50
+ __all__ = [
51
+ # 0, Option Flags
52
+ 'register_optionflag',
53
+ 'DONT_ACCEPT_TRUE_FOR_1',
54
+ 'DONT_ACCEPT_BLANKLINE',
55
+ 'NORMALIZE_WHITESPACE',
56
+ 'ELLIPSIS',
57
+ 'SKIP',
58
+ 'IGNORE_EXCEPTION_DETAIL',
59
+ 'COMPARISON_FLAGS',
60
+ 'REPORT_UDIFF',
61
+ 'REPORT_CDIFF',
62
+ 'REPORT_NDIFF',
63
+ 'REPORT_ONLY_FIRST_FAILURE',
64
+ 'REPORTING_FLAGS',
65
+ 'FAIL_FAST',
66
+ # 1. Utility Functions
67
+ # 2. Example & DocTest
68
+ 'Example',
69
+ 'DocTest',
70
+ # 3. Doctest Parser
71
+ 'DocTestParser',
72
+ # 4. Doctest Finder
73
+ 'DocTestFinder',
74
+ # 5. Doctest Runner
75
+ 'DocTestRunner',
76
+ 'OutputChecker',
77
+ 'DocTestFailure',
78
+ 'UnexpectedException',
79
+ 'DebugRunner',
80
+ # 6. Test Functions
81
+ 'testmod',
82
+ 'testfile',
83
+ 'run_docstring_examples',
84
+ # 7. Unittest Support
85
+ 'DocTestSuite',
86
+ 'DocFileSuite',
87
+ 'set_unittest_reportflags',
88
+ # 8. Debugging Support
89
+ 'script_from_examples',
90
+ 'testsource',
91
+ 'debug_src',
92
+ 'debug',
93
+ ]
94
+
95
+ import __future__
96
+ import difflib
97
+ import functools
98
+ import inspect
99
+ import linecache
100
+ import os
101
+ import pdb
102
+ import re
103
+ import sys
104
+ import traceback
105
+ import types
106
+ import unittest
107
+ from io import StringIO, TextIOWrapper, BytesIO
108
+ from collections import namedtuple
109
+ lazy import _colorize # Used in doctests
110
+ lazy from _colorize import ANSIColors, can_colorize
111
+
112
+
113
+ class TestResults(namedtuple('TestResults', 'failed attempted')):
114
+ def __new__(cls, failed, attempted, *, skipped=0):
115
+ results = super().__new__(cls, failed, attempted)
116
+ results.skipped = skipped
117
+ return results
118
+
119
+ def __repr__(self):
120
+ if self.skipped:
121
+ return (f'TestResults(failed={self.failed}, '
122
+ f'attempted={self.attempted}, '
123
+ f'skipped={self.skipped})')
124
+ else:
125
+ # Leave the repr() unchanged for backward compatibility
126
+ # if skipped is zero
127
+ return super().__repr__()
128
+
129
+
130
+ # There are 4 basic classes:
131
+ # - Example: a <source, want> pair, plus an intra-docstring line number.
132
+ # - DocTest: a collection of examples, parsed from a docstring, plus
133
+ # info about where the docstring came from (name, filename, lineno).
134
+ # - DocTestFinder: extracts DocTests from a given object's docstring and
135
+ # its contained objects' docstrings.
136
+ # - DocTestRunner: runs DocTest cases, and accumulates statistics.
137
+ #
138
+ # So the basic picture is:
139
+ #
140
+ # list of:
141
+ # +------+ +---------+ +-------+
142
+ # |object| --DocTestFinder-> | DocTest | --DocTestRunner-> |results|
143
+ # +------+ +---------+ +-------+
144
+ # | Example |
145
+ # | ... |
146
+ # | Example |
147
+ # +---------+
148
+
149
+ # Option constants.
150
+
151
+ OPTIONFLAGS_BY_NAME = {}
152
+ def register_optionflag(name):
153
+ # Create a new flag unless `name` is already known.
154
+ return OPTIONFLAGS_BY_NAME.setdefault(name, 1 << len(OPTIONFLAGS_BY_NAME))
155
+
156
+ DONT_ACCEPT_TRUE_FOR_1 = register_optionflag('DONT_ACCEPT_TRUE_FOR_1')
157
+ DONT_ACCEPT_BLANKLINE = register_optionflag('DONT_ACCEPT_BLANKLINE')
158
+ NORMALIZE_WHITESPACE = register_optionflag('NORMALIZE_WHITESPACE')
159
+ ELLIPSIS = register_optionflag('ELLIPSIS')
160
+ SKIP = register_optionflag('SKIP')
161
+ IGNORE_EXCEPTION_DETAIL = register_optionflag('IGNORE_EXCEPTION_DETAIL')
162
+
163
+ COMPARISON_FLAGS = (DONT_ACCEPT_TRUE_FOR_1 |
164
+ DONT_ACCEPT_BLANKLINE |
165
+ NORMALIZE_WHITESPACE |
166
+ ELLIPSIS |
167
+ SKIP |
168
+ IGNORE_EXCEPTION_DETAIL)
169
+
170
+ REPORT_UDIFF = register_optionflag('REPORT_UDIFF')
171
+ REPORT_CDIFF = register_optionflag('REPORT_CDIFF')
172
+ REPORT_NDIFF = register_optionflag('REPORT_NDIFF')
173
+ REPORT_ONLY_FIRST_FAILURE = register_optionflag('REPORT_ONLY_FIRST_FAILURE')
174
+ FAIL_FAST = register_optionflag('FAIL_FAST')
175
+
176
+ REPORTING_FLAGS = (REPORT_UDIFF |
177
+ REPORT_CDIFF |
178
+ REPORT_NDIFF |
179
+ REPORT_ONLY_FIRST_FAILURE |
180
+ FAIL_FAST)
181
+
182
+ # Special string markers for use in `want` strings:
183
+ BLANKLINE_MARKER = '<BLANKLINE>'
184
+ ELLIPSIS_MARKER = '...'
185
+
186
+ ######################################################################
187
+ ## Table of Contents
188
+ ######################################################################
189
+ # 1. Utility Functions
190
+ # 2. Example & DocTest -- store test cases
191
+ # 3. DocTest Parser -- extracts examples from strings
192
+ # 4. DocTest Finder -- extracts test cases from objects
193
+ # 5. DocTest Runner -- runs test cases
194
+ # 6. Test Functions -- convenient wrappers for testing
195
+ # 7. Unittest Support
196
+ # 8. Debugging Support
197
+ # 9. Example Usage
198
+
199
+ ######################################################################
200
+ ## 1. Utility Functions
201
+ ######################################################################
202
+
203
+ def _extract_future_flags(globs):
204
+ """
205
+ Return the compiler-flags associated with the future features that
206
+ have been imported into the given namespace (globs).
207
+ """
208
+ flags = 0
209
+ for fname in __future__.all_feature_names:
210
+ feature = globs.get(fname, None)
211
+ if feature is getattr(__future__, fname):
212
+ flags |= feature.compiler_flag
213
+ return flags
214
+
215
+ def _normalize_module(module, depth=2):
216
+ """
217
+ Return the module specified by `module`. In particular:
218
+ - If `module` is a module, then return module.
219
+ - If `module` is a string, then import and return the
220
+ module with that name.
221
+ - If `module` is None, then return the calling module.
222
+ The calling module is assumed to be the module of
223
+ the stack frame at the given depth in the call stack.
224
+ """
225
+ if inspect.ismodule(module):
226
+ return module
227
+ elif isinstance(module, str):
228
+ return __import__(module, globals(), locals(), ["*"])
229
+ elif module is None:
230
+ try:
231
+ try:
232
+ return sys.modules[sys._getframemodulename(depth)]
233
+ except AttributeError:
234
+ return sys.modules[sys._getframe(depth).f_globals['__name__']]
235
+ except KeyError:
236
+ pass
237
+ else:
238
+ raise TypeError("Expected a module, string, or None")
239
+
240
+ def _load_testfile(filename, package, module_relative, encoding):
241
+ if module_relative:
242
+ package = _normalize_module(package, 3)
243
+ filename = _module_relative_path(package, filename)
244
+ if (loader := getattr(package, '__loader__', None)) is None:
245
+ try:
246
+ loader = package.__spec__.loader
247
+ except AttributeError:
248
+ pass
249
+ if hasattr(loader, 'get_data'):
250
+ file_contents = loader.get_data(filename)
251
+ # get_data() opens files as 'rb', so one must do the equivalent
252
+ # conversion as universal newlines would do.
253
+ return TextIOWrapper(BytesIO(file_contents), encoding=encoding, newline=None).read(), filename
254
+ with open(filename, encoding=encoding) as f:
255
+ return f.read(), filename
256
+
257
+ def _indent(s, indent=4):
258
+ """
259
+ Add the given number of space characters to the beginning of
260
+ every non-blank line in `s`, and return the result.
261
+ """
262
+ # This regexp matches the start of non-blank lines:
263
+ return re.sub('(?m)^(?!$)', indent*' ', s)
264
+
265
+ def _exception_traceback(exc_info):
266
+ """
267
+ Return a string containing a traceback message for the given
268
+ exc_info tuple (as returned by sys.exc_info()).
269
+ """
270
+ # Get a traceback message.
271
+ excout = StringIO()
272
+ exc_type, exc_val, exc_tb = exc_info
273
+ traceback.print_exception(exc_type, exc_val, exc_tb, file=excout)
274
+ return excout.getvalue()
275
+
276
+ # Override some StringIO methods.
277
+ class _SpoofOut(StringIO):
278
+ def getvalue(self):
279
+ result = StringIO.getvalue(self)
280
+ # If anything at all was written, make sure there's a trailing
281
+ # newline. There's no way for the expected output to indicate
282
+ # that a trailing newline is missing.
283
+ if result and not result.endswith("\n"):
284
+ result += "\n"
285
+ return result
286
+
287
+ def truncate(self, size=None):
288
+ if size is not None:
289
+ self.seek(size)
290
+ StringIO.truncate(self)
291
+
292
+ # Worst-case linear-time ellipsis matching.
293
+ def _ellipsis_match(want, got):
294
+ """
295
+ Essentially the only subtle case:
296
+ >>> _ellipsis_match('aa...aa', 'aaa')
297
+ False
298
+ """
299
+ if ELLIPSIS_MARKER not in want:
300
+ return want == got
301
+
302
+ # Find "the real" strings.
303
+ ws = want.split(ELLIPSIS_MARKER)
304
+ assert len(ws) >= 2
305
+
306
+ # Deal with exact matches possibly needed at one or both ends.
307
+ startpos, endpos = 0, len(got)
308
+ w = ws[0]
309
+ if w: # starts with exact match
310
+ if got.startswith(w):
311
+ startpos = len(w)
312
+ del ws[0]
313
+ else:
314
+ return False
315
+ w = ws[-1]
316
+ if w: # ends with exact match
317
+ if got.endswith(w):
318
+ endpos -= len(w)
319
+ del ws[-1]
320
+ else:
321
+ return False
322
+
323
+ if startpos > endpos:
324
+ # Exact end matches required more characters than we have, as in
325
+ # _ellipsis_match('aa...aa', 'aaa')
326
+ return False
327
+
328
+ # For the rest, we only need to find the leftmost non-overlapping
329
+ # match for each piece. If there's no overall match that way alone,
330
+ # there's no overall match period.
331
+ for w in ws:
332
+ # w may be '' at times, if there are consecutive ellipses, or
333
+ # due to an ellipsis at the start or end of `want`. That's OK.
334
+ # Search for an empty string succeeds, and doesn't change startpos.
335
+ startpos = got.find(w, startpos, endpos)
336
+ if startpos < 0:
337
+ return False
338
+ startpos += len(w)
339
+
340
+ return True
341
+
342
+ def _comment_line(line):
343
+ "Return a commented form of the given line"
344
+ line = line.rstrip()
345
+ if line:
346
+ return '# '+line
347
+ else:
348
+ return '#'
349
+
350
+ def _strip_exception_details(msg):
351
+ # Support for IGNORE_EXCEPTION_DETAIL.
352
+ # Get rid of everything except the exception name; in particular, drop
353
+ # the possibly dotted module path (if any) and the exception message (if
354
+ # any). We assume that a colon is never part of a dotted name, or of an
355
+ # exception name.
356
+ # E.g., given
357
+ # "foo.bar.MyError: la di da"
358
+ # return "MyError"
359
+ # Or for "abc.def" or "abc.def:\n" return "def".
360
+
361
+ start, end = 0, len(msg)
362
+ # The exception name must appear on the first line.
363
+ i = msg.find("\n")
364
+ if i >= 0:
365
+ end = i
366
+ # retain up to the first colon (if any)
367
+ i = msg.find(':', 0, end)
368
+ if i >= 0:
369
+ end = i
370
+ # retain just the exception name
371
+ i = msg.rfind('.', 0, end)
372
+ if i >= 0:
373
+ start = i+1
374
+ return msg[start: end]
375
+
376
+ class _OutputRedirectingPdb(pdb.Pdb):
377
+ """
378
+ A specialized version of the python debugger that redirects stdout
379
+ to a given stream when interacting with the user. Stdout is *not*
380
+ redirected when traced code is executed.
381
+ """
382
+ def __init__(self, out):
383
+ self.__out = out
384
+ self.__debugger_used = False
385
+ # do not play signal games in the pdb
386
+ super().__init__(stdout=out, nosigint=True)
387
+ # still use input() to get user input
388
+ self.use_rawinput = 1
389
+
390
+ def set_trace(self, frame=None, *, commands=None):
391
+ self.__debugger_used = True
392
+ if frame is None:
393
+ frame = sys._getframe().f_back
394
+ pdb.Pdb.set_trace(self, frame, commands=commands)
395
+
396
+ def set_continue(self):
397
+ # Calling set_continue unconditionally would break unit test
398
+ # coverage reporting, as Bdb.set_continue calls sys.settrace(None).
399
+ if self.__debugger_used:
400
+ pdb.Pdb.set_continue(self)
401
+
402
+ def trace_dispatch(self, *args):
403
+ # Redirect stdout to the given stream.
404
+ save_stdout = sys.stdout
405
+ sys.stdout = self.__out
406
+ # Call Pdb's trace dispatch method.
407
+ try:
408
+ return pdb.Pdb.trace_dispatch(self, *args)
409
+ finally:
410
+ sys.stdout = save_stdout
411
+
412
+ # [XX] Normalize with respect to os.path.pardir?
413
+ def _module_relative_path(module, test_path):
414
+ if not inspect.ismodule(module):
415
+ raise TypeError('Expected a module: %r' % module)
416
+ if test_path.startswith('/'):
417
+ raise ValueError('Module-relative files may not have absolute paths')
418
+
419
+ # Normalize the path. On Windows, replace "/" with "\".
420
+ test_path = os.path.join(*(test_path.split('/')))
421
+
422
+ # Find the base directory for the path.
423
+ if hasattr(module, '__file__'):
424
+ # A normal module/package
425
+ basedir = os.path.split(module.__file__)[0]
426
+ elif module.__name__ == '__main__':
427
+ # An interactive session.
428
+ if len(sys.argv)>0 and sys.argv[0] != '':
429
+ basedir = os.path.split(sys.argv[0])[0]
430
+ else:
431
+ basedir = os.curdir
432
+ else:
433
+ if hasattr(module, '__path__'):
434
+ for directory in module.__path__:
435
+ fullpath = os.path.join(directory, test_path)
436
+ if os.path.exists(fullpath):
437
+ return fullpath
438
+
439
+ # A module w/o __file__ (this includes builtins)
440
+ raise ValueError("Can't resolve paths relative to the module "
441
+ "%r (it has no __file__)"
442
+ % module.__name__)
443
+
444
+ # Combine the base directory and the test path.
445
+ return os.path.join(basedir, test_path)
446
+
447
+ ######################################################################
448
+ ## 2. Example & DocTest
449
+ ######################################################################
450
+ ## - An "example" is a <source, want> pair, where "source" is a
451
+ ## fragment of source code, and "want" is the expected output for
452
+ ## "source." The Example class also includes information about
453
+ ## where the example was extracted from.
454
+ ##
455
+ ## - A "doctest" is a collection of examples, typically extracted from
456
+ ## a string (such as an object's docstring). The DocTest class also
457
+ ## includes information about where the string was extracted from.
458
+
459
+ class Example:
460
+ """
461
+ A single doctest example, consisting of source code and expected
462
+ output. `Example` defines the following attributes:
463
+
464
+ - source: A single Python statement, always ending with a newline.
465
+ The constructor adds a newline if needed.
466
+
467
+ - want: The expected output from running the source code (either
468
+ from stdout, or a traceback in case of exception). `want` ends
469
+ with a newline unless it's empty, in which case it's an empty
470
+ string. The constructor adds a newline if needed.
471
+
472
+ - exc_msg: The exception message generated by the example, if
473
+ the example is expected to generate an exception; or `None` if
474
+ it is not expected to generate an exception. This exception
475
+ message is compared against the return value of
476
+ `traceback.format_exception_only()`. `exc_msg` ends with a
477
+ newline unless it's `None`. The constructor adds a newline
478
+ if needed.
479
+
480
+ - lineno: The line number within the DocTest string containing
481
+ this Example where the Example begins. This line number is
482
+ zero-based, with respect to the beginning of the DocTest.
483
+
484
+ - indent: The example's indentation in the DocTest string.
485
+ I.e., the number of space characters that precede the
486
+ example's first prompt.
487
+
488
+ - options: A dictionary mapping from option flags to True or
489
+ False, which is used to override default options for this
490
+ example. Any option flags not contained in this dictionary
491
+ are left at their default value (as specified by the
492
+ DocTestRunner's optionflags). By default, no options are set.
493
+ """
494
+ def __init__(self, source, want, exc_msg=None, lineno=0, indent=0,
495
+ options=None):
496
+ # Normalize inputs.
497
+ if not source.endswith('\n'):
498
+ source += '\n'
499
+ if want and not want.endswith('\n'):
500
+ want += '\n'
501
+ if exc_msg is not None and not exc_msg.endswith('\n'):
502
+ exc_msg += '\n'
503
+ # Store properties.
504
+ self.source = source
505
+ self.want = want
506
+ self.lineno = lineno
507
+ self.indent = indent
508
+ if options is None: options = {}
509
+ self.options = options
510
+ self.exc_msg = exc_msg
511
+
512
+ def __eq__(self, other):
513
+ if type(self) is not type(other):
514
+ return NotImplemented
515
+
516
+ return self.source == other.source and \
517
+ self.want == other.want and \
518
+ self.lineno == other.lineno and \
519
+ self.indent == other.indent and \
520
+ self.options == other.options and \
521
+ self.exc_msg == other.exc_msg
522
+
523
+ def __hash__(self):
524
+ return hash((self.source, self.want, self.lineno, self.indent,
525
+ self.exc_msg))
526
+
527
+ class DocTest:
528
+ """
529
+ A collection of doctest examples that should be run in a single
530
+ namespace. Each `DocTest` defines the following attributes:
531
+
532
+ - examples: the list of examples.
533
+
534
+ - globs: The namespace (aka globals) that the examples should
535
+ be run in.
536
+
537
+ - name: A name identifying the DocTest (typically, the name of
538
+ the object whose docstring this DocTest was extracted from).
539
+
540
+ - filename: The name of the file that this DocTest was extracted
541
+ from, or `None` if the filename is unknown.
542
+
543
+ - lineno: The line number within filename where this DocTest
544
+ begins, or `None` if the line number is unavailable. This
545
+ line number is zero-based, with respect to the beginning of
546
+ the file.
547
+
548
+ - docstring: The string that the examples were extracted from,
549
+ or `None` if the string is unavailable.
550
+ """
551
+ def __init__(self, examples, globs, name, filename, lineno, docstring):
552
+ """
553
+ Create a new DocTest containing the given examples. The
554
+ DocTest's globals are initialized with a copy of `globs`.
555
+ """
556
+ assert not isinstance(examples, str), \
557
+ "DocTest no longer accepts str; use DocTestParser instead"
558
+ self.examples = examples
559
+ self.docstring = docstring
560
+ self.globs = globs.copy()
561
+ self.name = name
562
+ self.filename = filename
563
+ self.lineno = lineno
564
+
565
+ def __repr__(self):
566
+ if len(self.examples) == 0:
567
+ examples = 'no examples'
568
+ elif len(self.examples) == 1:
569
+ examples = '1 example'
570
+ else:
571
+ examples = '%d examples' % len(self.examples)
572
+ return ('<%s %s from %s:%s (%s)>' %
573
+ (self.__class__.__name__,
574
+ self.name, self.filename, self.lineno, examples))
575
+
576
+ def __eq__(self, other):
577
+ if type(self) is not type(other):
578
+ return NotImplemented
579
+
580
+ return self.examples == other.examples and \
581
+ self.docstring == other.docstring and \
582
+ self.globs == other.globs and \
583
+ self.name == other.name and \
584
+ self.filename == other.filename and \
585
+ self.lineno == other.lineno
586
+
587
+ def __hash__(self):
588
+ return hash((self.docstring, self.name, self.filename, self.lineno))
589
+
590
+ # This lets us sort tests by name:
591
+ def __lt__(self, other):
592
+ if not isinstance(other, DocTest):
593
+ return NotImplemented
594
+ self_lno = self.lineno if self.lineno is not None else -1
595
+ other_lno = other.lineno if other.lineno is not None else -1
596
+ return ((self.name, self.filename, self_lno, id(self))
597
+ <
598
+ (other.name, other.filename, other_lno, id(other)))
599
+
600
+ ######################################################################
601
+ ## 3. DocTestParser
602
+ ######################################################################
603
+
604
+ class DocTestParser:
605
+ """
606
+ A class used to parse strings containing doctest examples.
607
+ """
608
+ # This regular expression is used to find doctest examples in a
609
+ # string. It defines three groups: `source` is the source code
610
+ # (including leading indentation and prompts); `indent` is the
611
+ # indentation of the first (PS1) line of the source code; and
612
+ # `want` is the expected output (including leading indentation).
613
+ _EXAMPLE_RE = re.compile(r'''
614
+ # Source consists of a PS1 line followed by zero or more PS2 lines.
615
+ (?P<source>
616
+ (?:^(?P<indent> [ ]*) >>> .*) # PS1 line
617
+ (?:\n [ ]* \.\.\. .*)*) # PS2 lines
618
+ \n?
619
+ # Want consists of any non-blank lines that do not start with PS1.
620
+ (?P<want> (?:(?![ ]*$) # Not a blank line
621
+ (?![ ]*>>>) # Not a line starting with PS1
622
+ .+$\n? # But any other line
623
+ )*)
624
+ ''', re.MULTILINE | re.VERBOSE)
625
+
626
+ # A regular expression for handling `want` strings that contain
627
+ # expected exceptions. It divides `want` into three pieces:
628
+ # - the traceback header line (`hdr`)
629
+ # - the traceback stack (`stack`)
630
+ # - the exception message (`msg`), as generated by
631
+ # traceback.format_exception_only()
632
+ # `msg` may have multiple lines. We assume/require that the
633
+ # exception message is the first non-indented line starting with a word
634
+ # character following the traceback header line.
635
+ _EXCEPTION_RE = re.compile(r"""
636
+ # Grab the traceback header. Different versions of Python have
637
+ # said different things on the first traceback line.
638
+ ^(?P<hdr> Traceback\ \(
639
+ (?: most\ recent\ call\ last
640
+ | innermost\ last
641
+ ) \) :
642
+ )
643
+ \s* $ # toss trailing whitespace on the header.
644
+ (?P<stack> .*?) # don't blink: absorb stuff until...
645
+ ^ (?P<msg> \w+ .*) # a line *starts* with alphanum.
646
+ """, re.VERBOSE | re.MULTILINE | re.DOTALL)
647
+
648
+ # A callable returning a true value iff its argument is a blank line
649
+ # or contains a single comment.
650
+ _IS_BLANK_OR_COMMENT = re.compile(r'^[ ]*(#.*)?$').match
651
+
652
+ def parse(self, string, name='<string>'):
653
+ """
654
+ Divide the given string into examples and intervening text,
655
+ and return them as a list of alternating Examples and strings.
656
+ Line numbers for the Examples are 0-based. The optional
657
+ argument `name` is a name identifying this string, and is only
658
+ used for error messages.
659
+ """
660
+ string = string.expandtabs()
661
+ # If all lines begin with the same indentation, then strip it.
662
+ min_indent = self._min_indent(string)
663
+ if min_indent > 0:
664
+ string = '\n'.join([l[min_indent:] for l in string.split('\n')])
665
+
666
+ output = []
667
+ charno, lineno = 0, 0
668
+ # Find all doctest examples in the string:
669
+ for m in self._EXAMPLE_RE.finditer(string):
670
+ # Add the pre-example text to `output`.
671
+ output.append(string[charno:m.start()])
672
+ # Update lineno (lines before this example)
673
+ lineno += string.count('\n', charno, m.start())
674
+ # Extract info from the regexp match.
675
+ (source, options, want, exc_msg) = \
676
+ self._parse_example(m, name, lineno)
677
+ # Create an Example, and add it to the list.
678
+ if not self._IS_BLANK_OR_COMMENT(source):
679
+ output.append( Example(source, want, exc_msg,
680
+ lineno=lineno,
681
+ indent=min_indent+len(m.group('indent')),
682
+ options=options) )
683
+ # Update lineno (lines inside this example)
684
+ lineno += string.count('\n', m.start(), m.end())
685
+ # Update charno.
686
+ charno = m.end()
687
+ # Add any remaining post-example text to `output`.
688
+ output.append(string[charno:])
689
+ return output
690
+
691
+ def get_doctest(self, string, globs, name, filename, lineno):
692
+ """
693
+ Extract all doctest examples from the given string, and
694
+ collect them into a `DocTest` object.
695
+
696
+ `globs`, `name`, `filename`, and `lineno` are attributes for
697
+ the new `DocTest` object. See the documentation for `DocTest`
698
+ for more information.
699
+ """
700
+ return DocTest(self.get_examples(string, name), globs,
701
+ name, filename, lineno, string)
702
+
703
+ def get_examples(self, string, name='<string>'):
704
+ """
705
+ Extract all doctest examples from the given string, and return
706
+ them as a list of `Example` objects. Line numbers are
707
+ 0-based, because it's most common in doctests that nothing
708
+ interesting appears on the same line as opening triple-quote,
709
+ and so the first interesting line is called \"line 1\" then.
710
+
711
+ The optional argument `name` is a name identifying this
712
+ string, and is only used for error messages.
713
+ """
714
+ return [x for x in self.parse(string, name)
715
+ if isinstance(x, Example)]
716
+
717
+ def _parse_example(self, m, name, lineno):
718
+ """
719
+ Given a regular expression match from `_EXAMPLE_RE` (`m`),
720
+ return a pair `(source, want)`, where `source` is the matched
721
+ example's source code (with prompts and indentation stripped);
722
+ and `want` is the example's expected output (with indentation
723
+ stripped).
724
+
725
+ `name` is the string's name, and `lineno` is the line number
726
+ where the example starts; both are used for error messages.
727
+ """
728
+ # Get the example's indentation level.
729
+ indent = len(m.group('indent'))
730
+
731
+ # Divide source into lines; check that they're properly
732
+ # indented; and then strip their indentation & prompts.
733
+ source_lines = m.group('source').split('\n')
734
+ self._check_prompt_blank(source_lines, indent, name, lineno)
735
+ self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)
736
+ source = '\n'.join([sl[indent+4:] for sl in source_lines])
737
+
738
+ # Divide want into lines; check that it's properly indented; and
739
+ # then strip the indentation. Spaces before the last newline should
740
+ # be preserved, so plain rstrip() isn't good enough.
741
+ want = m.group('want')
742
+ want_lines = want.split('\n')
743
+ if len(want_lines) > 1 and re.match(r' *$', want_lines[-1]):
744
+ del want_lines[-1] # forget final newline & spaces after it
745
+ self._check_prefix(want_lines, ' '*indent, name,
746
+ lineno + len(source_lines))
747
+ want = '\n'.join([wl[indent:] for wl in want_lines])
748
+
749
+ # If `want` contains a traceback message, then extract it.
750
+ m = self._EXCEPTION_RE.match(want)
751
+ if m:
752
+ exc_msg = m.group('msg')
753
+ else:
754
+ exc_msg = None
755
+
756
+ # Extract options from the source.
757
+ options = self._find_options(source, name, lineno)
758
+
759
+ return source, options, want, exc_msg
760
+
761
+ # This regular expression looks for option directives in the
762
+ # source code of an example. Option directives are comments
763
+ # starting with "doctest:". Warning: this may give false
764
+ # positives for string-literals that contain the string
765
+ # "#doctest:". Eliminating these false positives would require
766
+ # actually parsing the string; but we limit them by ignoring any
767
+ # line containing "#doctest:" that is *followed* by a quote mark.
768
+ _OPTION_DIRECTIVE_RE = re.compile(r'#\s*doctest:\s*([^\n\'"]*)$',
769
+ re.MULTILINE)
770
+
771
+ def _find_options(self, source, name, lineno):
772
+ """
773
+ Return a dictionary containing option overrides extracted from
774
+ option directives in the given source string.
775
+
776
+ `name` is the string's name, and `lineno` is the line number
777
+ where the example starts; both are used for error messages.
778
+ """
779
+ options = {}
780
+ # (note: with the current regexp, this will match at most once:)
781
+ for m in self._OPTION_DIRECTIVE_RE.finditer(source):
782
+ option_strings = m.group(1).replace(',', ' ').split()
783
+ for option in option_strings:
784
+ if (option[0] not in '+-' or
785
+ option[1:] not in OPTIONFLAGS_BY_NAME):
786
+ raise ValueError('line %r of the doctest for %s '
787
+ 'has an invalid option: %r' %
788
+ (lineno+1, name, option))
789
+ flag = OPTIONFLAGS_BY_NAME[option[1:]]
790
+ options[flag] = (option[0] == '+')
791
+ if options and self._IS_BLANK_OR_COMMENT(source):
792
+ raise ValueError('line %r of the doctest for %s has an option '
793
+ 'directive on a line with no example: %r' %
794
+ (lineno, name, source))
795
+ return options
796
+
797
+ # This regular expression finds the indentation of every non-blank
798
+ # line in a string.
799
+ _INDENT_RE = re.compile(r'^([ ]*)(?=\S)', re.MULTILINE)
800
+
801
+ def _min_indent(self, s):
802
+ "Return the minimum indentation of any non-blank line in `s`"
803
+ indents = [len(indent) for indent in self._INDENT_RE.findall(s)]
804
+ if len(indents) > 0:
805
+ return min(indents)
806
+ else:
807
+ return 0
808
+
809
+ def _check_prompt_blank(self, lines, indent, name, lineno):
810
+ """
811
+ Given the lines of a source string (including prompts and
812
+ leading indentation), check to make sure that every prompt is
813
+ followed by a space character. If any line is not followed by
814
+ a space character, then raise ValueError.
815
+ """
816
+ for i, line in enumerate(lines):
817
+ if len(line) >= indent+4 and line[indent+3] != ' ':
818
+ raise ValueError('line %r of the docstring for %s '
819
+ 'lacks blank after %s: %r' %
820
+ (lineno+i+1, name,
821
+ line[indent:indent+3], line))
822
+
823
+ def _check_prefix(self, lines, prefix, name, lineno):
824
+ """
825
+ Check that every line in the given list starts with the given
826
+ prefix; if any line does not, then raise a ValueError.
827
+ """
828
+ for i, line in enumerate(lines):
829
+ if line and not line.startswith(prefix):
830
+ raise ValueError('line %r of the docstring for %s has '
831
+ 'inconsistent leading whitespace: %r' %
832
+ (lineno+i+1, name, line))
833
+
834
+
835
+ ######################################################################
836
+ ## 4. DocTest Finder
837
+ ######################################################################
838
+
839
+ class DocTestFinder:
840
+ """
841
+ A class used to extract the DocTests that are relevant to a given
842
+ object, from its docstring and the docstrings of its contained
843
+ objects. Doctests can currently be extracted from the following
844
+ object types: modules, functions, classes, methods, staticmethods,
845
+ classmethods, and properties.
846
+ """
847
+
848
+ def __init__(self, verbose=False, parser=DocTestParser(),
849
+ recurse=True, exclude_empty=True):
850
+ """
851
+ Create a new doctest finder.
852
+
853
+ The optional argument `parser` specifies a class or
854
+ function that should be used to create new DocTest objects (or
855
+ objects that implement the same interface as DocTest). The
856
+ signature for this factory function should match the signature
857
+ of the DocTest constructor.
858
+
859
+ If the optional argument `recurse` is false, then `find` will
860
+ only examine the given object, and not any contained objects.
861
+
862
+ If the optional argument `exclude_empty` is false, then `find`
863
+ will include tests for objects with empty docstrings.
864
+ """
865
+ self._parser = parser
866
+ self._verbose = verbose
867
+ self._recurse = recurse
868
+ self._exclude_empty = exclude_empty
869
+
870
+ def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
871
+ """
872
+ Return a list of the DocTests that are defined by the given
873
+ object's docstring, or by any of its contained objects'
874
+ docstrings.
875
+
876
+ The optional parameter `module` is the module that contains
877
+ the given object. If the module is not specified or is None, then
878
+ the test finder will attempt to automatically determine the
879
+ correct module. The object's module is used:
880
+
881
+ - As a default namespace, if `globs` is not specified.
882
+ - To prevent the DocTestFinder from extracting DocTests
883
+ from objects that are imported from other modules.
884
+ - To find the name of the file containing the object.
885
+ - To help find the line number of the object within its
886
+ file.
887
+
888
+ Contained objects whose module does not match `module` are ignored.
889
+
890
+ If `module` is False, no attempt to find the module will be made.
891
+ This is obscure, of use mostly in tests: if `module` is False, or
892
+ is None but cannot be found automatically, then all objects are
893
+ considered to belong to the (non-existent) module, so all contained
894
+ objects will (recursively) be searched for doctests.
895
+
896
+ The globals for each DocTest is formed by combining `globs`
897
+ and `extraglobs` (bindings in `extraglobs` override bindings
898
+ in `globs`). A new copy of the globals dictionary is created
899
+ for each DocTest. If `globs` is not specified, then it
900
+ defaults to the module's `__dict__`, if specified, or {}
901
+ otherwise. If `extraglobs` is not specified, then it defaults
902
+ to {}.
903
+
904
+ """
905
+ # If name was not specified, then extract it from the object.
906
+ if name is None:
907
+ name = getattr(obj, '__name__', None)
908
+ if name is None:
909
+ raise ValueError("DocTestFinder.find: name must be given "
910
+ "when obj.__name__ doesn't exist: %r" %
911
+ (type(obj),))
912
+
913
+ # Find the module that contains the given object (if obj is
914
+ # a module, then module=obj.). Note: this may fail, in which
915
+ # case module will be None.
916
+ if module is False:
917
+ module = None
918
+ elif module is None:
919
+ module = inspect.getmodule(obj)
920
+
921
+ # Read the module's source code. This is used by
922
+ # DocTestFinder._find_lineno to find the line number for a
923
+ # given object's docstring.
924
+ try:
925
+ file = inspect.getsourcefile(obj)
926
+ except (TypeError, OSError):
927
+ source_lines = None
928
+ else:
929
+ if not file:
930
+ # Check to see if it's one of our special internal "files"
931
+ # (see __patched_linecache_getlines).
932
+ file = inspect.getfile(obj)
933
+ if not file[0]+file[-2:] == '<]>': file = None
934
+ if file is None:
935
+ source_lines = None
936
+ else:
937
+ if module is not None:
938
+ # Supply the module globals in case the module was
939
+ # originally loaded via a PEP 302 loader and
940
+ # file is not a valid filesystem path
941
+ source_lines = linecache.getlines(file, module.__dict__)
942
+ else:
943
+ # No access to a loader, so assume it's a normal
944
+ # filesystem path
945
+ source_lines = linecache.getlines(file)
946
+ if not source_lines:
947
+ source_lines = None
948
+
949
+ # Initialize globals, and merge in extraglobs.
950
+ if globs is None:
951
+ if module is None:
952
+ globs = {}
953
+ else:
954
+ globs = module.__dict__.copy()
955
+ else:
956
+ globs = globs.copy()
957
+ if extraglobs is not None:
958
+ globs.update(extraglobs)
959
+ if '__name__' not in globs:
960
+ globs['__name__'] = '__main__' # provide a default module name
961
+
962
+ # Recursively explore `obj`, extracting DocTests.
963
+ tests = []
964
+ self._find(tests, obj, name, module, source_lines, globs, {})
965
+ # Sort the tests by alpha order of names, for consistency in
966
+ # verbose-mode output. This was a feature of doctest in Pythons
967
+ # <= 2.3 that got lost by accident in 2.4. It was repaired in
968
+ # 2.4.4 and 2.5.
969
+ tests.sort()
970
+ return tests
971
+
972
+ def _from_module(self, module, object):
973
+ """
974
+ Return true if the given object is defined in the given
975
+ module.
976
+ """
977
+ if module is None:
978
+ return True
979
+ elif inspect.getmodule(object) is not None:
980
+ return module is inspect.getmodule(object)
981
+ elif inspect.isfunction(object):
982
+ return module.__dict__ is object.__globals__
983
+ elif (inspect.ismethoddescriptor(object) or
984
+ inspect.ismethodwrapper(object)):
985
+ if hasattr(object, '__objclass__'):
986
+ obj_mod = object.__objclass__.__module__
987
+ elif hasattr(object, '__module__'):
988
+ obj_mod = object.__module__
989
+ else:
990
+ return True # [XX] no easy way to tell otherwise
991
+ return module.__name__ == obj_mod
992
+ elif inspect.isclass(object):
993
+ return module.__name__ == object.__module__
994
+ elif hasattr(object, '__module__'):
995
+ return module.__name__ == object.__module__
996
+ elif isinstance(object, property):
997
+ return True # [XX] no way not be sure.
998
+ else:
999
+ raise ValueError("object must be a class or function")
1000
+
1001
+ def _is_routine(self, obj):
1002
+ """
1003
+ Safely unwrap objects and determine if they are functions.
1004
+ """
1005
+ maybe_routine = obj
1006
+ try:
1007
+ maybe_routine = inspect.unwrap(maybe_routine)
1008
+ except ValueError:
1009
+ pass
1010
+ return inspect.isroutine(maybe_routine)
1011
+
1012
+ def _find(self, tests, obj, name, module, source_lines, globs, seen):
1013
+ """
1014
+ Find tests for the given object and any contained objects, and
1015
+ add them to `tests`.
1016
+ """
1017
+ if self._verbose:
1018
+ print('Finding tests in %s' % name)
1019
+
1020
+ # If we've already processed this object, then ignore it.
1021
+ if id(obj) in seen:
1022
+ return
1023
+ seen[id(obj)] = 1
1024
+
1025
+ # Find a test for this object, and add it to the list of tests.
1026
+ test = self._get_test(obj, name, module, globs, source_lines)
1027
+ if test is not None:
1028
+ tests.append(test)
1029
+
1030
+ # Look for tests in a module's contained objects.
1031
+ if inspect.ismodule(obj) and self._recurse:
1032
+ for valname, val in obj.__dict__.items():
1033
+ valname = '%s.%s' % (name, valname)
1034
+
1035
+ # Recurse to functions & classes.
1036
+ if ((self._is_routine(val) or inspect.isclass(val)) and
1037
+ self._from_module(module, val)):
1038
+ self._find(tests, val, valname, module, source_lines,
1039
+ globs, seen)
1040
+
1041
+ # Look for tests in a module's __test__ dictionary.
1042
+ if inspect.ismodule(obj) and self._recurse:
1043
+ for valname, val in getattr(obj, '__test__', {}).items():
1044
+ if not isinstance(valname, str):
1045
+ raise ValueError("DocTestFinder.find: __test__ keys "
1046
+ "must be strings: %r" %
1047
+ (type(valname),))
1048
+ if not (inspect.isroutine(val) or inspect.isclass(val) or
1049
+ inspect.ismodule(val) or isinstance(val, str)):
1050
+ raise ValueError("DocTestFinder.find: __test__ values "
1051
+ "must be strings, functions, methods, "
1052
+ "classes, or modules: %r" %
1053
+ (type(val),))
1054
+ valname = '%s.__test__.%s' % (name, valname)
1055
+ self._find(tests, val, valname, module, source_lines,
1056
+ globs, seen)
1057
+
1058
+ # Look for tests in a class's contained objects.
1059
+ if inspect.isclass(obj) and self._recurse:
1060
+ for valname, val in obj.__dict__.items():
1061
+ # Special handling for staticmethod/classmethod.
1062
+ if isinstance(val, (staticmethod, classmethod)):
1063
+ val = val.__func__
1064
+
1065
+ # Recurse to methods, properties, and nested classes.
1066
+ if ((inspect.isroutine(val) or inspect.isclass(val) or
1067
+ isinstance(val, property)) and
1068
+ self._from_module(module, val)):
1069
+ valname = '%s.%s' % (name, valname)
1070
+ self._find(tests, val, valname, module, source_lines,
1071
+ globs, seen)
1072
+
1073
+ def _get_test(self, obj, name, module, globs, source_lines):
1074
+ """
1075
+ Return a DocTest for the given object, if it defines a docstring;
1076
+ otherwise, return None.
1077
+ """
1078
+ # Extract the object's docstring. If it doesn't have one,
1079
+ # then return None (no test for this object).
1080
+ if isinstance(obj, str):
1081
+ docstring = obj
1082
+ else:
1083
+ try:
1084
+ if obj.__doc__ is None:
1085
+ docstring = ''
1086
+ else:
1087
+ docstring = obj.__doc__
1088
+ if not isinstance(docstring, str):
1089
+ docstring = str(docstring)
1090
+ except (TypeError, AttributeError):
1091
+ docstring = ''
1092
+
1093
+ # Find the docstring's location in the file.
1094
+ lineno = self._find_lineno(obj, source_lines)
1095
+
1096
+ # Don't bother if the docstring is empty.
1097
+ if self._exclude_empty and not docstring:
1098
+ return None
1099
+
1100
+ # Return a DocTest for this object.
1101
+ if module is None:
1102
+ filename = None
1103
+ else:
1104
+ # __file__ can be None for namespace packages.
1105
+ filename = getattr(module, '__file__', None) or module.__name__
1106
+ if filename[-4:] == ".pyc":
1107
+ filename = filename[:-1]
1108
+ return self._parser.get_doctest(docstring, globs, name,
1109
+ filename, lineno)
1110
+
1111
+ def _find_lineno(self, obj, source_lines):
1112
+ """
1113
+ Return a line number of the given object's docstring.
1114
+
1115
+ Returns `None` if the given object does not have a docstring.
1116
+ """
1117
+ lineno = None
1118
+ docstring = getattr(obj, '__doc__', None)
1119
+
1120
+ # Find the line number for modules.
1121
+ if inspect.ismodule(obj) and docstring is not None:
1122
+ lineno = 0
1123
+
1124
+ # Find the line number for classes.
1125
+ # Note: this could be fooled if a class is defined multiple
1126
+ # times in a single file.
1127
+ if inspect.isclass(obj) and docstring is not None:
1128
+ if source_lines is None:
1129
+ return None
1130
+ pat = re.compile(r'^\s*class\s*%s\b' %
1131
+ re.escape(getattr(obj, '__name__', '-')))
1132
+ for i, line in enumerate(source_lines):
1133
+ if pat.match(line):
1134
+ lineno = i
1135
+ break
1136
+
1137
+ # Find the line number for functions & methods.
1138
+ if inspect.ismethod(obj): obj = obj.__func__
1139
+ if isinstance(obj, property):
1140
+ obj = obj.fget
1141
+ if isinstance(obj, functools.cached_property):
1142
+ obj = obj.func
1143
+ if inspect.isroutine(obj) and getattr(obj, '__doc__', None):
1144
+ # We don't use `docstring` var here, because `obj` can be changed.
1145
+ obj = inspect.unwrap(obj)
1146
+ try:
1147
+ obj = obj.__code__
1148
+ except AttributeError:
1149
+ # Functions implemented in C don't necessarily
1150
+ # have a __code__ attribute.
1151
+ # If there's no code, there's no lineno
1152
+ return None
1153
+ if inspect.istraceback(obj): obj = obj.tb_frame
1154
+ if inspect.isframe(obj): obj = obj.f_code
1155
+ if inspect.iscode(obj):
1156
+ lineno = obj.co_firstlineno - 1
1157
+
1158
+ # Find the line number where the docstring starts. Assume
1159
+ # that it's the first line that begins with a quote mark.
1160
+ # Note: this could be fooled by a multiline function
1161
+ # signature, where a continuation line begins with a quote
1162
+ # mark.
1163
+ if lineno is not None:
1164
+ if source_lines is None:
1165
+ return lineno+1
1166
+ pat = re.compile(r'(^|.*:)\s*\w*("|\')')
1167
+ for lineno in range(lineno, len(source_lines)):
1168
+ if pat.match(source_lines[lineno]):
1169
+ return lineno
1170
+
1171
+ # Handle __test__ string doctests formatted as triple-quoted
1172
+ # strings. Find a non-blank line in the test string and match it
1173
+ # in the source, verifying subsequent lines also match to handle
1174
+ # duplicate lines.
1175
+ if isinstance(obj, str) and source_lines is not None:
1176
+ obj_lines = obj.splitlines(keepends=True)
1177
+ # Skip the first line (may be on same line as opening quotes)
1178
+ # and any blank lines to find a meaningful line to match.
1179
+ start_index = 1
1180
+ while (start_index < len(obj_lines)
1181
+ and not obj_lines[start_index].strip()):
1182
+ start_index += 1
1183
+ if start_index < len(obj_lines):
1184
+ target_line = obj_lines[start_index]
1185
+ for lineno, source_line in enumerate(source_lines):
1186
+ if source_line == target_line:
1187
+ # Verify subsequent lines also match
1188
+ for i in range(start_index + 1, len(obj_lines) - 1):
1189
+ source_idx = lineno + i - start_index
1190
+ if source_idx >= len(source_lines):
1191
+ break
1192
+ if obj_lines[i] != source_lines[source_idx]:
1193
+ break
1194
+ else:
1195
+ return lineno - start_index
1196
+
1197
+ # We couldn't find the line number.
1198
+ return None
1199
+
1200
+ ######################################################################
1201
+ ## 5. DocTest Runner
1202
+ ######################################################################
1203
+
1204
+ class DocTestRunner:
1205
+ """
1206
+ A class used to run DocTest test cases, and accumulate statistics.
1207
+ The `run` method is used to process a single DocTest case. It
1208
+ returns a TestResults instance.
1209
+
1210
+ >>> save_colorize = _colorize.COLORIZE
1211
+ >>> _colorize.COLORIZE = False
1212
+
1213
+ >>> tests = DocTestFinder().find(_TestClass)
1214
+ >>> runner = DocTestRunner(verbose=False)
1215
+ >>> tests.sort(key = lambda test: test.name)
1216
+ >>> for test in tests:
1217
+ ... print(test.name, '->', runner.run(test))
1218
+ _TestClass -> TestResults(failed=0, attempted=2)
1219
+ _TestClass.__init__ -> TestResults(failed=0, attempted=2)
1220
+ _TestClass.get -> TestResults(failed=0, attempted=2)
1221
+ _TestClass.square -> TestResults(failed=0, attempted=1)
1222
+
1223
+ The `summarize` method prints a summary of all the test cases that
1224
+ have been run by the runner, and returns an aggregated TestResults
1225
+ instance:
1226
+
1227
+ >>> runner.summarize(verbose=1)
1228
+ 4 items passed all tests:
1229
+ 2 tests in _TestClass
1230
+ 2 tests in _TestClass.__init__
1231
+ 2 tests in _TestClass.get
1232
+ 1 test in _TestClass.square
1233
+ 7 tests in 4 items.
1234
+ 7 passed.
1235
+ Test passed.
1236
+ TestResults(failed=0, attempted=7)
1237
+
1238
+ The aggregated number of tried examples and failed examples is also
1239
+ available via the `tries`, `failures` and `skips` attributes:
1240
+
1241
+ >>> runner.tries
1242
+ 7
1243
+ >>> runner.failures
1244
+ 0
1245
+ >>> runner.skips
1246
+ 0
1247
+
1248
+ The comparison between expected outputs and actual outputs is done
1249
+ by an `OutputChecker`. This comparison may be customized with a
1250
+ number of option flags; see the documentation for `testmod` for
1251
+ more information. If the option flags are insufficient, then the
1252
+ comparison may also be customized by passing a subclass of
1253
+ `OutputChecker` to the constructor.
1254
+
1255
+ The test runner's display output can be controlled in two ways.
1256
+ First, an output function (`out`) can be passed to
1257
+ `TestRunner.run`; this function will be called with strings that
1258
+ should be displayed. It defaults to `sys.stdout.write`. If
1259
+ capturing the output is not sufficient, then the display output
1260
+ can be also customized by subclassing DocTestRunner, and
1261
+ overriding the methods `report_start`, `report_success`,
1262
+ `report_unexpected_exception`, and `report_failure`.
1263
+
1264
+ >>> _colorize.COLORIZE = save_colorize
1265
+ """
1266
+ # This divider string is used to separate failure messages, and to
1267
+ # separate sections of the summary.
1268
+ DIVIDER = "*" * 70
1269
+
1270
+ def __init__(self, checker=None, verbose=None, optionflags=0):
1271
+ """
1272
+ Create a new test runner.
1273
+
1274
+ Optional keyword arg `checker` is the `OutputChecker` that
1275
+ should be used to compare the expected outputs and actual
1276
+ outputs of doctest examples.
1277
+
1278
+ Optional keyword arg 'verbose' prints lots of stuff if true,
1279
+ only failures if false; by default, it's true iff '-v' is in
1280
+ sys.argv.
1281
+
1282
+ Optional argument `optionflags` can be used to control how the
1283
+ test runner compares expected output to actual output, and how
1284
+ it displays failures. See the documentation for `testmod` for
1285
+ more information.
1286
+ """
1287
+ self._checker = checker or OutputChecker()
1288
+ if verbose is None:
1289
+ verbose = '-v' in sys.argv
1290
+ self._verbose = verbose
1291
+ self.optionflags = optionflags
1292
+ self.original_optionflags = optionflags
1293
+
1294
+ # Keep track of the examples we've run.
1295
+ self.tries = 0
1296
+ self.failures = 0
1297
+ self.skips = 0
1298
+ self._stats = {}
1299
+
1300
+ # Create a fake output target for capturing doctest output.
1301
+ self._fakeout = _SpoofOut()
1302
+
1303
+ #/////////////////////////////////////////////////////////////////
1304
+ # Reporting methods
1305
+ #/////////////////////////////////////////////////////////////////
1306
+
1307
+ def report_skip(self, out, test, example):
1308
+ """
1309
+ Report that the given example was skipped.
1310
+ """
1311
+
1312
+ def report_start(self, out, test, example):
1313
+ """
1314
+ Report that the test runner is about to process the given
1315
+ example. (Only displays a message if verbose=True)
1316
+ """
1317
+ if self._verbose:
1318
+ if example.want:
1319
+ out('Trying:\n' + _indent(example.source) +
1320
+ 'Expecting:\n' + _indent(example.want))
1321
+ else:
1322
+ out('Trying:\n' + _indent(example.source) +
1323
+ 'Expecting nothing\n')
1324
+
1325
+ def report_success(self, out, test, example, got):
1326
+ """
1327
+ Report that the given example ran successfully. (Only
1328
+ displays a message if verbose=True)
1329
+ """
1330
+ if self._verbose:
1331
+ out("ok\n")
1332
+
1333
+ def report_failure(self, out, test, example, got):
1334
+ """
1335
+ Report that the given example failed.
1336
+ """
1337
+ out(self._failure_header(test, example) +
1338
+ self._checker.output_difference(example, got, self.optionflags))
1339
+
1340
+ def report_unexpected_exception(self, out, test, example, exc_info):
1341
+ """
1342
+ Report that the given example raised an unexpected exception.
1343
+ """
1344
+ out(self._failure_header(test, example) +
1345
+ 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1346
+
1347
+ def _failure_header(self, test, example):
1348
+ red, reset = (
1349
+ (ANSIColors.RED, ANSIColors.RESET) if can_colorize() else ("", "")
1350
+ )
1351
+ out = [f"{red}{self.DIVIDER}{reset}"]
1352
+ if test.filename:
1353
+ if test.lineno is not None and example.lineno is not None:
1354
+ lineno = test.lineno + example.lineno + 1
1355
+ else:
1356
+ lineno = '?'
1357
+ out.append('File "%s", line %s, in %s' %
1358
+ (test.filename, lineno, test.name))
1359
+ else:
1360
+ out.append('Line %s, in %s' % (example.lineno+1, test.name))
1361
+ out.append('Failed example:')
1362
+ source = example.source
1363
+ out.append(_indent(source))
1364
+ return '\n'.join(out)
1365
+
1366
+ #/////////////////////////////////////////////////////////////////
1367
+ # DocTest Running
1368
+ #/////////////////////////////////////////////////////////////////
1369
+
1370
+ def __run(self, test, compileflags, out):
1371
+ """
1372
+ Run the examples in `test`. Write the outcome of each example
1373
+ with one of the `DocTestRunner.report_*` methods, using the
1374
+ writer function `out`. `compileflags` is the set of compiler
1375
+ flags that should be used to execute examples. Return a TestResults
1376
+ instance. The examples are run in the namespace `test.globs`.
1377
+ """
1378
+ # Keep track of the number of failed, attempted, skipped examples.
1379
+ failures = attempted = skips = 0
1380
+
1381
+ # Save the option flags (since option directives can be used
1382
+ # to modify them).
1383
+ original_optionflags = self.optionflags
1384
+
1385
+ SUCCESS, FAILURE, BOOM = range(3) # `outcome` state
1386
+
1387
+ check = self._checker.check_output
1388
+
1389
+ # Process each example.
1390
+ for examplenum, example in enumerate(test.examples):
1391
+ attempted += 1
1392
+
1393
+ # If REPORT_ONLY_FIRST_FAILURE is set, then suppress
1394
+ # reporting after the first failure.
1395
+ quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
1396
+ failures > 0)
1397
+
1398
+ # Merge in the example's options.
1399
+ self.optionflags = original_optionflags
1400
+ if example.options:
1401
+ for (optionflag, val) in example.options.items():
1402
+ if val:
1403
+ self.optionflags |= optionflag
1404
+ else:
1405
+ self.optionflags &= ~optionflag
1406
+
1407
+ # If 'SKIP' is set, then skip this example.
1408
+ if self.optionflags & SKIP:
1409
+ if not quiet:
1410
+ self.report_skip(out, test, example)
1411
+ skips += 1
1412
+ continue
1413
+
1414
+ # Record that we started this example.
1415
+ if not quiet:
1416
+ self.report_start(out, test, example)
1417
+
1418
+ # Use a special filename for compile(), so we can retrieve
1419
+ # the source code during interactive debugging (see
1420
+ # __patched_linecache_getlines).
1421
+ filename = '<doctest %s[%d]>' % (test.name, examplenum)
1422
+
1423
+ # Run the example in the given context (globs), and record
1424
+ # any exception that gets raised. (But don't intercept
1425
+ # keyboard interrupts.)
1426
+ try:
1427
+ # Don't blink! This is where the user's code gets run.
1428
+ exec(compile(example.source, filename, "single",
1429
+ compileflags, True), test.globs)
1430
+ self.debugger.set_continue() # ==== Example Finished ====
1431
+ exc_info = None
1432
+ except KeyboardInterrupt:
1433
+ raise
1434
+ except BaseException as exc:
1435
+ exc_info = type(exc), exc, exc.__traceback__.tb_next
1436
+ self.debugger.set_continue() # ==== Example Finished ====
1437
+
1438
+ got = self._fakeout.getvalue() # the actual output
1439
+ self._fakeout.truncate(0)
1440
+ outcome = FAILURE # guilty until proved innocent or insane
1441
+
1442
+ # If the example executed without raising any exceptions,
1443
+ # verify its output.
1444
+ if exc_info is None:
1445
+ if check(example.want, got, self.optionflags):
1446
+ outcome = SUCCESS
1447
+
1448
+ # The example raised an exception: check if it was expected.
1449
+ else:
1450
+ formatted_ex = traceback.format_exception_only(*exc_info[:2])
1451
+ if issubclass(exc_info[0], SyntaxError):
1452
+ # SyntaxError / IndentationError is special:
1453
+ # we don't care about the carets / suggestions / etc
1454
+ # We only care about the error message and notes.
1455
+ # They start with `SyntaxError:` (or any other class name)
1456
+ exception_line_prefixes = (
1457
+ f"{exc_info[0].__qualname__}:",
1458
+ f"{exc_info[0].__module__}.{exc_info[0].__qualname__}:",
1459
+ )
1460
+ exc_msg_index = next(
1461
+ index
1462
+ for index, line in enumerate(formatted_ex)
1463
+ if line.startswith(exception_line_prefixes)
1464
+ )
1465
+ formatted_ex = formatted_ex[exc_msg_index:]
1466
+
1467
+ exc_msg = "".join(formatted_ex)
1468
+ if not quiet:
1469
+ got += _exception_traceback(exc_info)
1470
+
1471
+ # If `example.exc_msg` is None, then we weren't expecting
1472
+ # an exception.
1473
+ if example.exc_msg is None:
1474
+ outcome = BOOM
1475
+
1476
+ # We expected an exception: see whether it matches.
1477
+ elif check(example.exc_msg, exc_msg, self.optionflags):
1478
+ outcome = SUCCESS
1479
+
1480
+ # Another chance if they didn't care about the detail.
1481
+ elif self.optionflags & IGNORE_EXCEPTION_DETAIL:
1482
+ if check(_strip_exception_details(example.exc_msg),
1483
+ _strip_exception_details(exc_msg),
1484
+ self.optionflags):
1485
+ outcome = SUCCESS
1486
+
1487
+ # Report the outcome.
1488
+ if outcome is SUCCESS:
1489
+ if not quiet:
1490
+ self.report_success(out, test, example, got)
1491
+ elif outcome is FAILURE:
1492
+ if not quiet:
1493
+ self.report_failure(out, test, example, got)
1494
+ failures += 1
1495
+ elif outcome is BOOM:
1496
+ if not quiet:
1497
+ self.report_unexpected_exception(out, test, example,
1498
+ exc_info)
1499
+ failures += 1
1500
+ else:
1501
+ assert False, ("unknown outcome", outcome)
1502
+
1503
+ if failures and self.optionflags & FAIL_FAST:
1504
+ break
1505
+
1506
+ # Restore the option flags (in case they were modified)
1507
+ self.optionflags = original_optionflags
1508
+
1509
+ # Record and return the number of failures and attempted.
1510
+ self.__record_outcome(test, failures, attempted, skips)
1511
+ return TestResults(failures, attempted, skipped=skips)
1512
+
1513
+ def __record_outcome(self, test, failures, tries, skips):
1514
+ """
1515
+ Record the fact that the given DocTest (`test`) generated `failures`
1516
+ failures out of `tries` tried examples.
1517
+ """
1518
+ failures2, tries2, skips2 = self._stats.get(test.name, (0, 0, 0))
1519
+ self._stats[test.name] = (failures + failures2,
1520
+ tries + tries2,
1521
+ skips + skips2)
1522
+ self.failures += failures
1523
+ self.tries += tries
1524
+ self.skips += skips
1525
+
1526
+ __LINECACHE_FILENAME_RE = re.compile(r'<doctest '
1527
+ r'(?P<name>.+)'
1528
+ r'\[(?P<examplenum>\d+)\]>$')
1529
+ def __patched_linecache_getlines(self, filename, module_globals=None):
1530
+ m = self.__LINECACHE_FILENAME_RE.match(filename)
1531
+ if m and m.group('name') == self.test.name:
1532
+ example = self.test.examples[int(m.group('examplenum'))]
1533
+ return example.source.splitlines(keepends=True)
1534
+ else:
1535
+ return self.save_linecache_getlines(filename, module_globals)
1536
+
1537
+ def run(self, test, compileflags=None, out=None, clear_globs=True):
1538
+ """
1539
+ Run the examples in `test`, and display the results using the
1540
+ writer function `out`.
1541
+
1542
+ The examples are run in the namespace `test.globs`. If
1543
+ `clear_globs` is true (the default), then this namespace will
1544
+ be cleared after the test runs, to help with garbage
1545
+ collection. If you would like to examine the namespace after
1546
+ the test completes, then use `clear_globs=False`.
1547
+
1548
+ `compileflags` gives the set of flags that should be used by
1549
+ the Python compiler when running the examples. If not
1550
+ specified, then it will default to the set of future-import
1551
+ flags that apply to `globs`.
1552
+
1553
+ The output of each example is checked using
1554
+ `DocTestRunner.check_output`, and the results are formatted by
1555
+ the `DocTestRunner.report_*` methods.
1556
+ """
1557
+ self.test = test
1558
+
1559
+ if compileflags is None:
1560
+ compileflags = _extract_future_flags(test.globs)
1561
+
1562
+ save_stdout = sys.stdout
1563
+ if out is None:
1564
+ encoding = save_stdout.encoding
1565
+ if encoding is None or encoding.lower() == 'utf-8':
1566
+ out = save_stdout.write
1567
+ else:
1568
+ # Use backslashreplace error handling on write
1569
+ def out(s):
1570
+ s = str(s.encode(encoding, 'backslashreplace'), encoding)
1571
+ save_stdout.write(s)
1572
+ sys.stdout = self._fakeout
1573
+
1574
+ # Patch pdb.set_trace to restore sys.stdout during interactive
1575
+ # debugging (so it's not still redirected to self._fakeout).
1576
+ # Note that the interactive output will go to *our*
1577
+ # save_stdout, even if that's not the real sys.stdout; this
1578
+ # allows us to write test cases for the set_trace behavior.
1579
+ save_trace = sys.gettrace()
1580
+ save_set_trace = pdb.set_trace
1581
+ self.debugger = _OutputRedirectingPdb(save_stdout)
1582
+ self.debugger.reset()
1583
+ pdb.set_trace = self.debugger.set_trace
1584
+
1585
+ # Patch linecache.getlines, so we can see the example's source
1586
+ # when we're inside the debugger.
1587
+ self.save_linecache_getlines = linecache.getlines
1588
+ linecache.getlines = self.__patched_linecache_getlines
1589
+
1590
+ # Make sure sys.displayhook just prints the value to stdout
1591
+ save_displayhook = sys.displayhook
1592
+ sys.displayhook = sys.__displayhook__
1593
+ saved_can_colorize = _colorize.can_colorize
1594
+ _colorize.can_colorize = lambda *args, **kwargs: False
1595
+ color_variables = {"PYTHON_COLORS": None, "FORCE_COLOR": None}
1596
+ for key in color_variables:
1597
+ color_variables[key] = os.environ.pop(key, None)
1598
+ try:
1599
+ return self.__run(test, compileflags, out)
1600
+ finally:
1601
+ sys.stdout = save_stdout
1602
+ pdb.set_trace = save_set_trace
1603
+ sys.settrace(save_trace)
1604
+ linecache.getlines = self.save_linecache_getlines
1605
+ sys.displayhook = save_displayhook
1606
+ _colorize.can_colorize = saved_can_colorize
1607
+ for key, value in color_variables.items():
1608
+ if value is not None:
1609
+ os.environ[key] = value
1610
+ if clear_globs:
1611
+ test.globs.clear()
1612
+ import builtins
1613
+ builtins._ = None
1614
+
1615
+ #/////////////////////////////////////////////////////////////////
1616
+ # Summarization
1617
+ #/////////////////////////////////////////////////////////////////
1618
+ def summarize(self, verbose=None):
1619
+ """
1620
+ Print a summary of all the test cases that have been run by
1621
+ this DocTestRunner, and return a TestResults instance.
1622
+
1623
+ The optional `verbose` argument controls how detailed the
1624
+ summary is. If the verbosity is not specified, then the
1625
+ DocTestRunner's verbosity is used.
1626
+ """
1627
+ if verbose is None:
1628
+ verbose = self._verbose
1629
+
1630
+ notests, passed, failed = [], [], []
1631
+ total_tries = total_failures = total_skips = 0
1632
+
1633
+ for name, (failures, tries, skips) in self._stats.items():
1634
+ assert failures <= tries
1635
+ total_tries += tries
1636
+ total_failures += failures
1637
+ total_skips += skips
1638
+
1639
+ if tries == 0:
1640
+ notests.append(name)
1641
+ elif failures == 0:
1642
+ passed.append((name, tries))
1643
+ else:
1644
+ failed.append((name, (failures, tries, skips)))
1645
+
1646
+ ansi = _colorize.get_colors()
1647
+ bold_green = ansi.BOLD_GREEN
1648
+ bold_red = ansi.BOLD_RED
1649
+ green = ansi.GREEN
1650
+ red = ansi.RED
1651
+ reset = ansi.RESET
1652
+ yellow = ansi.YELLOW
1653
+
1654
+ if verbose:
1655
+ if notests:
1656
+ print(f"{_n_items(notests)} had no tests:")
1657
+ notests.sort()
1658
+ for name in notests:
1659
+ print(f" {name}")
1660
+
1661
+ if passed:
1662
+ print(f"{green}{_n_items(passed)} passed all tests:{reset}")
1663
+ for name, count in sorted(passed):
1664
+ s = "" if count == 1 else "s"
1665
+ print(f" {green}{count:3d} test{s} in {name}{reset}")
1666
+
1667
+ if failed:
1668
+ print(f"{red}{self.DIVIDER}{reset}")
1669
+ print(f"{_n_items(failed)} had failures:")
1670
+ for name, (failures, tries, skips) in sorted(failed):
1671
+ print(f" {failures:3d} of {tries:3d} in {name}")
1672
+
1673
+ if verbose:
1674
+ s = "" if total_tries == 1 else "s"
1675
+ print(f"{total_tries} test{s} in {_n_items(self._stats)}.")
1676
+
1677
+ and_f = (
1678
+ f" and {red}{total_failures} failed{reset}"
1679
+ if total_failures else ""
1680
+ )
1681
+ print(f"{green}{total_tries - total_failures} passed{reset}{and_f}.")
1682
+
1683
+ if total_failures:
1684
+ s = "" if total_failures == 1 else "s"
1685
+ msg = f"{bold_red}***Test Failed*** {total_failures} failure{s}{reset}"
1686
+ if total_skips:
1687
+ s = "" if total_skips == 1 else "s"
1688
+ msg = f"{msg} and {yellow}{total_skips} skipped test{s}{reset}"
1689
+ print(f"{msg}.")
1690
+ elif verbose:
1691
+ print(f"{bold_green}Test passed.{reset}")
1692
+
1693
+ return TestResults(total_failures, total_tries, skipped=total_skips)
1694
+
1695
+ #/////////////////////////////////////////////////////////////////
1696
+ # Backward compatibility cruft to maintain doctest.master.
1697
+ #/////////////////////////////////////////////////////////////////
1698
+ def merge(self, other):
1699
+ d = self._stats
1700
+ for name, (failures, tries, skips) in other._stats.items():
1701
+ if name in d:
1702
+ failures2, tries2, skips2 = d[name]
1703
+ failures = failures + failures2
1704
+ tries = tries + tries2
1705
+ skips = skips + skips2
1706
+ d[name] = (failures, tries, skips)
1707
+
1708
+
1709
+ def _n_items(items: list | dict) -> str:
1710
+ """
1711
+ Helper to pluralise the number of items in a list.
1712
+ """
1713
+ n = len(items)
1714
+ s = "" if n == 1 else "s"
1715
+ return f"{n} item{s}"
1716
+
1717
+
1718
+ class OutputChecker:
1719
+ """
1720
+ A class used to check whether the actual output from a doctest
1721
+ example matches the expected output. `OutputChecker` defines two
1722
+ methods: `check_output`, which compares a given pair of outputs,
1723
+ and returns true if they match; and `output_difference`, which
1724
+ returns a string describing the differences between two outputs.
1725
+ """
1726
+ def _toAscii(self, s):
1727
+ """
1728
+ Convert string to hex-escaped ASCII string.
1729
+ """
1730
+ return str(s.encode('ASCII', 'backslashreplace'), "ASCII")
1731
+
1732
+ def check_output(self, want, got, optionflags):
1733
+ """
1734
+ Return True iff the actual output from an example (`got`)
1735
+ matches the expected output (`want`). These strings are
1736
+ always considered to match if they are identical; but
1737
+ depending on what option flags the test runner is using,
1738
+ several non-exact match types are also possible. See the
1739
+ documentation for `TestRunner` for more information about
1740
+ option flags.
1741
+ """
1742
+
1743
+ # If `want` contains hex-escaped character such as "\u1234",
1744
+ # then `want` is a string of six characters(e.g. [\,u,1,2,3,4]).
1745
+ # On the other hand, `got` could be another sequence of
1746
+ # characters such as [\u1234], so `want` and `got` should
1747
+ # be folded to hex-escaped ASCII string to compare.
1748
+ got = self._toAscii(got)
1749
+ want = self._toAscii(want)
1750
+
1751
+ # Handle the common case first, for efficiency:
1752
+ # if they're string-identical, always return true.
1753
+ if got == want:
1754
+ return True
1755
+
1756
+ # The values True and False replaced 1 and 0 as the return
1757
+ # value for boolean comparisons in Python 2.3.
1758
+ if not (optionflags & DONT_ACCEPT_TRUE_FOR_1):
1759
+ if (got,want) == ("True\n", "1\n"):
1760
+ return True
1761
+ if (got,want) == ("False\n", "0\n"):
1762
+ return True
1763
+
1764
+ # <BLANKLINE> can be used as a special sequence to signify a
1765
+ # blank line, unless the DONT_ACCEPT_BLANKLINE flag is used.
1766
+ if not (optionflags & DONT_ACCEPT_BLANKLINE):
1767
+ # Replace <BLANKLINE> in want with a blank line.
1768
+ want = re.sub(r'(?m)^%s\s*?$' % re.escape(BLANKLINE_MARKER),
1769
+ '', want)
1770
+ # If a line in got contains only spaces, then remove the
1771
+ # spaces.
1772
+ got = re.sub(r'(?m)^[^\S\n]+$', '', got)
1773
+ if got == want:
1774
+ return True
1775
+
1776
+ # This flag causes doctest to ignore any differences in the
1777
+ # contents of whitespace strings. Note that this can be used
1778
+ # in conjunction with the ELLIPSIS flag.
1779
+ if optionflags & NORMALIZE_WHITESPACE:
1780
+ got = ' '.join(got.split())
1781
+ want = ' '.join(want.split())
1782
+ if got == want:
1783
+ return True
1784
+
1785
+ # The ELLIPSIS flag says to let the sequence "..." in `want`
1786
+ # match any substring in `got`.
1787
+ if optionflags & ELLIPSIS:
1788
+ if _ellipsis_match(want, got):
1789
+ return True
1790
+
1791
+ # We didn't find any match; return false.
1792
+ return False
1793
+
1794
+ # Should we do a fancy diff?
1795
+ def _do_a_fancy_diff(self, want, got, optionflags):
1796
+ # Not unless they asked for a fancy diff.
1797
+ if not optionflags & (REPORT_UDIFF |
1798
+ REPORT_CDIFF |
1799
+ REPORT_NDIFF):
1800
+ return False
1801
+
1802
+ # If expected output uses ellipsis, a meaningful fancy diff is
1803
+ # too hard ... or maybe not. In two real-life failures Tim saw,
1804
+ # a diff was a major help anyway, so this is commented out.
1805
+ # [todo] _ellipsis_match() knows which pieces do and don't match,
1806
+ # and could be the basis for a kick-ass diff in this case.
1807
+ ##if optionflags & ELLIPSIS and ELLIPSIS_MARKER in want:
1808
+ ## return False
1809
+
1810
+ # ndiff does intraline difference marking, so can be useful even
1811
+ # for 1-line differences.
1812
+ if optionflags & REPORT_NDIFF:
1813
+ return True
1814
+
1815
+ # The other diff types need at least a few lines to be helpful.
1816
+ return want.count('\n') > 2 and got.count('\n') > 2
1817
+
1818
+ def output_difference(self, example, got, optionflags):
1819
+ """
1820
+ Return a string describing the differences between the
1821
+ expected output for a given example (`example`) and the actual
1822
+ output (`got`). `optionflags` is the set of option flags used
1823
+ to compare `want` and `got`.
1824
+ """
1825
+ want = example.want
1826
+ # If <BLANKLINE>s are being used, then replace blank lines
1827
+ # with <BLANKLINE> in the actual output string.
1828
+ if not (optionflags & DONT_ACCEPT_BLANKLINE):
1829
+ got = re.sub('(?m)^[ ]*(?=\n)', BLANKLINE_MARKER, got)
1830
+
1831
+ # Check if we should use diff.
1832
+ if self._do_a_fancy_diff(want, got, optionflags):
1833
+ # Split want & got into lines.
1834
+ want_lines = want.splitlines(keepends=True)
1835
+ got_lines = got.splitlines(keepends=True)
1836
+ # Use difflib to find their differences.
1837
+ if optionflags & REPORT_UDIFF:
1838
+ diff = difflib.unified_diff(want_lines, got_lines, n=2)
1839
+ diff = list(diff)[2:] # strip the diff header
1840
+ kind = 'unified diff with -expected +actual'
1841
+ elif optionflags & REPORT_CDIFF:
1842
+ diff = difflib.context_diff(want_lines, got_lines, n=2)
1843
+ diff = list(diff)[2:] # strip the diff header
1844
+ kind = 'context diff with expected followed by actual'
1845
+ elif optionflags & REPORT_NDIFF:
1846
+ engine = difflib.Differ(charjunk=difflib.IS_CHARACTER_JUNK)
1847
+ diff = list(engine.compare(want_lines, got_lines))
1848
+ kind = 'ndiff with -expected +actual'
1849
+ else:
1850
+ assert 0, 'Bad diff option'
1851
+ return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1852
+
1853
+ # If we're not using diff, then simply list the expected
1854
+ # output followed by the actual output.
1855
+ if want and got:
1856
+ return 'Expected:\n%sGot:\n%s' % (_indent(want), _indent(got))
1857
+ elif want:
1858
+ return 'Expected:\n%sGot nothing\n' % _indent(want)
1859
+ elif got:
1860
+ return 'Expected nothing\nGot:\n%s' % _indent(got)
1861
+ else:
1862
+ return 'Expected nothing\nGot nothing\n'
1863
+
1864
+ class DocTestFailure(Exception):
1865
+ """A DocTest example has failed in debugging mode.
1866
+
1867
+ The exception instance has variables:
1868
+
1869
+ - test: the DocTest object being run
1870
+
1871
+ - example: the Example object that failed
1872
+
1873
+ - got: the actual output
1874
+ """
1875
+ def __init__(self, test, example, got):
1876
+ self.test = test
1877
+ self.example = example
1878
+ self.got = got
1879
+
1880
+ def __str__(self):
1881
+ return str(self.test)
1882
+
1883
+ class UnexpectedException(Exception):
1884
+ """A DocTest example has encountered an unexpected exception
1885
+
1886
+ The exception instance has variables:
1887
+
1888
+ - test: the DocTest object being run
1889
+
1890
+ - example: the Example object that failed
1891
+
1892
+ - exc_info: the exception info
1893
+ """
1894
+ def __init__(self, test, example, exc_info):
1895
+ self.test = test
1896
+ self.example = example
1897
+ self.exc_info = exc_info
1898
+
1899
+ def __str__(self):
1900
+ return str(self.test)
1901
+
1902
+ class DebugRunner(DocTestRunner):
1903
+ r"""Run doc tests but raise an exception as soon as there is a failure.
1904
+
1905
+ If an unexpected exception occurs, an UnexpectedException is raised.
1906
+ It contains the test, the example, and the original exception:
1907
+
1908
+ >>> runner = DebugRunner(verbose=False)
1909
+ >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
1910
+ ... {}, 'foo', 'foo.py', 0)
1911
+ >>> try:
1912
+ ... runner.run(test)
1913
+ ... except UnexpectedException as f:
1914
+ ... failure = f
1915
+
1916
+ >>> failure.test is test
1917
+ True
1918
+
1919
+ >>> failure.example.want
1920
+ '42\n'
1921
+
1922
+ >>> exc_info = failure.exc_info
1923
+ >>> raise exc_info[1] # Already has the traceback
1924
+ Traceback (most recent call last):
1925
+ ...
1926
+ KeyError
1927
+
1928
+ We wrap the original exception to give the calling application
1929
+ access to the test and example information.
1930
+
1931
+ If the output doesn't match, then a DocTestFailure is raised:
1932
+
1933
+ >>> test = DocTestParser().get_doctest('''
1934
+ ... >>> x = 1
1935
+ ... >>> x
1936
+ ... 2
1937
+ ... ''', {}, 'foo', 'foo.py', 0)
1938
+
1939
+ >>> try:
1940
+ ... runner.run(test)
1941
+ ... except DocTestFailure as f:
1942
+ ... failure = f
1943
+
1944
+ DocTestFailure objects provide access to the test:
1945
+
1946
+ >>> failure.test is test
1947
+ True
1948
+
1949
+ As well as to the example:
1950
+
1951
+ >>> failure.example.want
1952
+ '2\n'
1953
+
1954
+ and the actual output:
1955
+
1956
+ >>> failure.got
1957
+ '1\n'
1958
+
1959
+ If a failure or error occurs, the globals are left intact:
1960
+
1961
+ >>> del test.globs['__builtins__']
1962
+ >>> test.globs
1963
+ {'x': 1}
1964
+
1965
+ >>> test = DocTestParser().get_doctest('''
1966
+ ... >>> x = 2
1967
+ ... >>> raise KeyError
1968
+ ... ''', {}, 'foo', 'foo.py', 0)
1969
+
1970
+ >>> runner.run(test)
1971
+ Traceback (most recent call last):
1972
+ ...
1973
+ doctest.UnexpectedException: <DocTest foo from foo.py:0 (2 examples)>
1974
+
1975
+ >>> del test.globs['__builtins__']
1976
+ >>> test.globs
1977
+ {'x': 2}
1978
+
1979
+ But the globals are cleared if there is no error:
1980
+
1981
+ >>> test = DocTestParser().get_doctest('''
1982
+ ... >>> x = 2
1983
+ ... ''', {}, 'foo', 'foo.py', 0)
1984
+
1985
+ >>> runner.run(test)
1986
+ TestResults(failed=0, attempted=1)
1987
+
1988
+ >>> test.globs
1989
+ {}
1990
+
1991
+ """
1992
+
1993
+ def run(self, test, compileflags=None, out=None, clear_globs=True):
1994
+ r = DocTestRunner.run(self, test, compileflags, out, False)
1995
+ if clear_globs:
1996
+ test.globs.clear()
1997
+ return r
1998
+
1999
+ def report_unexpected_exception(self, out, test, example, exc_info):
2000
+ raise UnexpectedException(test, example, exc_info)
2001
+
2002
+ def report_failure(self, out, test, example, got):
2003
+ raise DocTestFailure(test, example, got)
2004
+
2005
+ ######################################################################
2006
+ ## 6. Test Functions
2007
+ ######################################################################
2008
+ # These should be backwards compatible.
2009
+
2010
+ # For backward compatibility, a global instance of a DocTestRunner
2011
+ # class, updated by testmod.
2012
+ master = None
2013
+
2014
+ def testmod(m=None, name=None, globs=None, verbose=None,
2015
+ report=True, optionflags=0, extraglobs=None,
2016
+ raise_on_error=False, exclude_empty=False):
2017
+ """m=None, name=None, globs=None, verbose=None, report=True,
2018
+ optionflags=0, extraglobs=None, raise_on_error=False,
2019
+ exclude_empty=False
2020
+
2021
+ Test examples in docstrings in functions and classes reachable
2022
+ from module m (or the current module if m is not supplied), starting
2023
+ with m.__doc__.
2024
+
2025
+ Also test examples reachable from dict m.__test__ if it exists.
2026
+ m.__test__ maps names to functions, classes and strings;
2027
+ function and class docstrings are tested even if the name is private;
2028
+ strings are tested directly, as if they were docstrings.
2029
+
2030
+ Return (#failures, #tests).
2031
+
2032
+ See help(doctest) for an overview.
2033
+
2034
+ Optional keyword arg "name" gives the name of the module; by default
2035
+ use m.__name__.
2036
+
2037
+ Optional keyword arg "globs" gives a dict to be used as the globals
2038
+ when executing examples; by default, use m.__dict__. A copy of this
2039
+ dict is actually used for each docstring, so that each docstring's
2040
+ examples start with a clean slate.
2041
+
2042
+ Optional keyword arg "extraglobs" gives a dictionary that should be
2043
+ merged into the globals that are used to execute examples. By
2044
+ default, no extra globals are used. This is new in 2.4.
2045
+
2046
+ Optional keyword arg "verbose" prints lots of stuff if true, prints
2047
+ only failures if false; by default, it's true iff "-v" is in sys.argv.
2048
+
2049
+ Optional keyword arg "report" prints a summary at the end when true,
2050
+ else prints nothing at the end. In verbose mode, the summary is
2051
+ detailed, else very brief (in fact, empty if all tests passed).
2052
+
2053
+ Optional keyword arg "optionflags" or's together module constants,
2054
+ and defaults to 0. This is new in 2.3. Possible values (see the
2055
+ docs for details):
2056
+
2057
+ DONT_ACCEPT_TRUE_FOR_1
2058
+ DONT_ACCEPT_BLANKLINE
2059
+ NORMALIZE_WHITESPACE
2060
+ ELLIPSIS
2061
+ SKIP
2062
+ IGNORE_EXCEPTION_DETAIL
2063
+ REPORT_UDIFF
2064
+ REPORT_CDIFF
2065
+ REPORT_NDIFF
2066
+ REPORT_ONLY_FIRST_FAILURE
2067
+
2068
+ Optional keyword arg "raise_on_error" raises an exception on the
2069
+ first unexpected exception or failure. This allows failures to be
2070
+ post-mortem debugged.
2071
+
2072
+ Advanced tomfoolery: testmod runs methods of a local instance of
2073
+ class doctest.Tester, then merges the results into (or creates)
2074
+ global Tester instance doctest.master. Methods of doctest.master
2075
+ can be called directly too, if you want to do something unusual.
2076
+ Passing report=0 to testmod is especially useful then, to delay
2077
+ displaying a summary. Invoke doctest.master.summarize(verbose)
2078
+ when you're done fiddling.
2079
+ """
2080
+ global master
2081
+
2082
+ # If no module was given, then use __main__.
2083
+ if m is None:
2084
+ # DWA - m will still be None if this wasn't invoked from the command
2085
+ # line, in which case the following TypeError is about as good an error
2086
+ # as we should expect
2087
+ m = sys.modules.get('__main__')
2088
+
2089
+ # Check that we were actually given a module.
2090
+ if not inspect.ismodule(m):
2091
+ raise TypeError("testmod: module required; %r" % (m,))
2092
+
2093
+ # If no name was given, then use the module's name.
2094
+ if name is None:
2095
+ name = m.__name__
2096
+
2097
+ # Find, parse, and run all tests in the given module.
2098
+ finder = DocTestFinder(exclude_empty=exclude_empty)
2099
+
2100
+ if raise_on_error:
2101
+ runner = DebugRunner(verbose=verbose, optionflags=optionflags)
2102
+ else:
2103
+ runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
2104
+
2105
+ for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):
2106
+ runner.run(test)
2107
+
2108
+ if report:
2109
+ runner.summarize()
2110
+
2111
+ if master is None:
2112
+ master = runner
2113
+ else:
2114
+ master.merge(runner)
2115
+
2116
+ return TestResults(runner.failures, runner.tries, skipped=runner.skips)
2117
+
2118
+
2119
+ def testfile(filename, module_relative=True, name=None, package=None,
2120
+ globs=None, verbose=None, report=True, optionflags=0,
2121
+ extraglobs=None, raise_on_error=False, parser=DocTestParser(),
2122
+ encoding=None):
2123
+ """
2124
+ Test examples in the given file. Return (#failures, #tests).
2125
+
2126
+ Optional keyword arg "module_relative" specifies how filenames
2127
+ should be interpreted:
2128
+
2129
+ - If "module_relative" is True (the default), then "filename"
2130
+ specifies a module-relative path. By default, this path is
2131
+ relative to the calling module's directory; but if the
2132
+ "package" argument is specified, then it is relative to that
2133
+ package. To ensure os-independence, "filename" should use
2134
+ "/" characters to separate path segments, and should not
2135
+ be an absolute path (i.e., it may not begin with "/").
2136
+
2137
+ - If "module_relative" is False, then "filename" specifies an
2138
+ os-specific path. The path may be absolute or relative (to
2139
+ the current working directory).
2140
+
2141
+ Optional keyword arg "name" gives the name of the test; by default
2142
+ use the file's basename.
2143
+
2144
+ Optional keyword argument "package" is a Python package or the
2145
+ name of a Python package whose directory should be used as the
2146
+ base directory for a module relative filename. If no package is
2147
+ specified, then the calling module's directory is used as the base
2148
+ directory for module relative filenames. It is an error to
2149
+ specify "package" if "module_relative" is False.
2150
+
2151
+ Optional keyword arg "globs" gives a dict to be used as the globals
2152
+ when executing examples; by default, use {}. A copy of this dict
2153
+ is actually used for each docstring, so that each docstring's
2154
+ examples start with a clean slate.
2155
+
2156
+ Optional keyword arg "extraglobs" gives a dictionary that should be
2157
+ merged into the globals that are used to execute examples. By
2158
+ default, no extra globals are used.
2159
+
2160
+ Optional keyword arg "verbose" prints lots of stuff if true, prints
2161
+ only failures if false; by default, it's true iff "-v" is in sys.argv.
2162
+
2163
+ Optional keyword arg "report" prints a summary at the end when true,
2164
+ else prints nothing at the end. In verbose mode, the summary is
2165
+ detailed, else very brief (in fact, empty if all tests passed).
2166
+
2167
+ Optional keyword arg "optionflags" or's together module constants,
2168
+ and defaults to 0. Possible values (see the docs for details):
2169
+
2170
+ DONT_ACCEPT_TRUE_FOR_1
2171
+ DONT_ACCEPT_BLANKLINE
2172
+ NORMALIZE_WHITESPACE
2173
+ ELLIPSIS
2174
+ SKIP
2175
+ IGNORE_EXCEPTION_DETAIL
2176
+ REPORT_UDIFF
2177
+ REPORT_CDIFF
2178
+ REPORT_NDIFF
2179
+ REPORT_ONLY_FIRST_FAILURE
2180
+
2181
+ Optional keyword arg "raise_on_error" raises an exception on the
2182
+ first unexpected exception or failure. This allows failures to be
2183
+ post-mortem debugged.
2184
+
2185
+ Optional keyword arg "parser" specifies a DocTestParser (or
2186
+ subclass) that should be used to extract tests from the files.
2187
+
2188
+ Optional keyword arg "encoding" specifies an encoding that should
2189
+ be used to convert the file to unicode.
2190
+
2191
+ Advanced tomfoolery: testmod runs methods of a local instance of
2192
+ class doctest.Tester, then merges the results into (or creates)
2193
+ global Tester instance doctest.master. Methods of doctest.master
2194
+ can be called directly too, if you want to do something unusual.
2195
+ Passing report=0 to testmod is especially useful then, to delay
2196
+ displaying a summary. Invoke doctest.master.summarize(verbose)
2197
+ when you're done fiddling.
2198
+ """
2199
+ global master
2200
+
2201
+ if package and not module_relative:
2202
+ raise ValueError("Package may only be specified for module-"
2203
+ "relative paths.")
2204
+
2205
+ # Relativize the path
2206
+ text, filename = _load_testfile(filename, package, module_relative,
2207
+ encoding or "utf-8")
2208
+
2209
+ # If no name was given, then use the file's name.
2210
+ if name is None:
2211
+ name = os.path.basename(filename)
2212
+
2213
+ # Assemble the globals.
2214
+ if globs is None:
2215
+ globs = {}
2216
+ else:
2217
+ globs = globs.copy()
2218
+ if extraglobs is not None:
2219
+ globs.update(extraglobs)
2220
+ if '__name__' not in globs:
2221
+ globs['__name__'] = '__main__'
2222
+
2223
+ if raise_on_error:
2224
+ runner = DebugRunner(verbose=verbose, optionflags=optionflags)
2225
+ else:
2226
+ runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
2227
+
2228
+ # Read the file, convert it to a test, and run it.
2229
+ test = parser.get_doctest(text, globs, name, filename, 0)
2230
+ runner.run(test)
2231
+
2232
+ if report:
2233
+ runner.summarize()
2234
+
2235
+ if master is None:
2236
+ master = runner
2237
+ else:
2238
+ master.merge(runner)
2239
+
2240
+ return TestResults(runner.failures, runner.tries, skipped=runner.skips)
2241
+
2242
+
2243
+ def run_docstring_examples(f, globs, verbose=False, name="NoName",
2244
+ compileflags=None, optionflags=0):
2245
+ """
2246
+ Test examples in the given object's docstring (`f`), using `globs`
2247
+ as globals. Optional argument `name` is used in failure messages.
2248
+ If the optional argument `verbose` is true, then generate output
2249
+ even if there are no failures.
2250
+
2251
+ `compileflags` gives the set of flags that should be used by the
2252
+ Python compiler when running the examples. If not specified, then
2253
+ it will default to the set of future-import flags that apply to
2254
+ `globs`.
2255
+
2256
+ Optional keyword arg `optionflags` specifies options for the
2257
+ testing and output. See the documentation for `testmod` for more
2258
+ information.
2259
+ """
2260
+ # Find, parse, and run all tests in the given module.
2261
+ finder = DocTestFinder(verbose=verbose, recurse=False)
2262
+ runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
2263
+ for test in finder.find(f, name, globs=globs):
2264
+ runner.run(test, compileflags=compileflags)
2265
+
2266
+ ######################################################################
2267
+ ## 7. Unittest Support
2268
+ ######################################################################
2269
+
2270
+ _unittest_reportflags = 0
2271
+
2272
+ def set_unittest_reportflags(flags):
2273
+ """Sets the unittest option flags.
2274
+
2275
+ The old flag is returned so that a runner could restore the old
2276
+ value if it wished to:
2277
+
2278
+ >>> import doctest
2279
+ >>> old = doctest._unittest_reportflags
2280
+ >>> doctest.set_unittest_reportflags(REPORT_NDIFF |
2281
+ ... REPORT_ONLY_FIRST_FAILURE) == old
2282
+ True
2283
+
2284
+ >>> doctest._unittest_reportflags == (REPORT_NDIFF |
2285
+ ... REPORT_ONLY_FIRST_FAILURE)
2286
+ True
2287
+
2288
+ Only reporting flags can be set:
2289
+
2290
+ >>> doctest.set_unittest_reportflags(ELLIPSIS)
2291
+ Traceback (most recent call last):
2292
+ ...
2293
+ ValueError: ('Only reporting flags allowed', 8)
2294
+
2295
+ >>> doctest.set_unittest_reportflags(old) == (REPORT_NDIFF |
2296
+ ... REPORT_ONLY_FIRST_FAILURE)
2297
+ True
2298
+ """
2299
+ global _unittest_reportflags
2300
+
2301
+ if (flags & REPORTING_FLAGS) != flags:
2302
+ raise ValueError("Only reporting flags allowed", flags)
2303
+ old = _unittest_reportflags
2304
+ _unittest_reportflags = flags
2305
+ return old
2306
+
2307
+
2308
+ class _DocTestCaseRunner(DocTestRunner):
2309
+
2310
+ def __init__(self, *args, test_case, test_result, **kwargs):
2311
+ super().__init__(*args, **kwargs)
2312
+ self._test_case = test_case
2313
+ self._test_result = test_result
2314
+ self._examplenum = 0
2315
+
2316
+ def _subTest(self):
2317
+ subtest = unittest.case._SubTest(self._test_case, str(self._examplenum), {})
2318
+ self._examplenum += 1
2319
+ return subtest
2320
+
2321
+ def report_skip(self, out, test, example):
2322
+ unittest.case._addSkip(self._test_result, self._subTest(), '')
2323
+
2324
+ def report_success(self, out, test, example, got):
2325
+ self._test_result.addSubTest(self._test_case, self._subTest(), None)
2326
+
2327
+ def report_unexpected_exception(self, out, test, example, exc_info):
2328
+ tb = self._add_traceback(exc_info[2], test, example)
2329
+ exc_info = (*exc_info[:2], tb)
2330
+ self._test_result.addSubTest(self._test_case, self._subTest(), exc_info)
2331
+
2332
+ def report_failure(self, out, test, example, got):
2333
+ msg = ('Failed example:\n' + _indent(example.source) +
2334
+ self._checker.output_difference(example, got, self.optionflags).rstrip('\n'))
2335
+ exc = self._test_case.failureException(msg)
2336
+ tb = self._add_traceback(None, test, example)
2337
+ exc_info = (type(exc), exc, tb)
2338
+ self._test_result.addSubTest(self._test_case, self._subTest(), exc_info)
2339
+
2340
+ def _add_traceback(self, traceback, test, example):
2341
+ if test.lineno is None or example.lineno is None:
2342
+ lineno = None
2343
+ else:
2344
+ lineno = test.lineno + example.lineno + 1
2345
+ return types.SimpleNamespace(
2346
+ tb_frame = types.SimpleNamespace(
2347
+ f_globals=test.globs,
2348
+ f_code=types.SimpleNamespace(
2349
+ co_filename=test.filename,
2350
+ co_name=test.name,
2351
+ ),
2352
+ ),
2353
+ tb_next = traceback,
2354
+ tb_lasti = -1,
2355
+ tb_lineno = lineno,
2356
+ )
2357
+
2358
+
2359
+ class DocTestCase(unittest.TestCase):
2360
+
2361
+ def __init__(self, test, optionflags=0, setUp=None, tearDown=None,
2362
+ checker=None):
2363
+
2364
+ super().__init__()
2365
+ self._dt_optionflags = optionflags
2366
+ self._dt_checker = checker
2367
+ self._dt_test = test
2368
+ self._dt_setUp = setUp
2369
+ self._dt_tearDown = tearDown
2370
+
2371
+ def setUp(self):
2372
+ test = self._dt_test
2373
+ self._dt_globs = test.globs.copy()
2374
+
2375
+ if self._dt_setUp is not None:
2376
+ self._dt_setUp(test)
2377
+
2378
+ def tearDown(self):
2379
+ test = self._dt_test
2380
+
2381
+ if self._dt_tearDown is not None:
2382
+ self._dt_tearDown(test)
2383
+
2384
+ # restore the original globs
2385
+ test.globs.clear()
2386
+ test.globs.update(self._dt_globs)
2387
+
2388
+ def run(self, result=None):
2389
+ self._test_result = result
2390
+ return super().run(result)
2391
+
2392
+ def runTest(self):
2393
+ test = self._dt_test
2394
+ optionflags = self._dt_optionflags
2395
+ result = self._test_result
2396
+
2397
+ if not (optionflags & REPORTING_FLAGS):
2398
+ # The option flags don't include any reporting flags,
2399
+ # so add the default reporting flags
2400
+ optionflags |= _unittest_reportflags
2401
+ if getattr(result, 'failfast', False):
2402
+ optionflags |= FAIL_FAST
2403
+
2404
+ runner = _DocTestCaseRunner(optionflags=optionflags,
2405
+ checker=self._dt_checker, verbose=False,
2406
+ test_case=self, test_result=result)
2407
+ results = runner.run(test, clear_globs=False)
2408
+ if results.skipped == results.attempted:
2409
+ raise unittest.SkipTest("all examples were skipped")
2410
+
2411
+ def format_failure(self, err):
2412
+ test = self._dt_test
2413
+ if test.lineno is None:
2414
+ lineno = 'unknown line number'
2415
+ else:
2416
+ lineno = '%s' % test.lineno
2417
+ lname = '.'.join(test.name.split('.')[-1:])
2418
+ return ('Failed doctest test for %s\n'
2419
+ ' File "%s", line %s, in %s\n\n%s'
2420
+ % (test.name, test.filename, lineno, lname, err)
2421
+ )
2422
+
2423
+ def debug(self):
2424
+ r"""Run the test case without results and without catching exceptions
2425
+
2426
+ The unit test framework includes a debug method on test cases
2427
+ and test suites to support post-mortem debugging. The test code
2428
+ is run in such a way that errors are not caught. This way a
2429
+ caller can catch the errors and initiate post-mortem debugging.
2430
+
2431
+ The DocTestCase provides a debug method that raises
2432
+ UnexpectedException errors if there is an unexpected
2433
+ exception:
2434
+
2435
+ >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
2436
+ ... {}, 'foo', 'foo.py', 0)
2437
+ >>> case = DocTestCase(test)
2438
+ >>> try:
2439
+ ... case.debug()
2440
+ ... except UnexpectedException as f:
2441
+ ... failure = f
2442
+
2443
+ The UnexpectedException contains the test, the example, and
2444
+ the original exception:
2445
+
2446
+ >>> failure.test is test
2447
+ True
2448
+
2449
+ >>> failure.example.want
2450
+ '42\n'
2451
+
2452
+ >>> exc_info = failure.exc_info
2453
+ >>> raise exc_info[1] # Already has the traceback
2454
+ Traceback (most recent call last):
2455
+ ...
2456
+ KeyError
2457
+
2458
+ If the output doesn't match, then a DocTestFailure is raised:
2459
+
2460
+ >>> test = DocTestParser().get_doctest('''
2461
+ ... >>> x = 1
2462
+ ... >>> x
2463
+ ... 2
2464
+ ... ''', {}, 'foo', 'foo.py', 0)
2465
+ >>> case = DocTestCase(test)
2466
+
2467
+ >>> try:
2468
+ ... case.debug()
2469
+ ... except DocTestFailure as f:
2470
+ ... failure = f
2471
+
2472
+ DocTestFailure objects provide access to the test:
2473
+
2474
+ >>> failure.test is test
2475
+ True
2476
+
2477
+ As well as to the example:
2478
+
2479
+ >>> failure.example.want
2480
+ '2\n'
2481
+
2482
+ and the actual output:
2483
+
2484
+ >>> failure.got
2485
+ '1\n'
2486
+
2487
+ """
2488
+
2489
+ self.setUp()
2490
+ runner = DebugRunner(optionflags=self._dt_optionflags,
2491
+ checker=self._dt_checker, verbose=False)
2492
+ runner.run(self._dt_test, clear_globs=False)
2493
+ self.tearDown()
2494
+
2495
+ def id(self):
2496
+ return self._dt_test.name
2497
+
2498
+ def __eq__(self, other):
2499
+ if type(self) is not type(other):
2500
+ return NotImplemented
2501
+
2502
+ return self._dt_test == other._dt_test and \
2503
+ self._dt_optionflags == other._dt_optionflags and \
2504
+ self._dt_setUp == other._dt_setUp and \
2505
+ self._dt_tearDown == other._dt_tearDown and \
2506
+ self._dt_checker == other._dt_checker
2507
+
2508
+ def __hash__(self):
2509
+ return hash((self._dt_optionflags, self._dt_setUp, self._dt_tearDown,
2510
+ self._dt_checker))
2511
+
2512
+ def __repr__(self):
2513
+ name = self._dt_test.name.split('.')
2514
+ return "%s (%s)" % (name[-1], '.'.join(name[:-1]))
2515
+
2516
+ __str__ = object.__str__
2517
+
2518
+ def shortDescription(self):
2519
+ return "Doctest: " + self._dt_test.name
2520
+
2521
+ class SkipDocTestCase(DocTestCase):
2522
+ def __init__(self, module):
2523
+ self.module = module
2524
+ super().__init__(None)
2525
+
2526
+ def setUp(self):
2527
+ self.skipTest("DocTestSuite will not work with -O2 and above")
2528
+
2529
+ def test_skip(self):
2530
+ pass
2531
+
2532
+ def shortDescription(self):
2533
+ return "Skipping tests from %s" % self.module.__name__
2534
+
2535
+ __str__ = shortDescription
2536
+
2537
+
2538
+ class _DocTestSuite(unittest.TestSuite):
2539
+
2540
+ def _removeTestAtIndex(self, index):
2541
+ pass
2542
+
2543
+
2544
+ def DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None,
2545
+ **options):
2546
+ """
2547
+ Convert doctest tests for a module to a unittest test suite.
2548
+
2549
+ This converts each documentation string in a module that
2550
+ contains doctest tests to a unittest test case. If any of the
2551
+ tests in a doc string fail, then the test case fails. An exception
2552
+ is raised showing the name of the file containing the test and a
2553
+ (sometimes approximate) line number.
2554
+
2555
+ The `module` argument provides the module to be tested. The argument
2556
+ can be either a module or a module name.
2557
+
2558
+ If no argument is given, the calling module is used.
2559
+
2560
+ A number of options may be provided as keyword arguments:
2561
+
2562
+ setUp
2563
+ A set-up function. This is called before running the
2564
+ tests in each file. The setUp function will be passed a DocTest
2565
+ object. The setUp function can access the test globals as the
2566
+ globs attribute of the test passed.
2567
+
2568
+ tearDown
2569
+ A tear-down function. This is called after running the
2570
+ tests in each file. The tearDown function will be passed a DocTest
2571
+ object. The tearDown function can access the test globals as the
2572
+ globs attribute of the test passed.
2573
+
2574
+ globs
2575
+ A dictionary containing initial global variables for the tests.
2576
+
2577
+ optionflags
2578
+ A set of doctest option flags expressed as an integer.
2579
+ """
2580
+
2581
+ if test_finder is None:
2582
+ test_finder = DocTestFinder()
2583
+
2584
+ module = _normalize_module(module)
2585
+ tests = test_finder.find(module, globs=globs, extraglobs=extraglobs)
2586
+
2587
+ if not tests and sys.flags.optimize >=2:
2588
+ # Skip doctests when running with -O2
2589
+ suite = _DocTestSuite()
2590
+ suite.addTest(SkipDocTestCase(module))
2591
+ return suite
2592
+
2593
+ tests.sort()
2594
+ suite = _DocTestSuite()
2595
+
2596
+ for test in tests:
2597
+ if len(test.examples) == 0:
2598
+ continue
2599
+ if not test.filename:
2600
+ filename = module.__file__
2601
+ if filename[-4:] == ".pyc":
2602
+ filename = filename[:-1]
2603
+ test.filename = filename
2604
+ suite.addTest(DocTestCase(test, **options))
2605
+
2606
+ return suite
2607
+
2608
+ class DocFileCase(DocTestCase):
2609
+
2610
+ def id(self):
2611
+ return '_'.join(self._dt_test.name.split('.'))
2612
+
2613
+ def __repr__(self):
2614
+ return self._dt_test.filename
2615
+
2616
+ def format_failure(self, err):
2617
+ return ('Failed doctest test for %s\n File "%s", line 0\n\n%s'
2618
+ % (self._dt_test.name, self._dt_test.filename, err)
2619
+ )
2620
+
2621
+ def DocFileTest(path, module_relative=True, package=None,
2622
+ globs=None, parser=DocTestParser(),
2623
+ encoding=None, **options):
2624
+ if globs is None:
2625
+ globs = {}
2626
+ else:
2627
+ globs = globs.copy()
2628
+
2629
+ if package and not module_relative:
2630
+ raise ValueError("Package may only be specified for module-"
2631
+ "relative paths.")
2632
+
2633
+ # Relativize the path.
2634
+ doc, path = _load_testfile(path, package, module_relative,
2635
+ encoding or "utf-8")
2636
+
2637
+ if "__file__" not in globs:
2638
+ globs["__file__"] = path
2639
+
2640
+ # Find the file and read it.
2641
+ name = os.path.basename(path)
2642
+
2643
+ # Convert it to a test, and wrap it in a DocFileCase.
2644
+ test = parser.get_doctest(doc, globs, name, path, 0)
2645
+ return DocFileCase(test, **options)
2646
+
2647
+ def DocFileSuite(*paths, **kw):
2648
+ """A unittest suite for one or more doctest files.
2649
+
2650
+ The path to each doctest file is given as a string; the
2651
+ interpretation of that string depends on the keyword argument
2652
+ "module_relative".
2653
+
2654
+ A number of options may be provided as keyword arguments:
2655
+
2656
+ module_relative
2657
+ If "module_relative" is True, then the given file paths are
2658
+ interpreted as os-independent module-relative paths. By
2659
+ default, these paths are relative to the calling module's
2660
+ directory; but if the "package" argument is specified, then
2661
+ they are relative to that package. To ensure os-independence,
2662
+ "filename" should use "/" characters to separate path
2663
+ segments, and may not be an absolute path (i.e., it may not
2664
+ begin with "/").
2665
+
2666
+ If "module_relative" is False, then the given file paths are
2667
+ interpreted as os-specific paths. These paths may be absolute
2668
+ or relative (to the current working directory).
2669
+
2670
+ package
2671
+ A Python package or the name of a Python package whose directory
2672
+ should be used as the base directory for module relative paths.
2673
+ If "package" is not specified, then the calling module's
2674
+ directory is used as the base directory for module relative
2675
+ filenames. It is an error to specify "package" if
2676
+ "module_relative" is False.
2677
+
2678
+ setUp
2679
+ A set-up function. This is called before running the
2680
+ tests in each file. The setUp function will be passed a DocTest
2681
+ object. The setUp function can access the test globals as the
2682
+ globs attribute of the test passed.
2683
+
2684
+ tearDown
2685
+ A tear-down function. This is called after running the
2686
+ tests in each file. The tearDown function will be passed a DocTest
2687
+ object. The tearDown function can access the test globals as the
2688
+ globs attribute of the test passed.
2689
+
2690
+ globs
2691
+ A dictionary containing initial global variables for the tests.
2692
+
2693
+ optionflags
2694
+ A set of doctest option flags expressed as an integer.
2695
+
2696
+ parser
2697
+ A DocTestParser (or subclass) that should be used to extract
2698
+ tests from the files.
2699
+
2700
+ encoding
2701
+ An encoding that will be used to convert the files to unicode.
2702
+ """
2703
+ suite = _DocTestSuite()
2704
+
2705
+ # We do this here so that _normalize_module is called at the right
2706
+ # level. If it were called in DocFileTest, then this function
2707
+ # would be the caller and we might guess the package incorrectly.
2708
+ if kw.get('module_relative', True):
2709
+ kw['package'] = _normalize_module(kw.get('package'))
2710
+
2711
+ for path in paths:
2712
+ suite.addTest(DocFileTest(path, **kw))
2713
+
2714
+ return suite
2715
+
2716
+ ######################################################################
2717
+ ## 8. Debugging Support
2718
+ ######################################################################
2719
+
2720
+ def script_from_examples(s):
2721
+ r"""Extract script from text with examples.
2722
+
2723
+ Converts text with examples to a Python script. Example input is
2724
+ converted to regular code. Example output and all other words
2725
+ are converted to comments:
2726
+
2727
+ >>> text = '''
2728
+ ... Here are examples of simple math.
2729
+ ...
2730
+ ... Python has super accurate integer addition
2731
+ ...
2732
+ ... >>> 2 + 2
2733
+ ... 5
2734
+ ...
2735
+ ... And very friendly error messages:
2736
+ ...
2737
+ ... >>> 1/0
2738
+ ... To Infinity
2739
+ ... And
2740
+ ... Beyond
2741
+ ...
2742
+ ... You can use logic if you want:
2743
+ ...
2744
+ ... >>> if 0:
2745
+ ... ... blah
2746
+ ... ... blah
2747
+ ... ...
2748
+ ...
2749
+ ... Ho hum
2750
+ ... '''
2751
+
2752
+ >>> print(script_from_examples(text))
2753
+ # Here are examples of simple math.
2754
+ #
2755
+ # Python has super accurate integer addition
2756
+ #
2757
+ 2 + 2
2758
+ # Expected:
2759
+ ## 5
2760
+ #
2761
+ # And very friendly error messages:
2762
+ #
2763
+ 1/0
2764
+ # Expected:
2765
+ ## To Infinity
2766
+ ## And
2767
+ ## Beyond
2768
+ #
2769
+ # You can use logic if you want:
2770
+ #
2771
+ if 0:
2772
+ blah
2773
+ blah
2774
+ #
2775
+ # Ho hum
2776
+ <BLANKLINE>
2777
+ """
2778
+ output = []
2779
+ for piece in DocTestParser().parse(s):
2780
+ if isinstance(piece, Example):
2781
+ # Add the example's source code (strip trailing NL)
2782
+ output.append(piece.source[:-1])
2783
+ # Add the expected output:
2784
+ want = piece.want
2785
+ if want:
2786
+ output.append('# Expected:')
2787
+ output += ['## '+l for l in want.split('\n')[:-1]]
2788
+ else:
2789
+ # Add non-example text.
2790
+ output += [_comment_line(l)
2791
+ for l in piece.split('\n')[:-1]]
2792
+
2793
+ # Trim junk on both ends.
2794
+ while output and output[-1] == '#':
2795
+ output.pop()
2796
+ while output and output[0] == '#':
2797
+ output.pop(0)
2798
+ # Combine the output, and return it.
2799
+ # Add a courtesy newline to prevent exec from choking (see bug #1172785)
2800
+ return '\n'.join(output) + '\n'
2801
+
2802
+ def testsource(module, name):
2803
+ """Extract the test sources from a doctest docstring as a script.
2804
+
2805
+ Provide the module (or dotted name of the module) containing the
2806
+ test to be debugged and the name (within the module) of the object
2807
+ with the doc string with tests to be debugged.
2808
+ """
2809
+ module = _normalize_module(module)
2810
+ tests = DocTestFinder().find(module)
2811
+ test = [t for t in tests if t.name == name]
2812
+ if not test:
2813
+ raise ValueError(name, "not found in tests")
2814
+ test = test[0]
2815
+ testsrc = script_from_examples(test.docstring)
2816
+ return testsrc
2817
+
2818
+ def debug_src(src, pm=False, globs=None):
2819
+ """Debug a single doctest docstring, in argument `src`"""
2820
+ testsrc = script_from_examples(src)
2821
+ debug_script(testsrc, pm, globs)
2822
+
2823
+ def debug_script(src, pm=False, globs=None):
2824
+ "Debug a test script. `src` is the script, as a string."
2825
+ import pdb
2826
+
2827
+ if globs:
2828
+ globs = globs.copy()
2829
+ else:
2830
+ globs = {}
2831
+
2832
+ if pm:
2833
+ try:
2834
+ exec(src, globs, globs)
2835
+ except:
2836
+ print(sys.exc_info()[1])
2837
+ p = pdb.Pdb(nosigint=True)
2838
+ p.reset()
2839
+ p.interaction(None, sys.exc_info()[2])
2840
+ else:
2841
+ pdb.Pdb(nosigint=True).run("exec(%r)" % src, globs, globs)
2842
+
2843
+ def debug(module, name, pm=False):
2844
+ """Debug a single doctest docstring.
2845
+
2846
+ Provide the module (or dotted name of the module) containing the
2847
+ test to be debugged and the name (within the module) of the object
2848
+ with the docstring with tests to be debugged.
2849
+ """
2850
+ module = _normalize_module(module)
2851
+ testsrc = testsource(module, name)
2852
+ debug_script(testsrc, pm, module.__dict__)
2853
+
2854
+ ######################################################################
2855
+ ## 9. Example Usage
2856
+ ######################################################################
2857
+ class _TestClass:
2858
+ """
2859
+ A pointless class, for sanity-checking of docstring testing.
2860
+
2861
+ Methods:
2862
+ square()
2863
+ get()
2864
+
2865
+ >>> _TestClass(13).get() + _TestClass(-12).get()
2866
+ 1
2867
+ >>> hex(_TestClass(13).square().get())
2868
+ '0xa9'
2869
+ """
2870
+
2871
+ def __init__(self, val):
2872
+ """val -> _TestClass object with associated value val.
2873
+
2874
+ >>> t = _TestClass(123)
2875
+ >>> print(t.get())
2876
+ 123
2877
+ """
2878
+
2879
+ self.val = val
2880
+
2881
+ def square(self):
2882
+ """square() -> square TestClass's associated value
2883
+
2884
+ >>> _TestClass(13).square().get()
2885
+ 169
2886
+ """
2887
+
2888
+ self.val = self.val ** 2
2889
+ return self
2890
+
2891
+ def get(self):
2892
+ """get() -> return TestClass's associated value.
2893
+
2894
+ >>> x = _TestClass(-42)
2895
+ >>> print(x.get())
2896
+ -42
2897
+ """
2898
+
2899
+ return self.val
2900
+
2901
+ __test__ = {"_TestClass": _TestClass,
2902
+ "string": r"""
2903
+ Example of a string object, searched as-is.
2904
+ >>> x = 1; y = 2
2905
+ >>> x + y, x * y
2906
+ (3, 2)
2907
+ """,
2908
+
2909
+ "bool-int equivalence": r"""
2910
+ In 2.2, boolean expressions displayed
2911
+ 0 or 1. By default, we still accept
2912
+ them. This can be disabled by passing
2913
+ DONT_ACCEPT_TRUE_FOR_1 to the new
2914
+ optionflags argument.
2915
+ >>> 4 == 4
2916
+ 1
2917
+ >>> 4 == 4
2918
+ True
2919
+ >>> 4 > 4
2920
+ 0
2921
+ >>> 4 > 4
2922
+ False
2923
+ """,
2924
+
2925
+ "blank lines": r"""
2926
+ Blank lines can be marked with <BLANKLINE>:
2927
+ >>> print('foo\n\nbar\n')
2928
+ foo
2929
+ <BLANKLINE>
2930
+ bar
2931
+ <BLANKLINE>
2932
+ """,
2933
+
2934
+ "ellipsis": r"""
2935
+ If the ellipsis flag is used, then '...' can be used to
2936
+ elide substrings in the desired output:
2937
+ >>> print(list(range(1000))) #doctest: +ELLIPSIS
2938
+ [0, 1, 2, ..., 999]
2939
+ """,
2940
+
2941
+ "whitespace normalization": r"""
2942
+ If the whitespace normalization flag is used, then
2943
+ differences in whitespace are ignored.
2944
+ >>> print(list(range(30))) #doctest: +NORMALIZE_WHITESPACE
2945
+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
2946
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
2947
+ 27, 28, 29]
2948
+ """,
2949
+ }
2950
+
2951
+
2952
+ def _test():
2953
+ import argparse
2954
+
2955
+ parser = argparse.ArgumentParser(description="doctest runner")
2956
+ parser.add_argument('-v', '--verbose', action='store_true', default=False,
2957
+ help='print very verbose output for all tests')
2958
+ parser.add_argument('-o', '--option', action='append',
2959
+ choices=OPTIONFLAGS_BY_NAME.keys(), default=[],
2960
+ help=('specify a doctest option flag to apply'
2961
+ ' to the test run; may be specified more'
2962
+ ' than once to apply multiple options'))
2963
+ parser.add_argument('-f', '--fail-fast', action='store_true',
2964
+ help=('stop running tests after first failure (this'
2965
+ ' is a shorthand for `-o FAIL_FAST`, and is'
2966
+ ' in addition to any other `-o` options)'))
2967
+ parser.add_argument('file', nargs='+',
2968
+ help='file containing the tests to run')
2969
+ args = parser.parse_args()
2970
+ testfiles = args.file
2971
+ # Verbose used to be handled by the "inspect argv" magic in DocTestRunner,
2972
+ # but since we are using argparse we are passing it manually now.
2973
+ verbose = args.verbose
2974
+ options = 0
2975
+ for option in args.option:
2976
+ options |= OPTIONFLAGS_BY_NAME[option]
2977
+ if args.fail_fast:
2978
+ options |= FAIL_FAST
2979
+ for filename in testfiles:
2980
+ if filename.endswith(".py"):
2981
+ # It is a module -- insert its dir into sys.path and try to
2982
+ # import it. If it is part of a package, that possibly
2983
+ # won't work because of package imports.
2984
+ dirname, filename = os.path.split(filename)
2985
+ sys.path.insert(0, dirname)
2986
+ m = __import__(filename[:-3])
2987
+ del sys.path[0]
2988
+ failures, _ = testmod(m, verbose=verbose, optionflags=options)
2989
+ else:
2990
+ failures, _ = testfile(filename, module_relative=False,
2991
+ verbose=verbose, optionflags=options)
2992
+ if failures:
2993
+ return 1
2994
+ return 0
2995
+
2996
+
2997
+ if __name__ == "__main__":
2998
+ sys.exit(_test())