@djlint/linux-s390x-gnu 0.0.0-stage → 1.54.0

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