@djlint/linux-arm64-musl 0.0.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1753) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +3 -1
  3. package/package.json +1 -8
  4. package/python/bin/python3 +0 -0
  5. package/python/lib/python3.15/LICENSE.txt +277 -0
  6. package/python/lib/python3.15/__future__.py +147 -0
  7. package/python/lib/python3.15/__hello__.py +16 -0
  8. package/python/lib/python3.15/__phello__/__init__.py +7 -0
  9. package/python/lib/python3.15/__phello__/__pycache__/__init__.cpython-315.pyc +0 -0
  10. package/python/lib/python3.15/__phello__/__pycache__/spam.cpython-315.pyc +0 -0
  11. package/python/lib/python3.15/__phello__/spam.py +7 -0
  12. package/python/lib/python3.15/__pycache__/__future__.cpython-315.pyc +0 -0
  13. package/python/lib/python3.15/__pycache__/__hello__.cpython-315.pyc +0 -0
  14. package/python/lib/python3.15/__pycache__/_aix_support.cpython-315.pyc +0 -0
  15. package/python/lib/python3.15/__pycache__/_android_support.cpython-315.pyc +0 -0
  16. package/python/lib/python3.15/__pycache__/_apple_support.cpython-315.pyc +0 -0
  17. package/python/lib/python3.15/__pycache__/_ast_unparse.cpython-315.pyc +0 -0
  18. package/python/lib/python3.15/__pycache__/_collections_abc.cpython-315.pyc +0 -0
  19. package/python/lib/python3.15/__pycache__/_colorize.cpython-315.pyc +0 -0
  20. package/python/lib/python3.15/__pycache__/_compat_pickle.cpython-315.pyc +0 -0
  21. package/python/lib/python3.15/__pycache__/_ios_support.cpython-315.pyc +0 -0
  22. package/python/lib/python3.15/__pycache__/_markupbase.cpython-315.pyc +0 -0
  23. package/python/lib/python3.15/__pycache__/_missing_stdlib_info.cpython-315.pyc +0 -0
  24. package/python/lib/python3.15/__pycache__/_opcode_metadata.cpython-315.pyc +0 -0
  25. package/python/lib/python3.15/__pycache__/_osx_support.cpython-315.pyc +0 -0
  26. package/python/lib/python3.15/__pycache__/_py_abc.cpython-315.pyc +0 -0
  27. package/python/lib/python3.15/__pycache__/_py_warnings.cpython-315.pyc +0 -0
  28. package/python/lib/python3.15/__pycache__/_pydatetime.cpython-315.pyc +0 -0
  29. package/python/lib/python3.15/__pycache__/_pydecimal.cpython-315.pyc +0 -0
  30. package/python/lib/python3.15/__pycache__/_pyio.cpython-315.pyc +0 -0
  31. package/python/lib/python3.15/__pycache__/_pylong.cpython-315.pyc +0 -0
  32. package/python/lib/python3.15/__pycache__/_sitebuiltins.cpython-315.pyc +0 -0
  33. package/python/lib/python3.15/__pycache__/_strptime.cpython-315.pyc +0 -0
  34. package/python/lib/python3.15/__pycache__/_sysconfigdata__linux_aarch64-linux-musl.cpython-315.pyc +0 -0
  35. package/python/lib/python3.15/__pycache__/_threading_local.cpython-315.pyc +0 -0
  36. package/python/lib/python3.15/__pycache__/_weakrefset.cpython-315.pyc +0 -0
  37. package/python/lib/python3.15/__pycache__/abc.cpython-315.pyc +0 -0
  38. package/python/lib/python3.15/__pycache__/annotationlib.cpython-315.pyc +0 -0
  39. package/python/lib/python3.15/__pycache__/antigravity.cpython-315.pyc +0 -0
  40. package/python/lib/python3.15/__pycache__/argparse.cpython-315.pyc +0 -0
  41. package/python/lib/python3.15/__pycache__/ast.cpython-315.pyc +0 -0
  42. package/python/lib/python3.15/__pycache__/base64.cpython-315.pyc +0 -0
  43. package/python/lib/python3.15/__pycache__/bdb.cpython-315.pyc +0 -0
  44. package/python/lib/python3.15/__pycache__/bisect.cpython-315.pyc +0 -0
  45. package/python/lib/python3.15/__pycache__/bz2.cpython-315.pyc +0 -0
  46. package/python/lib/python3.15/__pycache__/cProfile.cpython-315.pyc +0 -0
  47. package/python/lib/python3.15/__pycache__/calendar.cpython-315.pyc +0 -0
  48. package/python/lib/python3.15/__pycache__/cmd.cpython-315.pyc +0 -0
  49. package/python/lib/python3.15/__pycache__/code.cpython-315.pyc +0 -0
  50. package/python/lib/python3.15/__pycache__/codecs.cpython-315.pyc +0 -0
  51. package/python/lib/python3.15/__pycache__/codeop.cpython-315.pyc +0 -0
  52. package/python/lib/python3.15/__pycache__/colorsys.cpython-315.pyc +0 -0
  53. package/python/lib/python3.15/__pycache__/compileall.cpython-315.pyc +0 -0
  54. package/python/lib/python3.15/__pycache__/configparser.cpython-315.pyc +0 -0
  55. package/python/lib/python3.15/__pycache__/contextlib.cpython-315.pyc +0 -0
  56. package/python/lib/python3.15/__pycache__/contextvars.cpython-315.pyc +0 -0
  57. package/python/lib/python3.15/__pycache__/copy.cpython-315.pyc +0 -0
  58. package/python/lib/python3.15/__pycache__/copyreg.cpython-315.pyc +0 -0
  59. package/python/lib/python3.15/__pycache__/csv.cpython-315.pyc +0 -0
  60. package/python/lib/python3.15/__pycache__/dataclasses.cpython-315.pyc +0 -0
  61. package/python/lib/python3.15/__pycache__/datetime.cpython-315.pyc +0 -0
  62. package/python/lib/python3.15/__pycache__/decimal.cpython-315.pyc +0 -0
  63. package/python/lib/python3.15/__pycache__/difflib.cpython-315.pyc +0 -0
  64. package/python/lib/python3.15/__pycache__/dis.cpython-315.pyc +0 -0
  65. package/python/lib/python3.15/__pycache__/doctest.cpython-315.pyc +0 -0
  66. package/python/lib/python3.15/__pycache__/enum.cpython-315.pyc +0 -0
  67. package/python/lib/python3.15/__pycache__/filecmp.cpython-315.pyc +0 -0
  68. package/python/lib/python3.15/__pycache__/fileinput.cpython-315.pyc +0 -0
  69. package/python/lib/python3.15/__pycache__/fnmatch.cpython-315.pyc +0 -0
  70. package/python/lib/python3.15/__pycache__/fractions.cpython-315.pyc +0 -0
  71. package/python/lib/python3.15/__pycache__/ftplib.cpython-315.pyc +0 -0
  72. package/python/lib/python3.15/__pycache__/functools.cpython-315.pyc +0 -0
  73. package/python/lib/python3.15/__pycache__/genericpath.cpython-315.pyc +0 -0
  74. package/python/lib/python3.15/__pycache__/getopt.cpython-315.pyc +0 -0
  75. package/python/lib/python3.15/__pycache__/getpass.cpython-315.pyc +0 -0
  76. package/python/lib/python3.15/__pycache__/gettext.cpython-315.pyc +0 -0
  77. package/python/lib/python3.15/__pycache__/glob.cpython-315.pyc +0 -0
  78. package/python/lib/python3.15/__pycache__/graphlib.cpython-315.pyc +0 -0
  79. package/python/lib/python3.15/__pycache__/gzip.cpython-315.pyc +0 -0
  80. package/python/lib/python3.15/__pycache__/hashlib.cpython-315.pyc +0 -0
  81. package/python/lib/python3.15/__pycache__/heapq.cpython-315.pyc +0 -0
  82. package/python/lib/python3.15/__pycache__/hmac.cpython-315.pyc +0 -0
  83. package/python/lib/python3.15/__pycache__/imaplib.cpython-315.pyc +0 -0
  84. package/python/lib/python3.15/__pycache__/inspect.cpython-315.pyc +0 -0
  85. package/python/lib/python3.15/__pycache__/io.cpython-315.pyc +0 -0
  86. package/python/lib/python3.15/__pycache__/ipaddress.cpython-315.pyc +0 -0
  87. package/python/lib/python3.15/__pycache__/keyword.cpython-315.pyc +0 -0
  88. package/python/lib/python3.15/__pycache__/linecache.cpython-315.pyc +0 -0
  89. package/python/lib/python3.15/__pycache__/locale.cpython-315.pyc +0 -0
  90. package/python/lib/python3.15/__pycache__/lzma.cpython-315.pyc +0 -0
  91. package/python/lib/python3.15/__pycache__/mailbox.cpython-315.pyc +0 -0
  92. package/python/lib/python3.15/__pycache__/mimetypes.cpython-315.pyc +0 -0
  93. package/python/lib/python3.15/__pycache__/modulefinder.cpython-315.pyc +0 -0
  94. package/python/lib/python3.15/__pycache__/netrc.cpython-315.pyc +0 -0
  95. package/python/lib/python3.15/__pycache__/ntpath.cpython-315.pyc +0 -0
  96. package/python/lib/python3.15/__pycache__/nturl2path.cpython-315.pyc +0 -0
  97. package/python/lib/python3.15/__pycache__/numbers.cpython-315.pyc +0 -0
  98. package/python/lib/python3.15/__pycache__/opcode.cpython-315.pyc +0 -0
  99. package/python/lib/python3.15/__pycache__/operator.cpython-315.pyc +0 -0
  100. package/python/lib/python3.15/__pycache__/optparse.cpython-315.pyc +0 -0
  101. package/python/lib/python3.15/__pycache__/os.cpython-315.pyc +0 -0
  102. package/python/lib/python3.15/__pycache__/pdb.cpython-315.pyc +0 -0
  103. package/python/lib/python3.15/__pycache__/pickle.cpython-315.pyc +0 -0
  104. package/python/lib/python3.15/__pycache__/pickletools.cpython-315.pyc +0 -0
  105. package/python/lib/python3.15/__pycache__/pkgutil.cpython-315.pyc +0 -0
  106. package/python/lib/python3.15/__pycache__/platform.cpython-315.pyc +0 -0
  107. package/python/lib/python3.15/__pycache__/plistlib.cpython-315.pyc +0 -0
  108. package/python/lib/python3.15/__pycache__/poplib.cpython-315.pyc +0 -0
  109. package/python/lib/python3.15/__pycache__/posixpath.cpython-315.pyc +0 -0
  110. package/python/lib/python3.15/__pycache__/pprint.cpython-315.pyc +0 -0
  111. package/python/lib/python3.15/__pycache__/profile.cpython-315.pyc +0 -0
  112. package/python/lib/python3.15/__pycache__/pstats.cpython-315.pyc +0 -0
  113. package/python/lib/python3.15/__pycache__/pty.cpython-315.pyc +0 -0
  114. package/python/lib/python3.15/__pycache__/py_compile.cpython-315.pyc +0 -0
  115. package/python/lib/python3.15/__pycache__/pyclbr.cpython-315.pyc +0 -0
  116. package/python/lib/python3.15/__pycache__/pydoc.cpython-315.pyc +0 -0
  117. package/python/lib/python3.15/__pycache__/queue.cpython-315.pyc +0 -0
  118. package/python/lib/python3.15/__pycache__/quopri.cpython-315.pyc +0 -0
  119. package/python/lib/python3.15/__pycache__/random.cpython-315.pyc +0 -0
  120. package/python/lib/python3.15/__pycache__/reprlib.cpython-315.pyc +0 -0
  121. package/python/lib/python3.15/__pycache__/rlcompleter.cpython-315.pyc +0 -0
  122. package/python/lib/python3.15/__pycache__/runpy.cpython-315.pyc +0 -0
  123. package/python/lib/python3.15/__pycache__/sched.cpython-315.pyc +0 -0
  124. package/python/lib/python3.15/__pycache__/secrets.cpython-315.pyc +0 -0
  125. package/python/lib/python3.15/__pycache__/selectors.cpython-315.pyc +0 -0
  126. package/python/lib/python3.15/__pycache__/shelve.cpython-315.pyc +0 -0
  127. package/python/lib/python3.15/__pycache__/shlex.cpython-315.pyc +0 -0
  128. package/python/lib/python3.15/__pycache__/shutil.cpython-315.pyc +0 -0
  129. package/python/lib/python3.15/__pycache__/signal.cpython-315.pyc +0 -0
  130. package/python/lib/python3.15/__pycache__/site.cpython-315.pyc +0 -0
  131. package/python/lib/python3.15/__pycache__/smtplib.cpython-315.pyc +0 -0
  132. package/python/lib/python3.15/__pycache__/socket.cpython-315.pyc +0 -0
  133. package/python/lib/python3.15/__pycache__/socketserver.cpython-315.pyc +0 -0
  134. package/python/lib/python3.15/__pycache__/ssl.cpython-315.pyc +0 -0
  135. package/python/lib/python3.15/__pycache__/stat.cpython-315.pyc +0 -0
  136. package/python/lib/python3.15/__pycache__/statistics.cpython-315.pyc +0 -0
  137. package/python/lib/python3.15/__pycache__/stringprep.cpython-315.pyc +0 -0
  138. package/python/lib/python3.15/__pycache__/struct.cpython-315.pyc +0 -0
  139. package/python/lib/python3.15/__pycache__/subprocess.cpython-315.pyc +0 -0
  140. package/python/lib/python3.15/__pycache__/symtable.cpython-315.pyc +0 -0
  141. package/python/lib/python3.15/__pycache__/tabnanny.cpython-315.pyc +0 -0
  142. package/python/lib/python3.15/__pycache__/tarfile.cpython-315.pyc +0 -0
  143. package/python/lib/python3.15/__pycache__/tempfile.cpython-315.pyc +0 -0
  144. package/python/lib/python3.15/__pycache__/textwrap.cpython-315.pyc +0 -0
  145. package/python/lib/python3.15/__pycache__/this.cpython-315.pyc +0 -0
  146. package/python/lib/python3.15/__pycache__/threading.cpython-315.pyc +0 -0
  147. package/python/lib/python3.15/__pycache__/timeit.cpython-315.pyc +0 -0
  148. package/python/lib/python3.15/__pycache__/token.cpython-315.pyc +0 -0
  149. package/python/lib/python3.15/__pycache__/tokenize.cpython-315.pyc +0 -0
  150. package/python/lib/python3.15/__pycache__/trace.cpython-315.pyc +0 -0
  151. package/python/lib/python3.15/__pycache__/traceback.cpython-315.pyc +0 -0
  152. package/python/lib/python3.15/__pycache__/tracemalloc.cpython-315.pyc +0 -0
  153. package/python/lib/python3.15/__pycache__/tty.cpython-315.pyc +0 -0
  154. package/python/lib/python3.15/__pycache__/types.cpython-315.pyc +0 -0
  155. package/python/lib/python3.15/__pycache__/typing.cpython-315.pyc +0 -0
  156. package/python/lib/python3.15/__pycache__/uuid.cpython-315.pyc +0 -0
  157. package/python/lib/python3.15/__pycache__/warnings.cpython-315.pyc +0 -0
  158. package/python/lib/python3.15/__pycache__/wave.cpython-315.pyc +0 -0
  159. package/python/lib/python3.15/__pycache__/weakref.cpython-315.pyc +0 -0
  160. package/python/lib/python3.15/__pycache__/webbrowser.cpython-315.pyc +0 -0
  161. package/python/lib/python3.15/__pycache__/zipapp.cpython-315.pyc +0 -0
  162. package/python/lib/python3.15/__pycache__/zipimport.cpython-315.pyc +0 -0
  163. package/python/lib/python3.15/_aix_support.py +108 -0
  164. package/python/lib/python3.15/_android_support.py +192 -0
  165. package/python/lib/python3.15/_apple_support.py +66 -0
  166. package/python/lib/python3.15/_ast_unparse.py +1165 -0
  167. package/python/lib/python3.15/_collections_abc.py +1183 -0
  168. package/python/lib/python3.15/_colorize.py +647 -0
  169. package/python/lib/python3.15/_compat_pickle.py +249 -0
  170. package/python/lib/python3.15/_ios_support.py +74 -0
  171. package/python/lib/python3.15/_markupbase.py +396 -0
  172. package/python/lib/python3.15/_missing_stdlib_info.py +32 -0
  173. package/python/lib/python3.15/_opcode_metadata.py +387 -0
  174. package/python/lib/python3.15/_osx_support.py +580 -0
  175. package/python/lib/python3.15/_py_abc.py +152 -0
  176. package/python/lib/python3.15/_py_warnings.py +928 -0
  177. package/python/lib/python3.15/_pydatetime.py +2779 -0
  178. package/python/lib/python3.15/_pydecimal.py +6514 -0
  179. package/python/lib/python3.15/_pyio.py +2788 -0
  180. package/python/lib/python3.15/_pylong.py +729 -0
  181. package/python/lib/python3.15/_pyrepl/__init__.py +19 -0
  182. package/python/lib/python3.15/_pyrepl/__main__.py +10 -0
  183. package/python/lib/python3.15/_pyrepl/__pycache__/__init__.cpython-315.pyc +0 -0
  184. package/python/lib/python3.15/_pyrepl/__pycache__/__main__.cpython-315.pyc +0 -0
  185. package/python/lib/python3.15/_pyrepl/__pycache__/_module_completer.cpython-315.pyc +0 -0
  186. package/python/lib/python3.15/_pyrepl/__pycache__/_threading_handler.cpython-315.pyc +0 -0
  187. package/python/lib/python3.15/_pyrepl/__pycache__/base_eventqueue.cpython-315.pyc +0 -0
  188. package/python/lib/python3.15/_pyrepl/__pycache__/commands.cpython-315.pyc +0 -0
  189. package/python/lib/python3.15/_pyrepl/__pycache__/completing_reader.cpython-315.pyc +0 -0
  190. package/python/lib/python3.15/_pyrepl/__pycache__/console.cpython-315.pyc +0 -0
  191. package/python/lib/python3.15/_pyrepl/__pycache__/content.cpython-315.pyc +0 -0
  192. package/python/lib/python3.15/_pyrepl/__pycache__/fancy_termios.cpython-315.pyc +0 -0
  193. package/python/lib/python3.15/_pyrepl/__pycache__/fancycompleter.cpython-315.pyc +0 -0
  194. package/python/lib/python3.15/_pyrepl/__pycache__/historical_reader.cpython-315.pyc +0 -0
  195. package/python/lib/python3.15/_pyrepl/__pycache__/input.cpython-315.pyc +0 -0
  196. package/python/lib/python3.15/_pyrepl/__pycache__/keymap.cpython-315.pyc +0 -0
  197. package/python/lib/python3.15/_pyrepl/__pycache__/layout.cpython-315.pyc +0 -0
  198. package/python/lib/python3.15/_pyrepl/__pycache__/main.cpython-315.pyc +0 -0
  199. package/python/lib/python3.15/_pyrepl/__pycache__/pager.cpython-315.pyc +0 -0
  200. package/python/lib/python3.15/_pyrepl/__pycache__/reader.cpython-315.pyc +0 -0
  201. package/python/lib/python3.15/_pyrepl/__pycache__/readline.cpython-315.pyc +0 -0
  202. package/python/lib/python3.15/_pyrepl/__pycache__/render.cpython-315.pyc +0 -0
  203. package/python/lib/python3.15/_pyrepl/__pycache__/simple_interact.cpython-315.pyc +0 -0
  204. package/python/lib/python3.15/_pyrepl/__pycache__/terminfo.cpython-315.pyc +0 -0
  205. package/python/lib/python3.15/_pyrepl/__pycache__/trace.cpython-315.pyc +0 -0
  206. package/python/lib/python3.15/_pyrepl/__pycache__/types.cpython-315.pyc +0 -0
  207. package/python/lib/python3.15/_pyrepl/__pycache__/unix_console.cpython-315.pyc +0 -0
  208. package/python/lib/python3.15/_pyrepl/__pycache__/unix_eventqueue.cpython-315.pyc +0 -0
  209. package/python/lib/python3.15/_pyrepl/__pycache__/utils.cpython-315.pyc +0 -0
  210. package/python/lib/python3.15/_pyrepl/__pycache__/windows_console.cpython-315.pyc +0 -0
  211. package/python/lib/python3.15/_pyrepl/__pycache__/windows_eventqueue.cpython-315.pyc +0 -0
  212. package/python/lib/python3.15/_pyrepl/_module_completer.py +580 -0
  213. package/python/lib/python3.15/_pyrepl/_threading_handler.py +74 -0
  214. package/python/lib/python3.15/_pyrepl/base_eventqueue.py +110 -0
  215. package/python/lib/python3.15/_pyrepl/commands.py +521 -0
  216. package/python/lib/python3.15/_pyrepl/completing_reader.py +332 -0
  217. package/python/lib/python3.15/_pyrepl/console.py +295 -0
  218. package/python/lib/python3.15/_pyrepl/content.py +136 -0
  219. package/python/lib/python3.15/_pyrepl/fancy_termios.py +82 -0
  220. package/python/lib/python3.15/_pyrepl/fancycompleter.py +213 -0
  221. package/python/lib/python3.15/_pyrepl/historical_reader.py +423 -0
  222. package/python/lib/python3.15/_pyrepl/input.py +115 -0
  223. package/python/lib/python3.15/_pyrepl/keymap.py +213 -0
  224. package/python/lib/python3.15/_pyrepl/layout.py +268 -0
  225. package/python/lib/python3.15/_pyrepl/main.py +58 -0
  226. package/python/lib/python3.15/_pyrepl/mypy.ini +25 -0
  227. package/python/lib/python3.15/_pyrepl/pager.py +175 -0
  228. package/python/lib/python3.15/_pyrepl/reader.py +1035 -0
  229. package/python/lib/python3.15/_pyrepl/readline.py +650 -0
  230. package/python/lib/python3.15/_pyrepl/render.py +399 -0
  231. package/python/lib/python3.15/_pyrepl/simple_interact.py +185 -0
  232. package/python/lib/python3.15/_pyrepl/terminfo.py +488 -0
  233. package/python/lib/python3.15/_pyrepl/trace.py +40 -0
  234. package/python/lib/python3.15/_pyrepl/types.py +16 -0
  235. package/python/lib/python3.15/_pyrepl/unix_console.py +1085 -0
  236. package/python/lib/python3.15/_pyrepl/unix_eventqueue.py +77 -0
  237. package/python/lib/python3.15/_pyrepl/utils.py +456 -0
  238. package/python/lib/python3.15/_pyrepl/windows_console.py +864 -0
  239. package/python/lib/python3.15/_pyrepl/windows_eventqueue.py +42 -0
  240. package/python/lib/python3.15/_sitebuiltins.py +101 -0
  241. package/python/lib/python3.15/_strptime.py +851 -0
  242. package/python/lib/python3.15/_sysconfig_vars__linux_aarch64-linux-musl.json +1196 -0
  243. package/python/lib/python3.15/_sysconfigdata__linux_aarch64-linux-musl.py +1182 -0
  244. package/python/lib/python3.15/_threading_local.py +120 -0
  245. package/python/lib/python3.15/_weakrefset.py +147 -0
  246. package/python/lib/python3.15/abc.py +188 -0
  247. package/python/lib/python3.15/annotationlib.py +1220 -0
  248. package/python/lib/python3.15/antigravity.py +17 -0
  249. package/python/lib/python3.15/argparse.py +2974 -0
  250. package/python/lib/python3.15/ast.py +718 -0
  251. package/python/lib/python3.15/asyncio/__init__.py +74 -0
  252. package/python/lib/python3.15/asyncio/__main__.py +269 -0
  253. package/python/lib/python3.15/asyncio/__pycache__/__init__.cpython-315.pyc +0 -0
  254. package/python/lib/python3.15/asyncio/__pycache__/__main__.cpython-315.pyc +0 -0
  255. package/python/lib/python3.15/asyncio/__pycache__/base_events.cpython-315.pyc +0 -0
  256. package/python/lib/python3.15/asyncio/__pycache__/base_futures.cpython-315.pyc +0 -0
  257. package/python/lib/python3.15/asyncio/__pycache__/base_subprocess.cpython-315.pyc +0 -0
  258. package/python/lib/python3.15/asyncio/__pycache__/base_tasks.cpython-315.pyc +0 -0
  259. package/python/lib/python3.15/asyncio/__pycache__/constants.cpython-315.pyc +0 -0
  260. package/python/lib/python3.15/asyncio/__pycache__/coroutines.cpython-315.pyc +0 -0
  261. package/python/lib/python3.15/asyncio/__pycache__/events.cpython-315.pyc +0 -0
  262. package/python/lib/python3.15/asyncio/__pycache__/exceptions.cpython-315.pyc +0 -0
  263. package/python/lib/python3.15/asyncio/__pycache__/format_helpers.cpython-315.pyc +0 -0
  264. package/python/lib/python3.15/asyncio/__pycache__/futures.cpython-315.pyc +0 -0
  265. package/python/lib/python3.15/asyncio/__pycache__/graph.cpython-315.pyc +0 -0
  266. package/python/lib/python3.15/asyncio/__pycache__/locks.cpython-315.pyc +0 -0
  267. package/python/lib/python3.15/asyncio/__pycache__/log.cpython-315.pyc +0 -0
  268. package/python/lib/python3.15/asyncio/__pycache__/mixins.cpython-315.pyc +0 -0
  269. package/python/lib/python3.15/asyncio/__pycache__/proactor_events.cpython-315.pyc +0 -0
  270. package/python/lib/python3.15/asyncio/__pycache__/protocols.cpython-315.pyc +0 -0
  271. package/python/lib/python3.15/asyncio/__pycache__/queues.cpython-315.pyc +0 -0
  272. package/python/lib/python3.15/asyncio/__pycache__/runners.cpython-315.pyc +0 -0
  273. package/python/lib/python3.15/asyncio/__pycache__/selector_events.cpython-315.pyc +0 -0
  274. package/python/lib/python3.15/asyncio/__pycache__/sslproto.cpython-315.pyc +0 -0
  275. package/python/lib/python3.15/asyncio/__pycache__/staggered.cpython-315.pyc +0 -0
  276. package/python/lib/python3.15/asyncio/__pycache__/streams.cpython-315.pyc +0 -0
  277. package/python/lib/python3.15/asyncio/__pycache__/subprocess.cpython-315.pyc +0 -0
  278. package/python/lib/python3.15/asyncio/__pycache__/taskgroups.cpython-315.pyc +0 -0
  279. package/python/lib/python3.15/asyncio/__pycache__/tasks.cpython-315.pyc +0 -0
  280. package/python/lib/python3.15/asyncio/__pycache__/threads.cpython-315.pyc +0 -0
  281. package/python/lib/python3.15/asyncio/__pycache__/timeouts.cpython-315.pyc +0 -0
  282. package/python/lib/python3.15/asyncio/__pycache__/tools.cpython-315.pyc +0 -0
  283. package/python/lib/python3.15/asyncio/__pycache__/transports.cpython-315.pyc +0 -0
  284. package/python/lib/python3.15/asyncio/__pycache__/trsock.cpython-315.pyc +0 -0
  285. package/python/lib/python3.15/asyncio/__pycache__/unix_events.cpython-315.pyc +0 -0
  286. package/python/lib/python3.15/asyncio/__pycache__/windows_events.cpython-315.pyc +0 -0
  287. package/python/lib/python3.15/asyncio/__pycache__/windows_utils.cpython-315.pyc +0 -0
  288. package/python/lib/python3.15/asyncio/base_events.py +2098 -0
  289. package/python/lib/python3.15/asyncio/base_futures.py +67 -0
  290. package/python/lib/python3.15/asyncio/base_subprocess.py +327 -0
  291. package/python/lib/python3.15/asyncio/base_tasks.py +94 -0
  292. package/python/lib/python3.15/asyncio/constants.py +41 -0
  293. package/python/lib/python3.15/asyncio/coroutines.py +118 -0
  294. package/python/lib/python3.15/asyncio/events.py +881 -0
  295. package/python/lib/python3.15/asyncio/exceptions.py +62 -0
  296. package/python/lib/python3.15/asyncio/format_helpers.py +84 -0
  297. package/python/lib/python3.15/asyncio/futures.py +482 -0
  298. package/python/lib/python3.15/asyncio/graph.py +279 -0
  299. package/python/lib/python3.15/asyncio/locks.py +617 -0
  300. package/python/lib/python3.15/asyncio/log.py +7 -0
  301. package/python/lib/python3.15/asyncio/mixins.py +21 -0
  302. package/python/lib/python3.15/asyncio/proactor_events.py +923 -0
  303. package/python/lib/python3.15/asyncio/protocols.py +216 -0
  304. package/python/lib/python3.15/asyncio/queues.py +309 -0
  305. package/python/lib/python3.15/asyncio/runners.py +226 -0
  306. package/python/lib/python3.15/asyncio/selector_events.py +1351 -0
  307. package/python/lib/python3.15/asyncio/sslproto.py +937 -0
  308. package/python/lib/python3.15/asyncio/staggered.py +178 -0
  309. package/python/lib/python3.15/asyncio/streams.py +790 -0
  310. package/python/lib/python3.15/asyncio/subprocess.py +229 -0
  311. package/python/lib/python3.15/asyncio/taskgroups.py +334 -0
  312. package/python/lib/python3.15/asyncio/tasks.py +1154 -0
  313. package/python/lib/python3.15/asyncio/threads.py +26 -0
  314. package/python/lib/python3.15/asyncio/timeouts.py +183 -0
  315. package/python/lib/python3.15/asyncio/tools.py +289 -0
  316. package/python/lib/python3.15/asyncio/transports.py +337 -0
  317. package/python/lib/python3.15/asyncio/trsock.py +98 -0
  318. package/python/lib/python3.15/asyncio/unix_events.py +1031 -0
  319. package/python/lib/python3.15/asyncio/windows_events.py +899 -0
  320. package/python/lib/python3.15/asyncio/windows_utils.py +181 -0
  321. package/python/lib/python3.15/base64.py +498 -0
  322. package/python/lib/python3.15/bdb.py +1205 -0
  323. package/python/lib/python3.15/bisect.py +118 -0
  324. package/python/lib/python3.15/build-details.json +61 -0
  325. package/python/lib/python3.15/bz2.py +352 -0
  326. package/python/lib/python3.15/cProfile.py +13 -0
  327. package/python/lib/python3.15/calendar.py +997 -0
  328. package/python/lib/python3.15/cmd.py +414 -0
  329. package/python/lib/python3.15/code.py +396 -0
  330. package/python/lib/python3.15/codecs.py +1125 -0
  331. package/python/lib/python3.15/codeop.py +154 -0
  332. package/python/lib/python3.15/collections/__init__.py +1667 -0
  333. package/python/lib/python3.15/collections/__pycache__/__init__.cpython-315.pyc +0 -0
  334. package/python/lib/python3.15/colorsys.py +166 -0
  335. package/python/lib/python3.15/compileall.py +479 -0
  336. package/python/lib/python3.15/compression/__init__.py +0 -0
  337. package/python/lib/python3.15/compression/__pycache__/__init__.cpython-315.pyc +0 -0
  338. package/python/lib/python3.15/compression/__pycache__/bz2.cpython-315.pyc +0 -0
  339. package/python/lib/python3.15/compression/__pycache__/gzip.cpython-315.pyc +0 -0
  340. package/python/lib/python3.15/compression/__pycache__/lzma.cpython-315.pyc +0 -0
  341. package/python/lib/python3.15/compression/__pycache__/zlib.cpython-315.pyc +0 -0
  342. package/python/lib/python3.15/compression/_common/__init__.py +0 -0
  343. package/python/lib/python3.15/compression/_common/__pycache__/__init__.cpython-315.pyc +0 -0
  344. package/python/lib/python3.15/compression/_common/__pycache__/_streams.cpython-315.pyc +0 -0
  345. package/python/lib/python3.15/compression/_common/_streams.py +162 -0
  346. package/python/lib/python3.15/compression/bz2.py +5 -0
  347. package/python/lib/python3.15/compression/gzip.py +5 -0
  348. package/python/lib/python3.15/compression/lzma.py +5 -0
  349. package/python/lib/python3.15/compression/zlib.py +5 -0
  350. package/python/lib/python3.15/compression/zstd/__init__.py +244 -0
  351. package/python/lib/python3.15/compression/zstd/__pycache__/__init__.cpython-315.pyc +0 -0
  352. package/python/lib/python3.15/compression/zstd/__pycache__/_zstdfile.cpython-315.pyc +0 -0
  353. package/python/lib/python3.15/compression/zstd/_zstdfile.py +347 -0
  354. package/python/lib/python3.15/concurrent/__init__.py +1 -0
  355. package/python/lib/python3.15/concurrent/__pycache__/__init__.cpython-315.pyc +0 -0
  356. package/python/lib/python3.15/concurrent/futures/__init__.py +51 -0
  357. package/python/lib/python3.15/concurrent/futures/__pycache__/__init__.cpython-315.pyc +0 -0
  358. package/python/lib/python3.15/concurrent/futures/__pycache__/_base.cpython-315.pyc +0 -0
  359. package/python/lib/python3.15/concurrent/futures/__pycache__/interpreter.cpython-315.pyc +0 -0
  360. package/python/lib/python3.15/concurrent/futures/__pycache__/process.cpython-315.pyc +0 -0
  361. package/python/lib/python3.15/concurrent/futures/__pycache__/thread.cpython-315.pyc +0 -0
  362. package/python/lib/python3.15/concurrent/futures/_base.py +707 -0
  363. package/python/lib/python3.15/concurrent/futures/interpreter.py +123 -0
  364. package/python/lib/python3.15/concurrent/futures/process.py +1060 -0
  365. package/python/lib/python3.15/concurrent/futures/thread.py +274 -0
  366. package/python/lib/python3.15/concurrent/interpreters/__init__.py +253 -0
  367. package/python/lib/python3.15/concurrent/interpreters/__pycache__/__init__.cpython-315.pyc +0 -0
  368. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_crossinterp.cpython-315.pyc +0 -0
  369. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_queues.cpython-315.pyc +0 -0
  370. package/python/lib/python3.15/concurrent/interpreters/_crossinterp.py +107 -0
  371. package/python/lib/python3.15/concurrent/interpreters/_queues.py +289 -0
  372. package/python/lib/python3.15/configparser.py +1426 -0
  373. package/python/lib/python3.15/contextlib.py +859 -0
  374. package/python/lib/python3.15/contextvars.py +8 -0
  375. package/python/lib/python3.15/copy.py +300 -0
  376. package/python/lib/python3.15/copyreg.py +222 -0
  377. package/python/lib/python3.15/csv.py +536 -0
  378. package/python/lib/python3.15/ctypes/__init__.py +684 -0
  379. package/python/lib/python3.15/ctypes/__pycache__/__init__.cpython-315.pyc +0 -0
  380. package/python/lib/python3.15/ctypes/__pycache__/_aix.cpython-315.pyc +0 -0
  381. package/python/lib/python3.15/ctypes/__pycache__/_endian.cpython-315.pyc +0 -0
  382. package/python/lib/python3.15/ctypes/__pycache__/_layout.cpython-315.pyc +0 -0
  383. package/python/lib/python3.15/ctypes/__pycache__/util.cpython-315.pyc +0 -0
  384. package/python/lib/python3.15/ctypes/__pycache__/wintypes.cpython-315.pyc +0 -0
  385. package/python/lib/python3.15/ctypes/_aix.py +327 -0
  386. package/python/lib/python3.15/ctypes/_endian.py +78 -0
  387. package/python/lib/python3.15/ctypes/_layout.py +331 -0
  388. package/python/lib/python3.15/ctypes/macholib/README.ctypes +7 -0
  389. package/python/lib/python3.15/ctypes/macholib/__init__.py +15 -0
  390. package/python/lib/python3.15/ctypes/macholib/__pycache__/__init__.cpython-315.pyc +0 -0
  391. package/python/lib/python3.15/ctypes/macholib/__pycache__/dyld.cpython-315.pyc +0 -0
  392. package/python/lib/python3.15/ctypes/macholib/__pycache__/dylib.cpython-315.pyc +0 -0
  393. package/python/lib/python3.15/ctypes/macholib/__pycache__/framework.cpython-315.pyc +0 -0
  394. package/python/lib/python3.15/ctypes/macholib/dyld.py +165 -0
  395. package/python/lib/python3.15/ctypes/macholib/dylib.py +42 -0
  396. package/python/lib/python3.15/ctypes/macholib/fetch_macholib +2 -0
  397. package/python/lib/python3.15/ctypes/macholib/fetch_macholib.bat +1 -0
  398. package/python/lib/python3.15/ctypes/macholib/framework.py +42 -0
  399. package/python/lib/python3.15/ctypes/util.py +503 -0
  400. package/python/lib/python3.15/ctypes/wintypes.py +210 -0
  401. package/python/lib/python3.15/curses/__init__.py +101 -0
  402. package/python/lib/python3.15/curses/__pycache__/__init__.cpython-315.pyc +0 -0
  403. package/python/lib/python3.15/curses/__pycache__/ascii.cpython-315.pyc +0 -0
  404. package/python/lib/python3.15/curses/__pycache__/has_key.cpython-315.pyc +0 -0
  405. package/python/lib/python3.15/curses/__pycache__/panel.cpython-315.pyc +0 -0
  406. package/python/lib/python3.15/curses/__pycache__/textpad.cpython-315.pyc +0 -0
  407. package/python/lib/python3.15/curses/ascii.py +99 -0
  408. package/python/lib/python3.15/curses/has_key.py +192 -0
  409. package/python/lib/python3.15/curses/panel.py +6 -0
  410. package/python/lib/python3.15/curses/textpad.py +236 -0
  411. package/python/lib/python3.15/dataclasses.py +1826 -0
  412. package/python/lib/python3.15/datetime.py +13 -0
  413. package/python/lib/python3.15/dbm/__init__.py +194 -0
  414. package/python/lib/python3.15/dbm/__pycache__/__init__.cpython-315.pyc +0 -0
  415. package/python/lib/python3.15/dbm/__pycache__/dumb.cpython-315.pyc +0 -0
  416. package/python/lib/python3.15/dbm/__pycache__/gnu.cpython-315.pyc +0 -0
  417. package/python/lib/python3.15/dbm/__pycache__/ndbm.cpython-315.pyc +0 -0
  418. package/python/lib/python3.15/dbm/__pycache__/sqlite3.cpython-315.pyc +0 -0
  419. package/python/lib/python3.15/dbm/dumb.py +346 -0
  420. package/python/lib/python3.15/dbm/gnu.py +3 -0
  421. package/python/lib/python3.15/dbm/ndbm.py +3 -0
  422. package/python/lib/python3.15/dbm/sqlite3.py +148 -0
  423. package/python/lib/python3.15/decimal.py +109 -0
  424. package/python/lib/python3.15/difflib.py +2105 -0
  425. package/python/lib/python3.15/dis.py +1172 -0
  426. package/python/lib/python3.15/doctest.py +2998 -0
  427. package/python/lib/python3.15/email/__init__.py +61 -0
  428. package/python/lib/python3.15/email/__pycache__/__init__.cpython-315.pyc +0 -0
  429. package/python/lib/python3.15/email/__pycache__/_encoded_words.cpython-315.pyc +0 -0
  430. package/python/lib/python3.15/email/__pycache__/_header_value_parser.cpython-315.pyc +0 -0
  431. package/python/lib/python3.15/email/__pycache__/_parseaddr.cpython-315.pyc +0 -0
  432. package/python/lib/python3.15/email/__pycache__/_policybase.cpython-315.pyc +0 -0
  433. package/python/lib/python3.15/email/__pycache__/base64mime.cpython-315.pyc +0 -0
  434. package/python/lib/python3.15/email/__pycache__/charset.cpython-315.pyc +0 -0
  435. package/python/lib/python3.15/email/__pycache__/contentmanager.cpython-315.pyc +0 -0
  436. package/python/lib/python3.15/email/__pycache__/encoders.cpython-315.pyc +0 -0
  437. package/python/lib/python3.15/email/__pycache__/errors.cpython-315.pyc +0 -0
  438. package/python/lib/python3.15/email/__pycache__/feedparser.cpython-315.pyc +0 -0
  439. package/python/lib/python3.15/email/__pycache__/generator.cpython-315.pyc +0 -0
  440. package/python/lib/python3.15/email/__pycache__/header.cpython-315.pyc +0 -0
  441. package/python/lib/python3.15/email/__pycache__/headerregistry.cpython-315.pyc +0 -0
  442. package/python/lib/python3.15/email/__pycache__/iterators.cpython-315.pyc +0 -0
  443. package/python/lib/python3.15/email/__pycache__/message.cpython-315.pyc +0 -0
  444. package/python/lib/python3.15/email/__pycache__/parser.cpython-315.pyc +0 -0
  445. package/python/lib/python3.15/email/__pycache__/policy.cpython-315.pyc +0 -0
  446. package/python/lib/python3.15/email/__pycache__/quoprimime.cpython-315.pyc +0 -0
  447. package/python/lib/python3.15/email/__pycache__/utils.cpython-315.pyc +0 -0
  448. package/python/lib/python3.15/email/_encoded_words.py +233 -0
  449. package/python/lib/python3.15/email/_header_value_parser.py +3216 -0
  450. package/python/lib/python3.15/email/_parseaddr.py +563 -0
  451. package/python/lib/python3.15/email/_policybase.py +392 -0
  452. package/python/lib/python3.15/email/architecture.rst +216 -0
  453. package/python/lib/python3.15/email/base64mime.py +114 -0
  454. package/python/lib/python3.15/email/charset.py +442 -0
  455. package/python/lib/python3.15/email/contentmanager.py +242 -0
  456. package/python/lib/python3.15/email/encoders.py +65 -0
  457. package/python/lib/python3.15/email/errors.py +117 -0
  458. package/python/lib/python3.15/email/feedparser.py +536 -0
  459. package/python/lib/python3.15/email/generator.py +530 -0
  460. package/python/lib/python3.15/email/header.py +582 -0
  461. package/python/lib/python3.15/email/headerregistry.py +616 -0
  462. package/python/lib/python3.15/email/iterators.py +68 -0
  463. package/python/lib/python3.15/email/message.py +1217 -0
  464. package/python/lib/python3.15/email/mime/__init__.py +0 -0
  465. package/python/lib/python3.15/email/mime/__pycache__/__init__.cpython-315.pyc +0 -0
  466. package/python/lib/python3.15/email/mime/__pycache__/application.cpython-315.pyc +0 -0
  467. package/python/lib/python3.15/email/mime/__pycache__/audio.cpython-315.pyc +0 -0
  468. package/python/lib/python3.15/email/mime/__pycache__/base.cpython-315.pyc +0 -0
  469. package/python/lib/python3.15/email/mime/__pycache__/image.cpython-315.pyc +0 -0
  470. package/python/lib/python3.15/email/mime/__pycache__/message.cpython-315.pyc +0 -0
  471. package/python/lib/python3.15/email/mime/__pycache__/multipart.cpython-315.pyc +0 -0
  472. package/python/lib/python3.15/email/mime/__pycache__/nonmultipart.cpython-315.pyc +0 -0
  473. package/python/lib/python3.15/email/mime/__pycache__/text.cpython-315.pyc +0 -0
  474. package/python/lib/python3.15/email/mime/application.py +37 -0
  475. package/python/lib/python3.15/email/mime/audio.py +97 -0
  476. package/python/lib/python3.15/email/mime/base.py +29 -0
  477. package/python/lib/python3.15/email/mime/image.py +152 -0
  478. package/python/lib/python3.15/email/mime/message.py +33 -0
  479. package/python/lib/python3.15/email/mime/multipart.py +47 -0
  480. package/python/lib/python3.15/email/mime/nonmultipart.py +21 -0
  481. package/python/lib/python3.15/email/mime/text.py +40 -0
  482. package/python/lib/python3.15/email/parser.py +127 -0
  483. package/python/lib/python3.15/email/policy.py +239 -0
  484. package/python/lib/python3.15/email/quoprimime.py +300 -0
  485. package/python/lib/python3.15/email/utils.py +493 -0
  486. package/python/lib/python3.15/encodings/__init__.py +178 -0
  487. package/python/lib/python3.15/encodings/__pycache__/__init__.cpython-315.pyc +0 -0
  488. package/python/lib/python3.15/encodings/__pycache__/_win_cp_codecs.cpython-315.pyc +0 -0
  489. package/python/lib/python3.15/encodings/__pycache__/aliases.cpython-315.pyc +0 -0
  490. package/python/lib/python3.15/encodings/__pycache__/ascii.cpython-315.pyc +0 -0
  491. package/python/lib/python3.15/encodings/__pycache__/base64_codec.cpython-315.pyc +0 -0
  492. package/python/lib/python3.15/encodings/__pycache__/big5.cpython-315.pyc +0 -0
  493. package/python/lib/python3.15/encodings/__pycache__/big5hkscs.cpython-315.pyc +0 -0
  494. package/python/lib/python3.15/encodings/__pycache__/bz2_codec.cpython-315.pyc +0 -0
  495. package/python/lib/python3.15/encodings/__pycache__/charmap.cpython-315.pyc +0 -0
  496. package/python/lib/python3.15/encodings/__pycache__/cp037.cpython-315.pyc +0 -0
  497. package/python/lib/python3.15/encodings/__pycache__/cp1006.cpython-315.pyc +0 -0
  498. package/python/lib/python3.15/encodings/__pycache__/cp1026.cpython-315.pyc +0 -0
  499. package/python/lib/python3.15/encodings/__pycache__/cp1125.cpython-315.pyc +0 -0
  500. package/python/lib/python3.15/encodings/__pycache__/cp1140.cpython-315.pyc +0 -0
  501. package/python/lib/python3.15/encodings/__pycache__/cp1250.cpython-315.pyc +0 -0
  502. package/python/lib/python3.15/encodings/__pycache__/cp1251.cpython-315.pyc +0 -0
  503. package/python/lib/python3.15/encodings/__pycache__/cp1252.cpython-315.pyc +0 -0
  504. package/python/lib/python3.15/encodings/__pycache__/cp1253.cpython-315.pyc +0 -0
  505. package/python/lib/python3.15/encodings/__pycache__/cp1254.cpython-315.pyc +0 -0
  506. package/python/lib/python3.15/encodings/__pycache__/cp1255.cpython-315.pyc +0 -0
  507. package/python/lib/python3.15/encodings/__pycache__/cp1256.cpython-315.pyc +0 -0
  508. package/python/lib/python3.15/encodings/__pycache__/cp1257.cpython-315.pyc +0 -0
  509. package/python/lib/python3.15/encodings/__pycache__/cp1258.cpython-315.pyc +0 -0
  510. package/python/lib/python3.15/encodings/__pycache__/cp273.cpython-315.pyc +0 -0
  511. package/python/lib/python3.15/encodings/__pycache__/cp424.cpython-315.pyc +0 -0
  512. package/python/lib/python3.15/encodings/__pycache__/cp437.cpython-315.pyc +0 -0
  513. package/python/lib/python3.15/encodings/__pycache__/cp500.cpython-315.pyc +0 -0
  514. package/python/lib/python3.15/encodings/__pycache__/cp720.cpython-315.pyc +0 -0
  515. package/python/lib/python3.15/encodings/__pycache__/cp737.cpython-315.pyc +0 -0
  516. package/python/lib/python3.15/encodings/__pycache__/cp775.cpython-315.pyc +0 -0
  517. package/python/lib/python3.15/encodings/__pycache__/cp850.cpython-315.pyc +0 -0
  518. package/python/lib/python3.15/encodings/__pycache__/cp852.cpython-315.pyc +0 -0
  519. package/python/lib/python3.15/encodings/__pycache__/cp855.cpython-315.pyc +0 -0
  520. package/python/lib/python3.15/encodings/__pycache__/cp856.cpython-315.pyc +0 -0
  521. package/python/lib/python3.15/encodings/__pycache__/cp857.cpython-315.pyc +0 -0
  522. package/python/lib/python3.15/encodings/__pycache__/cp858.cpython-315.pyc +0 -0
  523. package/python/lib/python3.15/encodings/__pycache__/cp860.cpython-315.pyc +0 -0
  524. package/python/lib/python3.15/encodings/__pycache__/cp861.cpython-315.pyc +0 -0
  525. package/python/lib/python3.15/encodings/__pycache__/cp862.cpython-315.pyc +0 -0
  526. package/python/lib/python3.15/encodings/__pycache__/cp863.cpython-315.pyc +0 -0
  527. package/python/lib/python3.15/encodings/__pycache__/cp864.cpython-315.pyc +0 -0
  528. package/python/lib/python3.15/encodings/__pycache__/cp865.cpython-315.pyc +0 -0
  529. package/python/lib/python3.15/encodings/__pycache__/cp866.cpython-315.pyc +0 -0
  530. package/python/lib/python3.15/encodings/__pycache__/cp869.cpython-315.pyc +0 -0
  531. package/python/lib/python3.15/encodings/__pycache__/cp874.cpython-315.pyc +0 -0
  532. package/python/lib/python3.15/encodings/__pycache__/cp875.cpython-315.pyc +0 -0
  533. package/python/lib/python3.15/encodings/__pycache__/cp932.cpython-315.pyc +0 -0
  534. package/python/lib/python3.15/encodings/__pycache__/cp949.cpython-315.pyc +0 -0
  535. package/python/lib/python3.15/encodings/__pycache__/cp950.cpython-315.pyc +0 -0
  536. package/python/lib/python3.15/encodings/__pycache__/euc_jis_2004.cpython-315.pyc +0 -0
  537. package/python/lib/python3.15/encodings/__pycache__/euc_jisx0213.cpython-315.pyc +0 -0
  538. package/python/lib/python3.15/encodings/__pycache__/euc_jp.cpython-315.pyc +0 -0
  539. package/python/lib/python3.15/encodings/__pycache__/euc_kr.cpython-315.pyc +0 -0
  540. package/python/lib/python3.15/encodings/__pycache__/gb18030.cpython-315.pyc +0 -0
  541. package/python/lib/python3.15/encodings/__pycache__/gb2312.cpython-315.pyc +0 -0
  542. package/python/lib/python3.15/encodings/__pycache__/gbk.cpython-315.pyc +0 -0
  543. package/python/lib/python3.15/encodings/__pycache__/hex_codec.cpython-315.pyc +0 -0
  544. package/python/lib/python3.15/encodings/__pycache__/hp_roman8.cpython-315.pyc +0 -0
  545. package/python/lib/python3.15/encodings/__pycache__/hz.cpython-315.pyc +0 -0
  546. package/python/lib/python3.15/encodings/__pycache__/idna.cpython-315.pyc +0 -0
  547. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp.cpython-315.pyc +0 -0
  548. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_1.cpython-315.pyc +0 -0
  549. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2.cpython-315.pyc +0 -0
  550. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2004.cpython-315.pyc +0 -0
  551. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_3.cpython-315.pyc +0 -0
  552. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_ext.cpython-315.pyc +0 -0
  553. package/python/lib/python3.15/encodings/__pycache__/iso2022_kr.cpython-315.pyc +0 -0
  554. package/python/lib/python3.15/encodings/__pycache__/iso8859_1.cpython-315.pyc +0 -0
  555. package/python/lib/python3.15/encodings/__pycache__/iso8859_10.cpython-315.pyc +0 -0
  556. package/python/lib/python3.15/encodings/__pycache__/iso8859_11.cpython-315.pyc +0 -0
  557. package/python/lib/python3.15/encodings/__pycache__/iso8859_13.cpython-315.pyc +0 -0
  558. package/python/lib/python3.15/encodings/__pycache__/iso8859_14.cpython-315.pyc +0 -0
  559. package/python/lib/python3.15/encodings/__pycache__/iso8859_15.cpython-315.pyc +0 -0
  560. package/python/lib/python3.15/encodings/__pycache__/iso8859_16.cpython-315.pyc +0 -0
  561. package/python/lib/python3.15/encodings/__pycache__/iso8859_2.cpython-315.pyc +0 -0
  562. package/python/lib/python3.15/encodings/__pycache__/iso8859_3.cpython-315.pyc +0 -0
  563. package/python/lib/python3.15/encodings/__pycache__/iso8859_4.cpython-315.pyc +0 -0
  564. package/python/lib/python3.15/encodings/__pycache__/iso8859_5.cpython-315.pyc +0 -0
  565. package/python/lib/python3.15/encodings/__pycache__/iso8859_6.cpython-315.pyc +0 -0
  566. package/python/lib/python3.15/encodings/__pycache__/iso8859_7.cpython-315.pyc +0 -0
  567. package/python/lib/python3.15/encodings/__pycache__/iso8859_8.cpython-315.pyc +0 -0
  568. package/python/lib/python3.15/encodings/__pycache__/iso8859_9.cpython-315.pyc +0 -0
  569. package/python/lib/python3.15/encodings/__pycache__/johab.cpython-315.pyc +0 -0
  570. package/python/lib/python3.15/encodings/__pycache__/koi8_r.cpython-315.pyc +0 -0
  571. package/python/lib/python3.15/encodings/__pycache__/koi8_t.cpython-315.pyc +0 -0
  572. package/python/lib/python3.15/encodings/__pycache__/koi8_u.cpython-315.pyc +0 -0
  573. package/python/lib/python3.15/encodings/__pycache__/kz1048.cpython-315.pyc +0 -0
  574. package/python/lib/python3.15/encodings/__pycache__/latin_1.cpython-315.pyc +0 -0
  575. package/python/lib/python3.15/encodings/__pycache__/mac_arabic.cpython-315.pyc +0 -0
  576. package/python/lib/python3.15/encodings/__pycache__/mac_croatian.cpython-315.pyc +0 -0
  577. package/python/lib/python3.15/encodings/__pycache__/mac_cyrillic.cpython-315.pyc +0 -0
  578. package/python/lib/python3.15/encodings/__pycache__/mac_farsi.cpython-315.pyc +0 -0
  579. package/python/lib/python3.15/encodings/__pycache__/mac_greek.cpython-315.pyc +0 -0
  580. package/python/lib/python3.15/encodings/__pycache__/mac_iceland.cpython-315.pyc +0 -0
  581. package/python/lib/python3.15/encodings/__pycache__/mac_latin2.cpython-315.pyc +0 -0
  582. package/python/lib/python3.15/encodings/__pycache__/mac_roman.cpython-315.pyc +0 -0
  583. package/python/lib/python3.15/encodings/__pycache__/mac_romanian.cpython-315.pyc +0 -0
  584. package/python/lib/python3.15/encodings/__pycache__/mac_turkish.cpython-315.pyc +0 -0
  585. package/python/lib/python3.15/encodings/__pycache__/mbcs.cpython-315.pyc +0 -0
  586. package/python/lib/python3.15/encodings/__pycache__/oem.cpython-315.pyc +0 -0
  587. package/python/lib/python3.15/encodings/__pycache__/palmos.cpython-315.pyc +0 -0
  588. package/python/lib/python3.15/encodings/__pycache__/ptcp154.cpython-315.pyc +0 -0
  589. package/python/lib/python3.15/encodings/__pycache__/punycode.cpython-315.pyc +0 -0
  590. package/python/lib/python3.15/encodings/__pycache__/quopri_codec.cpython-315.pyc +0 -0
  591. package/python/lib/python3.15/encodings/__pycache__/raw_unicode_escape.cpython-315.pyc +0 -0
  592. package/python/lib/python3.15/encodings/__pycache__/rot_13.cpython-315.pyc +0 -0
  593. package/python/lib/python3.15/encodings/__pycache__/shift_jis.cpython-315.pyc +0 -0
  594. package/python/lib/python3.15/encodings/__pycache__/shift_jis_2004.cpython-315.pyc +0 -0
  595. package/python/lib/python3.15/encodings/__pycache__/shift_jisx0213.cpython-315.pyc +0 -0
  596. package/python/lib/python3.15/encodings/__pycache__/tis_620.cpython-315.pyc +0 -0
  597. package/python/lib/python3.15/encodings/__pycache__/undefined.cpython-315.pyc +0 -0
  598. package/python/lib/python3.15/encodings/__pycache__/unicode_escape.cpython-315.pyc +0 -0
  599. package/python/lib/python3.15/encodings/__pycache__/utf_16.cpython-315.pyc +0 -0
  600. package/python/lib/python3.15/encodings/__pycache__/utf_16_be.cpython-315.pyc +0 -0
  601. package/python/lib/python3.15/encodings/__pycache__/utf_16_le.cpython-315.pyc +0 -0
  602. package/python/lib/python3.15/encodings/__pycache__/utf_32.cpython-315.pyc +0 -0
  603. package/python/lib/python3.15/encodings/__pycache__/utf_32_be.cpython-315.pyc +0 -0
  604. package/python/lib/python3.15/encodings/__pycache__/utf_32_le.cpython-315.pyc +0 -0
  605. package/python/lib/python3.15/encodings/__pycache__/utf_7.cpython-315.pyc +0 -0
  606. package/python/lib/python3.15/encodings/__pycache__/utf_8.cpython-315.pyc +0 -0
  607. package/python/lib/python3.15/encodings/__pycache__/utf_8_sig.cpython-315.pyc +0 -0
  608. package/python/lib/python3.15/encodings/__pycache__/uu_codec.cpython-315.pyc +0 -0
  609. package/python/lib/python3.15/encodings/__pycache__/zlib_codec.cpython-315.pyc +0 -0
  610. package/python/lib/python3.15/encodings/_win_cp_codecs.py +36 -0
  611. package/python/lib/python3.15/encodings/aliases.py +627 -0
  612. package/python/lib/python3.15/encodings/ascii.py +50 -0
  613. package/python/lib/python3.15/encodings/base64_codec.py +55 -0
  614. package/python/lib/python3.15/encodings/big5.py +39 -0
  615. package/python/lib/python3.15/encodings/big5hkscs.py +39 -0
  616. package/python/lib/python3.15/encodings/bz2_codec.py +78 -0
  617. package/python/lib/python3.15/encodings/charmap.py +69 -0
  618. package/python/lib/python3.15/encodings/cp037.py +307 -0
  619. package/python/lib/python3.15/encodings/cp1006.py +307 -0
  620. package/python/lib/python3.15/encodings/cp1026.py +307 -0
  621. package/python/lib/python3.15/encodings/cp1125.py +698 -0
  622. package/python/lib/python3.15/encodings/cp1140.py +307 -0
  623. package/python/lib/python3.15/encodings/cp1250.py +307 -0
  624. package/python/lib/python3.15/encodings/cp1251.py +307 -0
  625. package/python/lib/python3.15/encodings/cp1252.py +307 -0
  626. package/python/lib/python3.15/encodings/cp1253.py +307 -0
  627. package/python/lib/python3.15/encodings/cp1254.py +307 -0
  628. package/python/lib/python3.15/encodings/cp1255.py +307 -0
  629. package/python/lib/python3.15/encodings/cp1256.py +307 -0
  630. package/python/lib/python3.15/encodings/cp1257.py +307 -0
  631. package/python/lib/python3.15/encodings/cp1258.py +307 -0
  632. package/python/lib/python3.15/encodings/cp273.py +307 -0
  633. package/python/lib/python3.15/encodings/cp424.py +307 -0
  634. package/python/lib/python3.15/encodings/cp437.py +698 -0
  635. package/python/lib/python3.15/encodings/cp500.py +307 -0
  636. package/python/lib/python3.15/encodings/cp720.py +309 -0
  637. package/python/lib/python3.15/encodings/cp737.py +698 -0
  638. package/python/lib/python3.15/encodings/cp775.py +697 -0
  639. package/python/lib/python3.15/encodings/cp850.py +698 -0
  640. package/python/lib/python3.15/encodings/cp852.py +698 -0
  641. package/python/lib/python3.15/encodings/cp855.py +698 -0
  642. package/python/lib/python3.15/encodings/cp856.py +307 -0
  643. package/python/lib/python3.15/encodings/cp857.py +694 -0
  644. package/python/lib/python3.15/encodings/cp858.py +698 -0
  645. package/python/lib/python3.15/encodings/cp860.py +698 -0
  646. package/python/lib/python3.15/encodings/cp861.py +698 -0
  647. package/python/lib/python3.15/encodings/cp862.py +698 -0
  648. package/python/lib/python3.15/encodings/cp863.py +698 -0
  649. package/python/lib/python3.15/encodings/cp864.py +690 -0
  650. package/python/lib/python3.15/encodings/cp865.py +698 -0
  651. package/python/lib/python3.15/encodings/cp866.py +698 -0
  652. package/python/lib/python3.15/encodings/cp869.py +689 -0
  653. package/python/lib/python3.15/encodings/cp874.py +307 -0
  654. package/python/lib/python3.15/encodings/cp875.py +307 -0
  655. package/python/lib/python3.15/encodings/cp932.py +39 -0
  656. package/python/lib/python3.15/encodings/cp949.py +39 -0
  657. package/python/lib/python3.15/encodings/cp950.py +39 -0
  658. package/python/lib/python3.15/encodings/euc_jis_2004.py +39 -0
  659. package/python/lib/python3.15/encodings/euc_jisx0213.py +39 -0
  660. package/python/lib/python3.15/encodings/euc_jp.py +39 -0
  661. package/python/lib/python3.15/encodings/euc_kr.py +39 -0
  662. package/python/lib/python3.15/encodings/gb18030.py +39 -0
  663. package/python/lib/python3.15/encodings/gb2312.py +39 -0
  664. package/python/lib/python3.15/encodings/gbk.py +39 -0
  665. package/python/lib/python3.15/encodings/hex_codec.py +55 -0
  666. package/python/lib/python3.15/encodings/hp_roman8.py +314 -0
  667. package/python/lib/python3.15/encodings/hz.py +39 -0
  668. package/python/lib/python3.15/encodings/idna.py +388 -0
  669. package/python/lib/python3.15/encodings/iso2022_jp.py +39 -0
  670. package/python/lib/python3.15/encodings/iso2022_jp_1.py +39 -0
  671. package/python/lib/python3.15/encodings/iso2022_jp_2.py +39 -0
  672. package/python/lib/python3.15/encodings/iso2022_jp_2004.py +39 -0
  673. package/python/lib/python3.15/encodings/iso2022_jp_3.py +39 -0
  674. package/python/lib/python3.15/encodings/iso2022_jp_ext.py +39 -0
  675. package/python/lib/python3.15/encodings/iso2022_kr.py +39 -0
  676. package/python/lib/python3.15/encodings/iso8859_1.py +307 -0
  677. package/python/lib/python3.15/encodings/iso8859_10.py +307 -0
  678. package/python/lib/python3.15/encodings/iso8859_11.py +307 -0
  679. package/python/lib/python3.15/encodings/iso8859_13.py +307 -0
  680. package/python/lib/python3.15/encodings/iso8859_14.py +307 -0
  681. package/python/lib/python3.15/encodings/iso8859_15.py +307 -0
  682. package/python/lib/python3.15/encodings/iso8859_16.py +307 -0
  683. package/python/lib/python3.15/encodings/iso8859_2.py +307 -0
  684. package/python/lib/python3.15/encodings/iso8859_3.py +307 -0
  685. package/python/lib/python3.15/encodings/iso8859_4.py +307 -0
  686. package/python/lib/python3.15/encodings/iso8859_5.py +307 -0
  687. package/python/lib/python3.15/encodings/iso8859_6.py +307 -0
  688. package/python/lib/python3.15/encodings/iso8859_7.py +307 -0
  689. package/python/lib/python3.15/encodings/iso8859_8.py +307 -0
  690. package/python/lib/python3.15/encodings/iso8859_9.py +307 -0
  691. package/python/lib/python3.15/encodings/johab.py +39 -0
  692. package/python/lib/python3.15/encodings/koi8_r.py +307 -0
  693. package/python/lib/python3.15/encodings/koi8_t.py +308 -0
  694. package/python/lib/python3.15/encodings/koi8_u.py +307 -0
  695. package/python/lib/python3.15/encodings/kz1048.py +307 -0
  696. package/python/lib/python3.15/encodings/latin_1.py +50 -0
  697. package/python/lib/python3.15/encodings/mac_arabic.py +698 -0
  698. package/python/lib/python3.15/encodings/mac_croatian.py +307 -0
  699. package/python/lib/python3.15/encodings/mac_cyrillic.py +307 -0
  700. package/python/lib/python3.15/encodings/mac_farsi.py +307 -0
  701. package/python/lib/python3.15/encodings/mac_greek.py +307 -0
  702. package/python/lib/python3.15/encodings/mac_iceland.py +307 -0
  703. package/python/lib/python3.15/encodings/mac_latin2.py +312 -0
  704. package/python/lib/python3.15/encodings/mac_roman.py +307 -0
  705. package/python/lib/python3.15/encodings/mac_romanian.py +307 -0
  706. package/python/lib/python3.15/encodings/mac_turkish.py +307 -0
  707. package/python/lib/python3.15/encodings/mbcs.py +47 -0
  708. package/python/lib/python3.15/encodings/oem.py +41 -0
  709. package/python/lib/python3.15/encodings/palmos.py +308 -0
  710. package/python/lib/python3.15/encodings/ptcp154.py +312 -0
  711. package/python/lib/python3.15/encodings/punycode.py +253 -0
  712. package/python/lib/python3.15/encodings/quopri_codec.py +56 -0
  713. package/python/lib/python3.15/encodings/raw_unicode_escape.py +46 -0
  714. package/python/lib/python3.15/encodings/rot_13.py +113 -0
  715. package/python/lib/python3.15/encodings/shift_jis.py +39 -0
  716. package/python/lib/python3.15/encodings/shift_jis_2004.py +39 -0
  717. package/python/lib/python3.15/encodings/shift_jisx0213.py +39 -0
  718. package/python/lib/python3.15/encodings/tis_620.py +307 -0
  719. package/python/lib/python3.15/encodings/undefined.py +49 -0
  720. package/python/lib/python3.15/encodings/unicode_escape.py +46 -0
  721. package/python/lib/python3.15/encodings/utf_16.py +155 -0
  722. package/python/lib/python3.15/encodings/utf_16_be.py +42 -0
  723. package/python/lib/python3.15/encodings/utf_16_le.py +42 -0
  724. package/python/lib/python3.15/encodings/utf_32.py +150 -0
  725. package/python/lib/python3.15/encodings/utf_32_be.py +37 -0
  726. package/python/lib/python3.15/encodings/utf_32_le.py +37 -0
  727. package/python/lib/python3.15/encodings/utf_7.py +38 -0
  728. package/python/lib/python3.15/encodings/utf_8.py +42 -0
  729. package/python/lib/python3.15/encodings/utf_8_sig.py +130 -0
  730. package/python/lib/python3.15/encodings/uu_codec.py +103 -0
  731. package/python/lib/python3.15/encodings/zlib_codec.py +77 -0
  732. package/python/lib/python3.15/enum.py +2198 -0
  733. package/python/lib/python3.15/filecmp.py +320 -0
  734. package/python/lib/python3.15/fileinput.py +442 -0
  735. package/python/lib/python3.15/fnmatch.py +209 -0
  736. package/python/lib/python3.15/fractions.py +1078 -0
  737. package/python/lib/python3.15/ftplib.py +975 -0
  738. package/python/lib/python3.15/functools.py +1208 -0
  739. package/python/lib/python3.15/genericpath.py +220 -0
  740. package/python/lib/python3.15/getopt.py +232 -0
  741. package/python/lib/python3.15/getpass.py +450 -0
  742. package/python/lib/python3.15/gettext.py +661 -0
  743. package/python/lib/python3.15/glob.py +553 -0
  744. package/python/lib/python3.15/graphlib.py +309 -0
  745. package/python/lib/python3.15/gzip.py +754 -0
  746. package/python/lib/python3.15/hashlib.py +297 -0
  747. package/python/lib/python3.15/heapq.py +611 -0
  748. package/python/lib/python3.15/hmac.py +293 -0
  749. package/python/lib/python3.15/html/__init__.py +132 -0
  750. package/python/lib/python3.15/html/__pycache__/__init__.cpython-315.pyc +0 -0
  751. package/python/lib/python3.15/html/__pycache__/entities.cpython-315.pyc +0 -0
  752. package/python/lib/python3.15/html/__pycache__/parser.cpython-315.pyc +0 -0
  753. package/python/lib/python3.15/html/entities.py +2513 -0
  754. package/python/lib/python3.15/html/parser.py +583 -0
  755. package/python/lib/python3.15/http/__init__.py +213 -0
  756. package/python/lib/python3.15/http/__pycache__/__init__.cpython-315.pyc +0 -0
  757. package/python/lib/python3.15/http/__pycache__/client.cpython-315.pyc +0 -0
  758. package/python/lib/python3.15/http/__pycache__/cookiejar.cpython-315.pyc +0 -0
  759. package/python/lib/python3.15/http/__pycache__/cookies.cpython-315.pyc +0 -0
  760. package/python/lib/python3.15/http/__pycache__/server.cpython-315.pyc +0 -0
  761. package/python/lib/python3.15/http/client.py +1614 -0
  762. package/python/lib/python3.15/http/cookiejar.py +2138 -0
  763. package/python/lib/python3.15/http/cookies.py +652 -0
  764. package/python/lib/python3.15/http/server.py +1177 -0
  765. package/python/lib/python3.15/imaplib.py +2106 -0
  766. package/python/lib/python3.15/importlib/__init__.py +136 -0
  767. package/python/lib/python3.15/importlib/__pycache__/__init__.cpython-315.pyc +0 -0
  768. package/python/lib/python3.15/importlib/__pycache__/_abc.cpython-315.pyc +0 -0
  769. package/python/lib/python3.15/importlib/__pycache__/_bootstrap.cpython-315.pyc +0 -0
  770. package/python/lib/python3.15/importlib/__pycache__/_bootstrap_external.cpython-315.pyc +0 -0
  771. package/python/lib/python3.15/importlib/__pycache__/abc.cpython-315.pyc +0 -0
  772. package/python/lib/python3.15/importlib/__pycache__/machinery.cpython-315.pyc +0 -0
  773. package/python/lib/python3.15/importlib/__pycache__/readers.cpython-315.pyc +0 -0
  774. package/python/lib/python3.15/importlib/__pycache__/simple.cpython-315.pyc +0 -0
  775. package/python/lib/python3.15/importlib/__pycache__/util.cpython-315.pyc +0 -0
  776. package/python/lib/python3.15/importlib/_abc.py +21 -0
  777. package/python/lib/python3.15/importlib/_bootstrap.py +1553 -0
  778. package/python/lib/python3.15/importlib/_bootstrap_external.py +1591 -0
  779. package/python/lib/python3.15/importlib/abc.py +251 -0
  780. package/python/lib/python3.15/importlib/machinery.py +51 -0
  781. package/python/lib/python3.15/importlib/metadata/__init__.py +1206 -0
  782. package/python/lib/python3.15/importlib/metadata/__pycache__/__init__.cpython-315.pyc +0 -0
  783. package/python/lib/python3.15/importlib/metadata/__pycache__/_adapters.cpython-315.pyc +0 -0
  784. package/python/lib/python3.15/importlib/metadata/__pycache__/_collections.cpython-315.pyc +0 -0
  785. package/python/lib/python3.15/importlib/metadata/__pycache__/_context.cpython-315.pyc +0 -0
  786. package/python/lib/python3.15/importlib/metadata/__pycache__/_functools.cpython-315.pyc +0 -0
  787. package/python/lib/python3.15/importlib/metadata/__pycache__/_itertools.cpython-315.pyc +0 -0
  788. package/python/lib/python3.15/importlib/metadata/__pycache__/_meta.cpython-315.pyc +0 -0
  789. package/python/lib/python3.15/importlib/metadata/__pycache__/_text.cpython-315.pyc +0 -0
  790. package/python/lib/python3.15/importlib/metadata/__pycache__/_typing.cpython-315.pyc +0 -0
  791. package/python/lib/python3.15/importlib/metadata/__pycache__/diagnose.cpython-315.pyc +0 -0
  792. package/python/lib/python3.15/importlib/metadata/_adapters.py +136 -0
  793. package/python/lib/python3.15/importlib/metadata/_collections.py +34 -0
  794. package/python/lib/python3.15/importlib/metadata/_context.py +118 -0
  795. package/python/lib/python3.15/importlib/metadata/_functools.py +136 -0
  796. package/python/lib/python3.15/importlib/metadata/_itertools.py +171 -0
  797. package/python/lib/python3.15/importlib/metadata/_meta.py +71 -0
  798. package/python/lib/python3.15/importlib/metadata/_text.py +99 -0
  799. package/python/lib/python3.15/importlib/metadata/_typing.py +15 -0
  800. package/python/lib/python3.15/importlib/metadata/diagnose.py +21 -0
  801. package/python/lib/python3.15/importlib/readers.py +12 -0
  802. package/python/lib/python3.15/importlib/resources/__init__.py +40 -0
  803. package/python/lib/python3.15/importlib/resources/__pycache__/__init__.cpython-315.pyc +0 -0
  804. package/python/lib/python3.15/importlib/resources/__pycache__/_adapters.cpython-315.pyc +0 -0
  805. package/python/lib/python3.15/importlib/resources/__pycache__/_common.cpython-315.pyc +0 -0
  806. package/python/lib/python3.15/importlib/resources/__pycache__/_functional.cpython-315.pyc +0 -0
  807. package/python/lib/python3.15/importlib/resources/__pycache__/_itertools.cpython-315.pyc +0 -0
  808. package/python/lib/python3.15/importlib/resources/__pycache__/abc.cpython-315.pyc +0 -0
  809. package/python/lib/python3.15/importlib/resources/__pycache__/readers.cpython-315.pyc +0 -0
  810. package/python/lib/python3.15/importlib/resources/__pycache__/simple.cpython-315.pyc +0 -0
  811. package/python/lib/python3.15/importlib/resources/_adapters.py +168 -0
  812. package/python/lib/python3.15/importlib/resources/_common.py +191 -0
  813. package/python/lib/python3.15/importlib/resources/_functional.py +84 -0
  814. package/python/lib/python3.15/importlib/resources/_itertools.py +38 -0
  815. package/python/lib/python3.15/importlib/resources/abc.py +189 -0
  816. package/python/lib/python3.15/importlib/resources/readers.py +202 -0
  817. package/python/lib/python3.15/importlib/resources/simple.py +106 -0
  818. package/python/lib/python3.15/importlib/simple.py +14 -0
  819. package/python/lib/python3.15/importlib/util.py +279 -0
  820. package/python/lib/python3.15/inspect.py +3511 -0
  821. package/python/lib/python3.15/io.py +150 -0
  822. package/python/lib/python3.15/ipaddress.py +2431 -0
  823. package/python/lib/python3.15/json/__init__.py +395 -0
  824. package/python/lib/python3.15/json/__main__.py +20 -0
  825. package/python/lib/python3.15/json/__pycache__/__init__.cpython-315.pyc +0 -0
  826. package/python/lib/python3.15/json/__pycache__/__main__.cpython-315.pyc +0 -0
  827. package/python/lib/python3.15/json/__pycache__/decoder.cpython-315.pyc +0 -0
  828. package/python/lib/python3.15/json/__pycache__/encoder.cpython-315.pyc +0 -0
  829. package/python/lib/python3.15/json/__pycache__/scanner.cpython-315.pyc +0 -0
  830. package/python/lib/python3.15/json/__pycache__/tool.cpython-315.pyc +0 -0
  831. package/python/lib/python3.15/json/decoder.py +377 -0
  832. package/python/lib/python3.15/json/encoder.py +459 -0
  833. package/python/lib/python3.15/json/scanner.py +74 -0
  834. package/python/lib/python3.15/json/tool.py +123 -0
  835. package/python/lib/python3.15/keyword.py +65 -0
  836. package/python/lib/python3.15/lib-dynload/.empty +0 -0
  837. package/python/lib/python3.15/lib-dynload/_dbm.cpython-315-aarch64-linux-musl.so +0 -0
  838. package/python/lib/python3.15/linecache.py +339 -0
  839. package/python/lib/python3.15/locale.py +2007 -0
  840. package/python/lib/python3.15/logging/__init__.py +2369 -0
  841. package/python/lib/python3.15/logging/__pycache__/__init__.cpython-315.pyc +0 -0
  842. package/python/lib/python3.15/logging/__pycache__/config.cpython-315.pyc +0 -0
  843. package/python/lib/python3.15/logging/__pycache__/handlers.cpython-315.pyc +0 -0
  844. package/python/lib/python3.15/logging/config.py +1093 -0
  845. package/python/lib/python3.15/logging/handlers.py +1667 -0
  846. package/python/lib/python3.15/lzma.py +364 -0
  847. package/python/lib/python3.15/mailbox.py +2225 -0
  848. package/python/lib/python3.15/mimetypes.py +768 -0
  849. package/python/lib/python3.15/modulefinder.py +680 -0
  850. package/python/lib/python3.15/multiprocessing/__init__.py +37 -0
  851. package/python/lib/python3.15/multiprocessing/__pycache__/__init__.cpython-315.pyc +0 -0
  852. package/python/lib/python3.15/multiprocessing/__pycache__/connection.cpython-315.pyc +0 -0
  853. package/python/lib/python3.15/multiprocessing/__pycache__/context.cpython-315.pyc +0 -0
  854. package/python/lib/python3.15/multiprocessing/__pycache__/forkserver.cpython-315.pyc +0 -0
  855. package/python/lib/python3.15/multiprocessing/__pycache__/heap.cpython-315.pyc +0 -0
  856. package/python/lib/python3.15/multiprocessing/__pycache__/managers.cpython-315.pyc +0 -0
  857. package/python/lib/python3.15/multiprocessing/__pycache__/pool.cpython-315.pyc +0 -0
  858. package/python/lib/python3.15/multiprocessing/__pycache__/popen_fork.cpython-315.pyc +0 -0
  859. package/python/lib/python3.15/multiprocessing/__pycache__/popen_forkserver.cpython-315.pyc +0 -0
  860. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_posix.cpython-315.pyc +0 -0
  861. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_win32.cpython-315.pyc +0 -0
  862. package/python/lib/python3.15/multiprocessing/__pycache__/process.cpython-315.pyc +0 -0
  863. package/python/lib/python3.15/multiprocessing/__pycache__/queues.cpython-315.pyc +0 -0
  864. package/python/lib/python3.15/multiprocessing/__pycache__/reduction.cpython-315.pyc +0 -0
  865. package/python/lib/python3.15/multiprocessing/__pycache__/resource_sharer.cpython-315.pyc +0 -0
  866. package/python/lib/python3.15/multiprocessing/__pycache__/resource_tracker.cpython-315.pyc +0 -0
  867. package/python/lib/python3.15/multiprocessing/__pycache__/shared_memory.cpython-315.pyc +0 -0
  868. package/python/lib/python3.15/multiprocessing/__pycache__/sharedctypes.cpython-315.pyc +0 -0
  869. package/python/lib/python3.15/multiprocessing/__pycache__/spawn.cpython-315.pyc +0 -0
  870. package/python/lib/python3.15/multiprocessing/__pycache__/synchronize.cpython-315.pyc +0 -0
  871. package/python/lib/python3.15/multiprocessing/__pycache__/util.cpython-315.pyc +0 -0
  872. package/python/lib/python3.15/multiprocessing/connection.py +1240 -0
  873. package/python/lib/python3.15/multiprocessing/context.py +408 -0
  874. package/python/lib/python3.15/multiprocessing/dummy/__init__.py +126 -0
  875. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/__init__.cpython-315.pyc +0 -0
  876. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/connection.cpython-315.pyc +0 -0
  877. package/python/lib/python3.15/multiprocessing/dummy/connection.py +75 -0
  878. package/python/lib/python3.15/multiprocessing/forkserver.py +493 -0
  879. package/python/lib/python3.15/multiprocessing/heap.py +333 -0
  880. package/python/lib/python3.15/multiprocessing/managers.py +1438 -0
  881. package/python/lib/python3.15/multiprocessing/pool.py +957 -0
  882. package/python/lib/python3.15/multiprocessing/popen_fork.py +100 -0
  883. package/python/lib/python3.15/multiprocessing/popen_forkserver.py +74 -0
  884. package/python/lib/python3.15/multiprocessing/popen_spawn_posix.py +76 -0
  885. package/python/lib/python3.15/multiprocessing/popen_spawn_win32.py +147 -0
  886. package/python/lib/python3.15/multiprocessing/process.py +443 -0
  887. package/python/lib/python3.15/multiprocessing/queues.py +399 -0
  888. package/python/lib/python3.15/multiprocessing/reduction.py +281 -0
  889. package/python/lib/python3.15/multiprocessing/resource_sharer.py +154 -0
  890. package/python/lib/python3.15/multiprocessing/resource_tracker.py +495 -0
  891. package/python/lib/python3.15/multiprocessing/shared_memory.py +544 -0
  892. package/python/lib/python3.15/multiprocessing/sharedctypes.py +245 -0
  893. package/python/lib/python3.15/multiprocessing/spawn.py +307 -0
  894. package/python/lib/python3.15/multiprocessing/synchronize.py +411 -0
  895. package/python/lib/python3.15/multiprocessing/util.py +619 -0
  896. package/python/lib/python3.15/netrc.py +205 -0
  897. package/python/lib/python3.15/ntpath.py +896 -0
  898. package/python/lib/python3.15/nturl2path.py +82 -0
  899. package/python/lib/python3.15/numbers.py +427 -0
  900. package/python/lib/python3.15/opcode.py +135 -0
  901. package/python/lib/python3.15/operator.py +475 -0
  902. package/python/lib/python3.15/optparse.py +1673 -0
  903. package/python/lib/python3.15/os.py +1217 -0
  904. package/python/lib/python3.15/pathlib/__init__.py +1508 -0
  905. package/python/lib/python3.15/pathlib/__pycache__/__init__.cpython-315.pyc +0 -0
  906. package/python/lib/python3.15/pathlib/__pycache__/_local.cpython-315.pyc +0 -0
  907. package/python/lib/python3.15/pathlib/__pycache__/_os.cpython-315.pyc +0 -0
  908. package/python/lib/python3.15/pathlib/__pycache__/types.cpython-315.pyc +0 -0
  909. package/python/lib/python3.15/pathlib/_local.py +12 -0
  910. package/python/lib/python3.15/pathlib/_os.py +303 -0
  911. package/python/lib/python3.15/pathlib/types.py +476 -0
  912. package/python/lib/python3.15/pdb.py +3899 -0
  913. package/python/lib/python3.15/pickle.py +1955 -0
  914. package/python/lib/python3.15/pickletools.py +2934 -0
  915. package/python/lib/python3.15/pkgutil.py +492 -0
  916. package/python/lib/python3.15/platform.py +1446 -0
  917. package/python/lib/python3.15/plistlib.py +949 -0
  918. package/python/lib/python3.15/poplib.py +479 -0
  919. package/python/lib/python3.15/posixpath.py +597 -0
  920. package/python/lib/python3.15/pprint.py +972 -0
  921. package/python/lib/python3.15/profile.py +623 -0
  922. package/python/lib/python3.15/profiling/__init__.py +13 -0
  923. package/python/lib/python3.15/profiling/__pycache__/__init__.cpython-315.pyc +0 -0
  924. package/python/lib/python3.15/profiling/sampling/__init__.py +23 -0
  925. package/python/lib/python3.15/profiling/sampling/__main__.py +73 -0
  926. package/python/lib/python3.15/profiling/sampling/__pycache__/__init__.cpython-315.pyc +0 -0
  927. package/python/lib/python3.15/profiling/sampling/__pycache__/__main__.cpython-315.pyc +0 -0
  928. package/python/lib/python3.15/profiling/sampling/__pycache__/_child_monitor.cpython-315.pyc +0 -0
  929. package/python/lib/python3.15/profiling/sampling/__pycache__/_css_utils.cpython-315.pyc +0 -0
  930. package/python/lib/python3.15/profiling/sampling/__pycache__/_format_utils.cpython-315.pyc +0 -0
  931. package/python/lib/python3.15/profiling/sampling/__pycache__/_sync_coordinator.cpython-315.pyc +0 -0
  932. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_collector.cpython-315.pyc +0 -0
  933. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_reader.cpython-315.pyc +0 -0
  934. package/python/lib/python3.15/profiling/sampling/__pycache__/cli.cpython-315.pyc +0 -0
  935. package/python/lib/python3.15/profiling/sampling/__pycache__/collector.cpython-315.pyc +0 -0
  936. package/python/lib/python3.15/profiling/sampling/__pycache__/constants.cpython-315.pyc +0 -0
  937. package/python/lib/python3.15/profiling/sampling/__pycache__/dump.cpython-315.pyc +0 -0
  938. package/python/lib/python3.15/profiling/sampling/__pycache__/errors.cpython-315.pyc +0 -0
  939. package/python/lib/python3.15/profiling/sampling/__pycache__/gecko_collector.cpython-315.pyc +0 -0
  940. package/python/lib/python3.15/profiling/sampling/__pycache__/heatmap_collector.cpython-315.pyc +0 -0
  941. package/python/lib/python3.15/profiling/sampling/__pycache__/jsonl_collector.cpython-315.pyc +0 -0
  942. package/python/lib/python3.15/profiling/sampling/__pycache__/module_utils.cpython-315.pyc +0 -0
  943. package/python/lib/python3.15/profiling/sampling/__pycache__/opcode_utils.cpython-315.pyc +0 -0
  944. package/python/lib/python3.15/profiling/sampling/__pycache__/pstats_collector.cpython-315.pyc +0 -0
  945. package/python/lib/python3.15/profiling/sampling/__pycache__/sample.cpython-315.pyc +0 -0
  946. package/python/lib/python3.15/profiling/sampling/__pycache__/stack_collector.cpython-315.pyc +0 -0
  947. package/python/lib/python3.15/profiling/sampling/__pycache__/string_table.cpython-315.pyc +0 -0
  948. package/python/lib/python3.15/profiling/sampling/_assets/python-logo-only.png +0 -0
  949. package/python/lib/python3.15/profiling/sampling/_assets/tachyon-logo.png +0 -0
  950. package/python/lib/python3.15/profiling/sampling/_child_monitor.py +279 -0
  951. package/python/lib/python3.15/profiling/sampling/_css_utils.py +22 -0
  952. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.css +1085 -0
  953. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.js +1528 -0
  954. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph_template.html +464 -0
  955. package/python/lib/python3.15/profiling/sampling/_format_utils.py +5 -0
  956. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.css +1555 -0
  957. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.js +738 -0
  958. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index.js +104 -0
  959. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index_template.html +136 -0
  960. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_pyfile_template.html +131 -0
  961. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_shared.js +64 -0
  962. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.css +514 -0
  963. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.js +58 -0
  964. package/python/lib/python3.15/profiling/sampling/_sync_coordinator.py +261 -0
  965. package/python/lib/python3.15/profiling/sampling/_vendor/d3/7.8.5/d3.min.js +2 -0
  966. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph-tooltip.min.js +1 -0
  967. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.css +46 -0
  968. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.min.js +1 -0
  969. package/python/lib/python3.15/profiling/sampling/binary_collector.py +159 -0
  970. package/python/lib/python3.15/profiling/sampling/binary_reader.py +148 -0
  971. package/python/lib/python3.15/profiling/sampling/cli.py +1462 -0
  972. package/python/lib/python3.15/profiling/sampling/collector.py +292 -0
  973. package/python/lib/python3.15/profiling/sampling/constants.py +57 -0
  974. package/python/lib/python3.15/profiling/sampling/dump.py +295 -0
  975. package/python/lib/python3.15/profiling/sampling/errors.py +19 -0
  976. package/python/lib/python3.15/profiling/sampling/gecko_collector.py +1006 -0
  977. package/python/lib/python3.15/profiling/sampling/heatmap_collector.py +1145 -0
  978. package/python/lib/python3.15/profiling/sampling/jsonl_collector.py +268 -0
  979. package/python/lib/python3.15/profiling/sampling/live_collector/__init__.py +200 -0
  980. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/__init__.cpython-315.pyc +0 -0
  981. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/collector.cpython-315.pyc +0 -0
  982. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/constants.cpython-315.pyc +0 -0
  983. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/display.cpython-315.pyc +0 -0
  984. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/trend_tracker.cpython-315.pyc +0 -0
  985. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/widgets.cpython-315.pyc +0 -0
  986. package/python/lib/python3.15/profiling/sampling/live_collector/collector.py +1112 -0
  987. package/python/lib/python3.15/profiling/sampling/live_collector/constants.py +65 -0
  988. package/python/lib/python3.15/profiling/sampling/live_collector/display.py +240 -0
  989. package/python/lib/python3.15/profiling/sampling/live_collector/trend_tracker.py +157 -0
  990. package/python/lib/python3.15/profiling/sampling/live_collector/widgets.py +1090 -0
  991. package/python/lib/python3.15/profiling/sampling/module_utils.py +102 -0
  992. package/python/lib/python3.15/profiling/sampling/opcode_utils.py +94 -0
  993. package/python/lib/python3.15/profiling/sampling/pstats_collector.py +429 -0
  994. package/python/lib/python3.15/profiling/sampling/sample.py +665 -0
  995. package/python/lib/python3.15/profiling/sampling/stack_collector.py +928 -0
  996. package/python/lib/python3.15/profiling/sampling/string_table.py +53 -0
  997. package/python/lib/python3.15/profiling/tracing/__init__.py +220 -0
  998. package/python/lib/python3.15/profiling/tracing/__main__.py +6 -0
  999. package/python/lib/python3.15/profiling/tracing/__pycache__/__init__.cpython-315.pyc +0 -0
  1000. package/python/lib/python3.15/profiling/tracing/__pycache__/__main__.cpython-315.pyc +0 -0
  1001. package/python/lib/python3.15/profiling/tracing/__pycache__/_utils.cpython-315.pyc +0 -0
  1002. package/python/lib/python3.15/profiling/tracing/_utils.py +32 -0
  1003. package/python/lib/python3.15/pstats.py +840 -0
  1004. package/python/lib/python3.15/pty.py +182 -0
  1005. package/python/lib/python3.15/py_compile.py +214 -0
  1006. package/python/lib/python3.15/pyclbr.py +313 -0
  1007. package/python/lib/python3.15/pydoc.py +2843 -0
  1008. package/python/lib/python3.15/queue.py +385 -0
  1009. package/python/lib/python3.15/quopri.py +235 -0
  1010. package/python/lib/python3.15/random.py +1087 -0
  1011. package/python/lib/python3.15/re/__init__.py +442 -0
  1012. package/python/lib/python3.15/re/__pycache__/__init__.cpython-315.pyc +0 -0
  1013. package/python/lib/python3.15/re/__pycache__/_casefix.cpython-315.pyc +0 -0
  1014. package/python/lib/python3.15/re/__pycache__/_compiler.cpython-315.pyc +0 -0
  1015. package/python/lib/python3.15/re/__pycache__/_constants.cpython-315.pyc +0 -0
  1016. package/python/lib/python3.15/re/__pycache__/_parser.cpython-315.pyc +0 -0
  1017. package/python/lib/python3.15/re/_casefix.py +106 -0
  1018. package/python/lib/python3.15/re/_compiler.py +782 -0
  1019. package/python/lib/python3.15/re/_constants.py +224 -0
  1020. package/python/lib/python3.15/re/_parser.py +1065 -0
  1021. package/python/lib/python3.15/reprlib.py +230 -0
  1022. package/python/lib/python3.15/rlcompleter.py +232 -0
  1023. package/python/lib/python3.15/runpy.py +324 -0
  1024. package/python/lib/python3.15/sched.py +167 -0
  1025. package/python/lib/python3.15/secrets.py +71 -0
  1026. package/python/lib/python3.15/selectors.py +603 -0
  1027. package/python/lib/python3.15/shelve.py +266 -0
  1028. package/python/lib/python3.15/shlex.py +351 -0
  1029. package/python/lib/python3.15/shutil.py +1663 -0
  1030. package/python/lib/python3.15/signal.py +94 -0
  1031. package/python/lib/python3.15/site-packages/_yaml/__init__.py +33 -0
  1032. package/python/lib/python3.15/site-packages/_yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1033. package/python/lib/python3.15/site-packages/click/__init__.py +144 -0
  1034. package/python/lib/python3.15/site-packages/click/__pycache__/__init__.cpython-315.pyc +0 -0
  1035. package/python/lib/python3.15/site-packages/click/__pycache__/_compat.cpython-315.pyc +0 -0
  1036. package/python/lib/python3.15/site-packages/click/__pycache__/_termui_impl.cpython-315.pyc +0 -0
  1037. package/python/lib/python3.15/site-packages/click/__pycache__/_textwrap.cpython-315.pyc +0 -0
  1038. package/python/lib/python3.15/site-packages/click/__pycache__/_utils.cpython-315.pyc +0 -0
  1039. package/python/lib/python3.15/site-packages/click/__pycache__/_winconsole.cpython-315.pyc +0 -0
  1040. package/python/lib/python3.15/site-packages/click/__pycache__/core.cpython-315.pyc +0 -0
  1041. package/python/lib/python3.15/site-packages/click/__pycache__/decorators.cpython-315.pyc +0 -0
  1042. package/python/lib/python3.15/site-packages/click/__pycache__/exceptions.cpython-315.pyc +0 -0
  1043. package/python/lib/python3.15/site-packages/click/__pycache__/formatting.cpython-315.pyc +0 -0
  1044. package/python/lib/python3.15/site-packages/click/__pycache__/globals.cpython-315.pyc +0 -0
  1045. package/python/lib/python3.15/site-packages/click/__pycache__/parser.cpython-315.pyc +0 -0
  1046. package/python/lib/python3.15/site-packages/click/__pycache__/shell_completion.cpython-315.pyc +0 -0
  1047. package/python/lib/python3.15/site-packages/click/__pycache__/termui.cpython-315.pyc +0 -0
  1048. package/python/lib/python3.15/site-packages/click/__pycache__/testing.cpython-315.pyc +0 -0
  1049. package/python/lib/python3.15/site-packages/click/__pycache__/types.cpython-315.pyc +0 -0
  1050. package/python/lib/python3.15/site-packages/click/__pycache__/utils.cpython-315.pyc +0 -0
  1051. package/python/lib/python3.15/site-packages/click/_compat.py +590 -0
  1052. package/python/lib/python3.15/site-packages/click/_termui_impl.py +970 -0
  1053. package/python/lib/python3.15/site-packages/click/_textwrap.py +188 -0
  1054. package/python/lib/python3.15/site-packages/click/_utils.py +45 -0
  1055. package/python/lib/python3.15/site-packages/click/_winconsole.py +292 -0
  1056. package/python/lib/python3.15/site-packages/click/core.py +3825 -0
  1057. package/python/lib/python3.15/site-packages/click/decorators.py +625 -0
  1058. package/python/lib/python3.15/site-packages/click/exceptions.py +378 -0
  1059. package/python/lib/python3.15/site-packages/click/formatting.py +320 -0
  1060. package/python/lib/python3.15/site-packages/click/globals.py +67 -0
  1061. package/python/lib/python3.15/site-packages/click/parser.py +533 -0
  1062. package/python/lib/python3.15/site-packages/click/py.typed +0 -0
  1063. package/python/lib/python3.15/site-packages/click/shell_completion.py +796 -0
  1064. package/python/lib/python3.15/site-packages/click/termui.py +1024 -0
  1065. package/python/lib/python3.15/site-packages/click/testing.py +796 -0
  1066. package/python/lib/python3.15/site-packages/click/types.py +1437 -0
  1067. package/python/lib/python3.15/site-packages/click/utils.py +676 -0
  1068. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
  1069. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/METADATA +83 -0
  1070. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/RECORD +24 -0
  1071. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
  1072. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
  1073. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
  1074. package/python/lib/python3.15/site-packages/cssbeautifier/__init__.py +51 -0
  1075. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1076. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1077. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/_main.cpython-315.pyc +0 -0
  1078. package/python/lib/python3.15/site-packages/cssbeautifier/__version__.py +1 -0
  1079. package/python/lib/python3.15/site-packages/cssbeautifier/_main.py +208 -0
  1080. package/python/lib/python3.15/site-packages/cssbeautifier/css/__init__.py +1 -0
  1081. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-315.pyc +0 -0
  1082. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-315.pyc +0 -0
  1083. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/options.cpython-315.pyc +0 -0
  1084. package/python/lib/python3.15/site-packages/cssbeautifier/css/beautifier.py +559 -0
  1085. package/python/lib/python3.15/site-packages/cssbeautifier/css/options.py +60 -0
  1086. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__init__.py +1 -0
  1087. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1088. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
  1089. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1090. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1091. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
  1092. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1093. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
  1094. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
  1095. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1096. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1097. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1098. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1099. package/python/lib/python3.15/site-packages/djlint/__init__.py +27 -0
  1100. package/python/lib/python3.15/site-packages/djlint/__main__.py +8 -0
  1101. package/python/lib/python3.15/site-packages/djlint/__pycache__/__init__.cpython-315.pyc +0 -0
  1102. package/python/lib/python3.15/site-packages/djlint/__pycache__/__main__.cpython-315.pyc +0 -0
  1103. package/python/lib/python3.15/site-packages/djlint/__pycache__/_cli.cpython-315.pyc +0 -0
  1104. package/python/lib/python3.15/site-packages/djlint/__pycache__/api.cpython-315.pyc +0 -0
  1105. package/python/lib/python3.15/site-packages/djlint/__pycache__/const.cpython-315.pyc +0 -0
  1106. package/python/lib/python3.15/site-packages/djlint/__pycache__/github_output.cpython-315.pyc +0 -0
  1107. package/python/lib/python3.15/site-packages/djlint/__pycache__/helpers.cpython-315.pyc +0 -0
  1108. package/python/lib/python3.15/site-packages/djlint/__pycache__/lint.cpython-315.pyc +0 -0
  1109. package/python/lib/python3.15/site-packages/djlint/__pycache__/output.cpython-315.pyc +0 -0
  1110. package/python/lib/python3.15/site-packages/djlint/__pycache__/reformat.cpython-315.pyc +0 -0
  1111. package/python/lib/python3.15/site-packages/djlint/__pycache__/sarif_output.cpython-315.pyc +0 -0
  1112. package/python/lib/python3.15/site-packages/djlint/__pycache__/server.cpython-315.pyc +0 -0
  1113. package/python/lib/python3.15/site-packages/djlint/__pycache__/settings.cpython-315.pyc +0 -0
  1114. package/python/lib/python3.15/site-packages/djlint/__pycache__/src.cpython-315.pyc +0 -0
  1115. package/python/lib/python3.15/site-packages/djlint/_cli.cpython-315-aarch64-linux-musl.so +0 -0
  1116. package/python/lib/python3.15/site-packages/djlint/_cli.py +1006 -0
  1117. package/python/lib/python3.15/site-packages/djlint/api.cpython-315-aarch64-linux-musl.so +0 -0
  1118. package/python/lib/python3.15/site-packages/djlint/api.py +106 -0
  1119. package/python/lib/python3.15/site-packages/djlint/const.cpython-315-aarch64-linux-musl.so +0 -0
  1120. package/python/lib/python3.15/site-packages/djlint/const.py +506 -0
  1121. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1122. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.py +0 -0
  1123. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/__init__.cpython-315.pyc +0 -0
  1124. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-315.pyc +0 -0
  1125. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attributes.cpython-315.pyc +0 -0
  1126. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/beautifier.cpython-315.pyc +0 -0
  1127. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-315.pyc +0 -0
  1128. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/compress.cpython-315.pyc +0 -0
  1129. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/condense.cpython-315.pyc +0 -0
  1130. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/css.cpython-315.pyc +0 -0
  1131. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/endblocks.cpython-315.pyc +0 -0
  1132. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/entities.cpython-315.pyc +0 -0
  1133. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/expand.cpython-315.pyc +0 -0
  1134. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/indent.cpython-315.pyc +0 -0
  1135. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/js.cpython-315.pyc +0 -0
  1136. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/load_tags.cpython-315.pyc +0 -0
  1137. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/mako.cpython-315.pyc +0 -0
  1138. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1139. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.cpython-315-aarch64-linux-musl.so +0 -0
  1140. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.py +152 -0
  1141. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1142. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.py +580 -0
  1143. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.cpython-315-aarch64-linux-musl.so +0 -0
  1144. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.py +144 -0
  1145. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1146. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.py +318 -0
  1147. package/python/lib/python3.15/site-packages/djlint/formatter/compress.cpython-315-aarch64-linux-musl.so +0 -0
  1148. package/python/lib/python3.15/site-packages/djlint/formatter/compress.py +158 -0
  1149. package/python/lib/python3.15/site-packages/djlint/formatter/condense.cpython-315-aarch64-linux-musl.so +0 -0
  1150. package/python/lib/python3.15/site-packages/djlint/formatter/condense.py +503 -0
  1151. package/python/lib/python3.15/site-packages/djlint/formatter/css.cpython-315-aarch64-linux-musl.so +0 -0
  1152. package/python/lib/python3.15/site-packages/djlint/formatter/css.py +28 -0
  1153. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.cpython-315-aarch64-linux-musl.so +0 -0
  1154. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.py +68 -0
  1155. package/python/lib/python3.15/site-packages/djlint/formatter/entities.cpython-315-aarch64-linux-musl.so +0 -0
  1156. package/python/lib/python3.15/site-packages/djlint/formatter/entities.py +39 -0
  1157. package/python/lib/python3.15/site-packages/djlint/formatter/expand.cpython-315-aarch64-linux-musl.so +0 -0
  1158. package/python/lib/python3.15/site-packages/djlint/formatter/expand.py +576 -0
  1159. package/python/lib/python3.15/site-packages/djlint/formatter/indent.cpython-315-aarch64-linux-musl.so +0 -0
  1160. package/python/lib/python3.15/site-packages/djlint/formatter/indent.py +1239 -0
  1161. package/python/lib/python3.15/site-packages/djlint/formatter/js.cpython-315-aarch64-linux-musl.so +0 -0
  1162. package/python/lib/python3.15/site-packages/djlint/formatter/js.py +82 -0
  1163. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.cpython-315-aarch64-linux-musl.so +0 -0
  1164. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.py +60 -0
  1165. package/python/lib/python3.15/site-packages/djlint/formatter/mako.cpython-315-aarch64-linux-musl.so +0 -0
  1166. package/python/lib/python3.15/site-packages/djlint/formatter/mako.py +501 -0
  1167. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.cpython-315-aarch64-linux-musl.so +0 -0
  1168. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.py +359 -0
  1169. package/python/lib/python3.15/site-packages/djlint/github_output.cpython-315-aarch64-linux-musl.so +0 -0
  1170. package/python/lib/python3.15/site-packages/djlint/github_output.py +117 -0
  1171. package/python/lib/python3.15/site-packages/djlint/helpers.cpython-315-aarch64-linux-musl.so +0 -0
  1172. package/python/lib/python3.15/site-packages/djlint/helpers.py +979 -0
  1173. package/python/lib/python3.15/site-packages/djlint/lint.cpython-315-aarch64-linux-musl.so +0 -0
  1174. package/python/lib/python3.15/site-packages/djlint/lint.py +246 -0
  1175. package/python/lib/python3.15/site-packages/djlint/output.cpython-315-aarch64-linux-musl.so +0 -0
  1176. package/python/lib/python3.15/site-packages/djlint/output.py +250 -0
  1177. package/python/lib/python3.15/site-packages/djlint/py.typed +0 -0
  1178. package/python/lib/python3.15/site-packages/djlint/reformat.cpython-315-aarch64-linux-musl.so +0 -0
  1179. package/python/lib/python3.15/site-packages/djlint/reformat.py +130 -0
  1180. package/python/lib/python3.15/site-packages/djlint/rules/D058.cpython-315-aarch64-linux-musl.so +0 -0
  1181. package/python/lib/python3.15/site-packages/djlint/rules/D058.py +78 -0
  1182. package/python/lib/python3.15/site-packages/djlint/rules/D059.cpython-315-aarch64-linux-musl.so +0 -0
  1183. package/python/lib/python3.15/site-packages/djlint/rules/D059.py +139 -0
  1184. package/python/lib/python3.15/site-packages/djlint/rules/H009.cpython-315-aarch64-linux-musl.so +0 -0
  1185. package/python/lib/python3.15/site-packages/djlint/rules/H009.py +54 -0
  1186. package/python/lib/python3.15/site-packages/djlint/rules/H012.cpython-315-aarch64-linux-musl.so +0 -0
  1187. package/python/lib/python3.15/site-packages/djlint/rules/H012.py +240 -0
  1188. package/python/lib/python3.15/site-packages/djlint/rules/H014.cpython-315-aarch64-linux-musl.so +0 -0
  1189. package/python/lib/python3.15/site-packages/djlint/rules/H014.py +68 -0
  1190. package/python/lib/python3.15/site-packages/djlint/rules/H016.cpython-315-aarch64-linux-musl.so +0 -0
  1191. package/python/lib/python3.15/site-packages/djlint/rules/H016.py +83 -0
  1192. package/python/lib/python3.15/site-packages/djlint/rules/H022.cpython-315-aarch64-linux-musl.so +0 -0
  1193. package/python/lib/python3.15/site-packages/djlint/rules/H022.py +161 -0
  1194. package/python/lib/python3.15/site-packages/djlint/rules/H025.cpython-315-aarch64-linux-musl.so +0 -0
  1195. package/python/lib/python3.15/site-packages/djlint/rules/H025.py +141 -0
  1196. package/python/lib/python3.15/site-packages/djlint/rules/H036.cpython-315-aarch64-linux-musl.so +0 -0
  1197. package/python/lib/python3.15/site-packages/djlint/rules/H036.py +183 -0
  1198. package/python/lib/python3.15/site-packages/djlint/rules/H037.cpython-315-aarch64-linux-musl.so +0 -0
  1199. package/python/lib/python3.15/site-packages/djlint/rules/H037.py +138 -0
  1200. package/python/lib/python3.15/site-packages/djlint/rules/H041.cpython-315-aarch64-linux-musl.so +0 -0
  1201. package/python/lib/python3.15/site-packages/djlint/rules/H041.py +113 -0
  1202. package/python/lib/python3.15/site-packages/djlint/rules/H042.cpython-315-aarch64-linux-musl.so +0 -0
  1203. package/python/lib/python3.15/site-packages/djlint/rules/H042.py +199 -0
  1204. package/python/lib/python3.15/site-packages/djlint/rules/H044.cpython-315-aarch64-linux-musl.so +0 -0
  1205. package/python/lib/python3.15/site-packages/djlint/rules/H044.py +119 -0
  1206. package/python/lib/python3.15/site-packages/djlint/rules/H047.cpython-315-aarch64-linux-musl.so +0 -0
  1207. package/python/lib/python3.15/site-packages/djlint/rules/H047.py +118 -0
  1208. package/python/lib/python3.15/site-packages/djlint/rules/H048.cpython-315-aarch64-linux-musl.so +0 -0
  1209. package/python/lib/python3.15/site-packages/djlint/rules/H048.py +82 -0
  1210. package/python/lib/python3.15/site-packages/djlint/rules/H051.cpython-315-aarch64-linux-musl.so +0 -0
  1211. package/python/lib/python3.15/site-packages/djlint/rules/H051.py +98 -0
  1212. package/python/lib/python3.15/site-packages/djlint/rules/H053.cpython-315-aarch64-linux-musl.so +0 -0
  1213. package/python/lib/python3.15/site-packages/djlint/rules/H053.py +361 -0
  1214. package/python/lib/python3.15/site-packages/djlint/rules/H054.cpython-315-aarch64-linux-musl.so +0 -0
  1215. package/python/lib/python3.15/site-packages/djlint/rules/H054.py +264 -0
  1216. package/python/lib/python3.15/site-packages/djlint/rules/H057.cpython-315-aarch64-linux-musl.so +0 -0
  1217. package/python/lib/python3.15/site-packages/djlint/rules/H057.py +235 -0
  1218. package/python/lib/python3.15/site-packages/djlint/rules/T001.cpython-315-aarch64-linux-musl.so +0 -0
  1219. package/python/lib/python3.15/site-packages/djlint/rules/T001.py +103 -0
  1220. package/python/lib/python3.15/site-packages/djlint/rules/T002.cpython-315-aarch64-linux-musl.so +0 -0
  1221. package/python/lib/python3.15/site-packages/djlint/rules/T002.py +75 -0
  1222. package/python/lib/python3.15/site-packages/djlint/rules/T003.cpython-315-aarch64-linux-musl.so +0 -0
  1223. package/python/lib/python3.15/site-packages/djlint/rules/T003.py +93 -0
  1224. package/python/lib/python3.15/site-packages/djlint/rules/T027.cpython-315-aarch64-linux-musl.so +0 -0
  1225. package/python/lib/python3.15/site-packages/djlint/rules/T027.py +183 -0
  1226. package/python/lib/python3.15/site-packages/djlint/rules/T038.cpython-315-aarch64-linux-musl.so +0 -0
  1227. package/python/lib/python3.15/site-packages/djlint/rules/T038.py +152 -0
  1228. package/python/lib/python3.15/site-packages/djlint/rules/T039.cpython-315-aarch64-linux-musl.so +0 -0
  1229. package/python/lib/python3.15/site-packages/djlint/rules/T039.py +167 -0
  1230. package/python/lib/python3.15/site-packages/djlint/rules/T041.cpython-315-aarch64-linux-musl.so +0 -0
  1231. package/python/lib/python3.15/site-packages/djlint/rules/T041.py +307 -0
  1232. package/python/lib/python3.15/site-packages/djlint/rules/T042.cpython-315-aarch64-linux-musl.so +0 -0
  1233. package/python/lib/python3.15/site-packages/djlint/rules/T042.py +219 -0
  1234. package/python/lib/python3.15/site-packages/djlint/rules/T043.cpython-315-aarch64-linux-musl.so +0 -0
  1235. package/python/lib/python3.15/site-packages/djlint/rules/T043.py +154 -0
  1236. package/python/lib/python3.15/site-packages/djlint/rules/T044.cpython-315-aarch64-linux-musl.so +0 -0
  1237. package/python/lib/python3.15/site-packages/djlint/rules/T044.py +189 -0
  1238. package/python/lib/python3.15/site-packages/djlint/rules/T045.cpython-315-aarch64-linux-musl.so +0 -0
  1239. package/python/lib/python3.15/site-packages/djlint/rules/T045.py +281 -0
  1240. package/python/lib/python3.15/site-packages/djlint/rules/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1241. package/python/lib/python3.15/site-packages/djlint/rules/__init__.py +0 -0
  1242. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D058.cpython-315.pyc +0 -0
  1243. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D059.cpython-315.pyc +0 -0
  1244. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H009.cpython-315.pyc +0 -0
  1245. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H012.cpython-315.pyc +0 -0
  1246. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H014.cpython-315.pyc +0 -0
  1247. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H016.cpython-315.pyc +0 -0
  1248. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H022.cpython-315.pyc +0 -0
  1249. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H025.cpython-315.pyc +0 -0
  1250. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H036.cpython-315.pyc +0 -0
  1251. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H037.cpython-315.pyc +0 -0
  1252. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H041.cpython-315.pyc +0 -0
  1253. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H042.cpython-315.pyc +0 -0
  1254. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H044.cpython-315.pyc +0 -0
  1255. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H047.cpython-315.pyc +0 -0
  1256. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H048.cpython-315.pyc +0 -0
  1257. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H051.cpython-315.pyc +0 -0
  1258. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H053.cpython-315.pyc +0 -0
  1259. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H054.cpython-315.pyc +0 -0
  1260. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H057.cpython-315.pyc +0 -0
  1261. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T001.cpython-315.pyc +0 -0
  1262. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T002.cpython-315.pyc +0 -0
  1263. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T003.cpython-315.pyc +0 -0
  1264. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T027.cpython-315.pyc +0 -0
  1265. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T038.cpython-315.pyc +0 -0
  1266. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T039.cpython-315.pyc +0 -0
  1267. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T041.cpython-315.pyc +0 -0
  1268. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T042.cpython-315.pyc +0 -0
  1269. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T043.cpython-315.pyc +0 -0
  1270. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T044.cpython-315.pyc +0 -0
  1271. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T045.cpython-315.pyc +0 -0
  1272. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/__init__.cpython-315.pyc +0 -0
  1273. package/python/lib/python3.15/site-packages/djlint/rules.yaml +482 -0
  1274. package/python/lib/python3.15/site-packages/djlint/sarif_output.cpython-315-aarch64-linux-musl.so +0 -0
  1275. package/python/lib/python3.15/site-packages/djlint/sarif_output.py +171 -0
  1276. package/python/lib/python3.15/site-packages/djlint/server.cpython-315-aarch64-linux-musl.so +0 -0
  1277. package/python/lib/python3.15/site-packages/djlint/server.py +983 -0
  1278. package/python/lib/python3.15/site-packages/djlint/settings.cpython-315-aarch64-linux-musl.so +0 -0
  1279. package/python/lib/python3.15/site-packages/djlint/settings.py +2381 -0
  1280. package/python/lib/python3.15/site-packages/djlint/src.cpython-315-aarch64-linux-musl.so +0 -0
  1281. package/python/lib/python3.15/site-packages/djlint/src.py +192 -0
  1282. package/python/lib/python3.15/site-packages/djlint/types.pyi +20 -0
  1283. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/INSTALLER +1 -0
  1284. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/METADATA +236 -0
  1285. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/RECORD +133 -0
  1286. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/REQUESTED +0 -0
  1287. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/WHEEL +5 -0
  1288. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/entry_points.txt +2 -0
  1289. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE +675 -0
  1290. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1291. package/python/lib/python3.15/site-packages/ed0510dfe26979f3c42b__mypyc.cpython-315-aarch64-linux-musl.so +0 -0
  1292. package/python/lib/python3.15/site-packages/editorconfig/__init__.py +20 -0
  1293. package/python/lib/python3.15/site-packages/editorconfig/__main__.py +83 -0
  1294. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1295. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1296. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/exceptions.cpython-315.pyc +0 -0
  1297. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/fnmatch.cpython-315.pyc +0 -0
  1298. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/handler.cpython-315.pyc +0 -0
  1299. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/ini.cpython-315.pyc +0 -0
  1300. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/version.cpython-315.pyc +0 -0
  1301. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/versiontools.cpython-315.pyc +0 -0
  1302. package/python/lib/python3.15/site-packages/editorconfig/exceptions.py +24 -0
  1303. package/python/lib/python3.15/site-packages/editorconfig/fnmatch.py +224 -0
  1304. package/python/lib/python3.15/site-packages/editorconfig/handler.py +128 -0
  1305. package/python/lib/python3.15/site-packages/editorconfig/ini.py +173 -0
  1306. package/python/lib/python3.15/site-packages/editorconfig/py.typed +0 -0
  1307. package/python/lib/python3.15/site-packages/editorconfig/version.py +1 -0
  1308. package/python/lib/python3.15/site-packages/editorconfig/versiontools.py +36 -0
  1309. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1310. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1311. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1312. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1313. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1314. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1315. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1316. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1317. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1318. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1319. package/python/lib/python3.15/site-packages/jsbeautifier/__init__.py +309 -0
  1320. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1321. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1322. package/python/lib/python3.15/site-packages/jsbeautifier/__version__.py +1 -0
  1323. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1324. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-315.pyc +0 -0
  1325. package/python/lib/python3.15/site-packages/jsbeautifier/core/__init__.py +1 -0
  1326. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-315.pyc +0 -0
  1327. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/directives.cpython-315.pyc +0 -0
  1328. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-315.pyc +0 -0
  1329. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/options.cpython-315.pyc +0 -0
  1330. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/output.cpython-315.pyc +0 -0
  1331. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-315.pyc +0 -0
  1332. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-315.pyc +0 -0
  1333. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/token.cpython-315.pyc +0 -0
  1334. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1335. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-315.pyc +0 -0
  1336. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-315.pyc +0 -0
  1337. package/python/lib/python3.15/site-packages/jsbeautifier/core/directives.py +55 -0
  1338. package/python/lib/python3.15/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1339. package/python/lib/python3.15/site-packages/jsbeautifier/core/options.py +230 -0
  1340. package/python/lib/python3.15/site-packages/jsbeautifier/core/output.py +352 -0
  1341. package/python/lib/python3.15/site-packages/jsbeautifier/core/pattern.py +83 -0
  1342. package/python/lib/python3.15/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1343. package/python/lib/python3.15/site-packages/jsbeautifier/core/token.py +38 -0
  1344. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1345. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1346. package/python/lib/python3.15/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1347. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1348. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-315.pyc +0 -0
  1349. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-315.pyc +0 -0
  1350. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-315.pyc +0 -0
  1351. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-315.pyc +0 -0
  1352. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1353. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1354. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1355. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/options.py +102 -0
  1356. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1357. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1358. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1359. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-315.pyc +0 -0
  1360. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1361. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1362. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1363. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1364. package/python/lib/python3.15/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1365. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1366. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-315.pyc +0 -0
  1367. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-315.pyc +0 -0
  1368. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-315.pyc +0 -0
  1369. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-315.pyc +0 -0
  1370. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-315.pyc +0 -0
  1371. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-315.pyc +0 -0
  1372. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1373. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1374. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1375. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1376. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1377. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1378. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-315.pyc +0 -0
  1379. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-315.pyc +0 -0
  1380. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-315.pyc +0 -0
  1381. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-315.pyc +0 -0
  1382. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1383. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1384. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1385. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1386. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1387. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1388. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1389. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1390. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1391. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1392. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1393. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1394. package/python/lib/python3.15/site-packages/json5/__init__.py +30 -0
  1395. package/python/lib/python3.15/site-packages/json5/__main__.py +22 -0
  1396. package/python/lib/python3.15/site-packages/json5/__pycache__/__init__.cpython-315.pyc +0 -0
  1397. package/python/lib/python3.15/site-packages/json5/__pycache__/__main__.cpython-315.pyc +0 -0
  1398. package/python/lib/python3.15/site-packages/json5/__pycache__/host.cpython-315.pyc +0 -0
  1399. package/python/lib/python3.15/site-packages/json5/__pycache__/lib.cpython-315.pyc +0 -0
  1400. package/python/lib/python3.15/site-packages/json5/__pycache__/parser.cpython-315.pyc +0 -0
  1401. package/python/lib/python3.15/site-packages/json5/__pycache__/tool.cpython-315.pyc +0 -0
  1402. package/python/lib/python3.15/site-packages/json5/__pycache__/version.cpython-315.pyc +0 -0
  1403. package/python/lib/python3.15/site-packages/json5/host.py +53 -0
  1404. package/python/lib/python3.15/site-packages/json5/lib.py +1007 -0
  1405. package/python/lib/python3.15/site-packages/json5/parser.py +1376 -0
  1406. package/python/lib/python3.15/site-packages/json5/py.typed +0 -0
  1407. package/python/lib/python3.15/site-packages/json5/tool.py +198 -0
  1408. package/python/lib/python3.15/site-packages/json5/version.py +18 -0
  1409. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1410. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1411. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1412. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1413. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1414. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1415. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1416. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1417. package/python/lib/python3.15/site-packages/pathspec/__init__.py +68 -0
  1418. package/python/lib/python3.15/site-packages/pathspec/__pycache__/__init__.cpython-315.pyc +0 -0
  1419. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_meta.cpython-315.pyc +0 -0
  1420. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_typing.cpython-315.pyc +0 -0
  1421. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_version.cpython-315.pyc +0 -0
  1422. package/python/lib/python3.15/site-packages/pathspec/__pycache__/backend.cpython-315.pyc +0 -0
  1423. package/python/lib/python3.15/site-packages/pathspec/__pycache__/gitignore.cpython-315.pyc +0 -0
  1424. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pathspec.cpython-315.pyc +0 -0
  1425. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pattern.cpython-315.pyc +0 -0
  1426. package/python/lib/python3.15/site-packages/pathspec/__pycache__/util.cpython-315.pyc +0 -0
  1427. package/python/lib/python3.15/site-packages/pathspec/_backends/__init__.py +4 -0
  1428. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/__init__.cpython-315.pyc +0 -0
  1429. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/_utils.cpython-315.pyc +0 -0
  1430. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/agg.cpython-315.pyc +0 -0
  1431. package/python/lib/python3.15/site-packages/pathspec/_backends/_utils.py +45 -0
  1432. package/python/lib/python3.15/site-packages/pathspec/_backends/agg.py +104 -0
  1433. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1434. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-315.pyc +0 -0
  1435. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-315.pyc +0 -0
  1436. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-315.pyc +0 -0
  1437. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-315.pyc +0 -0
  1438. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-315.pyc +0 -0
  1439. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1440. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1441. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1442. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1443. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1444. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-315.pyc +0 -0
  1445. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-315.pyc +0 -0
  1446. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-315.pyc +0 -0
  1447. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-315.pyc +0 -0
  1448. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-315.pyc +0 -0
  1449. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1450. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/base.py +18 -0
  1451. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1452. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1453. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1454. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-315.pyc +0 -0
  1455. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-315.pyc +0 -0
  1456. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-315.pyc +0 -0
  1457. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1458. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1459. package/python/lib/python3.15/site-packages/pathspec/_meta.py +70 -0
  1460. package/python/lib/python3.15/site-packages/pathspec/_typing.py +64 -0
  1461. package/python/lib/python3.15/site-packages/pathspec/_version.py +5 -0
  1462. package/python/lib/python3.15/site-packages/pathspec/backend.py +51 -0
  1463. package/python/lib/python3.15/site-packages/pathspec/gitignore.py +172 -0
  1464. package/python/lib/python3.15/site-packages/pathspec/pathspec.py +527 -0
  1465. package/python/lib/python3.15/site-packages/pathspec/pattern.py +259 -0
  1466. package/python/lib/python3.15/site-packages/pathspec/patterns/__init__.py +12 -0
  1467. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/__init__.cpython-315.pyc +0 -0
  1468. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-315.pyc +0 -0
  1469. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1470. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-315.pyc +0 -0
  1471. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-315.pyc +0 -0
  1472. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-315.pyc +0 -0
  1473. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-315.pyc +0 -0
  1474. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1475. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1476. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1477. package/python/lib/python3.15/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1478. package/python/lib/python3.15/site-packages/pathspec/py.typed +1 -0
  1479. package/python/lib/python3.15/site-packages/pathspec/util.py +864 -0
  1480. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1481. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1482. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1483. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1484. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1485. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1486. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/INSTALLER +1 -0
  1487. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/METADATA +58 -0
  1488. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/RECORD +26 -0
  1489. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/REQUESTED +0 -0
  1490. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/WHEEL +5 -0
  1491. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/licenses/LICENSE +20 -0
  1492. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/top_level.txt +2 -0
  1493. package/python/lib/python3.15/site-packages/regex/__init__.py +3 -0
  1494. package/python/lib/python3.15/site-packages/regex/__pycache__/__init__.cpython-315.pyc +0 -0
  1495. package/python/lib/python3.15/site-packages/regex/__pycache__/_main.cpython-315.pyc +0 -0
  1496. package/python/lib/python3.15/site-packages/regex/__pycache__/_regex_core.cpython-315.pyc +0 -0
  1497. package/python/lib/python3.15/site-packages/regex/_main.py +759 -0
  1498. package/python/lib/python3.15/site-packages/regex/_regex.cpython-315-aarch64-linux-musl.so +0 -0
  1499. package/python/lib/python3.15/site-packages/regex/_regex_core.py +4689 -0
  1500. package/python/lib/python3.15/site-packages/regex/tests/__pycache__/test_regex.cpython-315.pyc +0 -0
  1501. package/python/lib/python3.15/site-packages/regex/tests/test_regex.py +4612 -0
  1502. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/INSTALLER +1 -0
  1503. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/METADATA +1060 -0
  1504. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/RECORD +12 -0
  1505. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/REQUESTED +0 -0
  1506. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/WHEEL +5 -0
  1507. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/licenses/LICENSE.txt +208 -0
  1508. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/top_level.txt +1 -0
  1509. package/python/lib/python3.15/site-packages/yaml/__init__.py +390 -0
  1510. package/python/lib/python3.15/site-packages/yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1511. package/python/lib/python3.15/site-packages/yaml/__pycache__/composer.cpython-315.pyc +0 -0
  1512. package/python/lib/python3.15/site-packages/yaml/__pycache__/constructor.cpython-315.pyc +0 -0
  1513. package/python/lib/python3.15/site-packages/yaml/__pycache__/cyaml.cpython-315.pyc +0 -0
  1514. package/python/lib/python3.15/site-packages/yaml/__pycache__/dumper.cpython-315.pyc +0 -0
  1515. package/python/lib/python3.15/site-packages/yaml/__pycache__/emitter.cpython-315.pyc +0 -0
  1516. package/python/lib/python3.15/site-packages/yaml/__pycache__/error.cpython-315.pyc +0 -0
  1517. package/python/lib/python3.15/site-packages/yaml/__pycache__/events.cpython-315.pyc +0 -0
  1518. package/python/lib/python3.15/site-packages/yaml/__pycache__/loader.cpython-315.pyc +0 -0
  1519. package/python/lib/python3.15/site-packages/yaml/__pycache__/nodes.cpython-315.pyc +0 -0
  1520. package/python/lib/python3.15/site-packages/yaml/__pycache__/parser.cpython-315.pyc +0 -0
  1521. package/python/lib/python3.15/site-packages/yaml/__pycache__/reader.cpython-315.pyc +0 -0
  1522. package/python/lib/python3.15/site-packages/yaml/__pycache__/representer.cpython-315.pyc +0 -0
  1523. package/python/lib/python3.15/site-packages/yaml/__pycache__/resolver.cpython-315.pyc +0 -0
  1524. package/python/lib/python3.15/site-packages/yaml/__pycache__/scanner.cpython-315.pyc +0 -0
  1525. package/python/lib/python3.15/site-packages/yaml/__pycache__/serializer.cpython-315.pyc +0 -0
  1526. package/python/lib/python3.15/site-packages/yaml/__pycache__/tokens.cpython-315.pyc +0 -0
  1527. package/python/lib/python3.15/site-packages/yaml/_yaml.cpython-315-aarch64-linux-musl.so +0 -0
  1528. package/python/lib/python3.15/site-packages/yaml/composer.py +139 -0
  1529. package/python/lib/python3.15/site-packages/yaml/constructor.py +751 -0
  1530. package/python/lib/python3.15/site-packages/yaml/cyaml.py +101 -0
  1531. package/python/lib/python3.15/site-packages/yaml/dumper.py +62 -0
  1532. package/python/lib/python3.15/site-packages/yaml/emitter.py +1137 -0
  1533. package/python/lib/python3.15/site-packages/yaml/error.py +75 -0
  1534. package/python/lib/python3.15/site-packages/yaml/events.py +86 -0
  1535. package/python/lib/python3.15/site-packages/yaml/loader.py +63 -0
  1536. package/python/lib/python3.15/site-packages/yaml/nodes.py +49 -0
  1537. package/python/lib/python3.15/site-packages/yaml/parser.py +589 -0
  1538. package/python/lib/python3.15/site-packages/yaml/reader.py +185 -0
  1539. package/python/lib/python3.15/site-packages/yaml/representer.py +389 -0
  1540. package/python/lib/python3.15/site-packages/yaml/resolver.py +227 -0
  1541. package/python/lib/python3.15/site-packages/yaml/scanner.py +1435 -0
  1542. package/python/lib/python3.15/site-packages/yaml/serializer.py +111 -0
  1543. package/python/lib/python3.15/site-packages/yaml/tokens.py +104 -0
  1544. package/python/lib/python3.15/site.py +1159 -0
  1545. package/python/lib/python3.15/smtplib.py +1121 -0
  1546. package/python/lib/python3.15/socket.py +1003 -0
  1547. package/python/lib/python3.15/socketserver.py +869 -0
  1548. package/python/lib/python3.15/sqlite3/__init__.py +57 -0
  1549. package/python/lib/python3.15/sqlite3/__main__.py +156 -0
  1550. package/python/lib/python3.15/sqlite3/__pycache__/__init__.cpython-315.pyc +0 -0
  1551. package/python/lib/python3.15/sqlite3/__pycache__/__main__.cpython-315.pyc +0 -0
  1552. package/python/lib/python3.15/sqlite3/__pycache__/_completer.cpython-315.pyc +0 -0
  1553. package/python/lib/python3.15/sqlite3/__pycache__/dbapi2.cpython-315.pyc +0 -0
  1554. package/python/lib/python3.15/sqlite3/__pycache__/dump.cpython-315.pyc +0 -0
  1555. package/python/lib/python3.15/sqlite3/_completer.py +111 -0
  1556. package/python/lib/python3.15/sqlite3/dbapi2.py +96 -0
  1557. package/python/lib/python3.15/sqlite3/dump.py +118 -0
  1558. package/python/lib/python3.15/ssl.py +1600 -0
  1559. package/python/lib/python3.15/stat.py +227 -0
  1560. package/python/lib/python3.15/statistics.py +1880 -0
  1561. package/python/lib/python3.15/string/__init__.py +323 -0
  1562. package/python/lib/python3.15/string/__pycache__/__init__.cpython-315.pyc +0 -0
  1563. package/python/lib/python3.15/string/__pycache__/templatelib.cpython-315.pyc +0 -0
  1564. package/python/lib/python3.15/string/templatelib.py +33 -0
  1565. package/python/lib/python3.15/stringprep.py +463 -0
  1566. package/python/lib/python3.15/struct.py +15 -0
  1567. package/python/lib/python3.15/subprocess.py +2509 -0
  1568. package/python/lib/python3.15/symtable.py +452 -0
  1569. package/python/lib/python3.15/sysconfig/__init__.py +797 -0
  1570. package/python/lib/python3.15/sysconfig/__main__.py +250 -0
  1571. package/python/lib/python3.15/sysconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1572. package/python/lib/python3.15/sysconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1573. package/python/lib/python3.15/tabnanny.py +345 -0
  1574. package/python/lib/python3.15/tarfile.py +3259 -0
  1575. package/python/lib/python3.15/tempfile.py +1057 -0
  1576. package/python/lib/python3.15/textwrap.py +475 -0
  1577. package/python/lib/python3.15/this.py +28 -0
  1578. package/python/lib/python3.15/threading.py +1780 -0
  1579. package/python/lib/python3.15/timeit.py +431 -0
  1580. package/python/lib/python3.15/token.py +144 -0
  1581. package/python/lib/python3.15/tokenize.py +644 -0
  1582. package/python/lib/python3.15/tomllib/__init__.py +10 -0
  1583. package/python/lib/python3.15/tomllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1584. package/python/lib/python3.15/tomllib/__pycache__/_parser.cpython-315.pyc +0 -0
  1585. package/python/lib/python3.15/tomllib/__pycache__/_re.cpython-315.pyc +0 -0
  1586. package/python/lib/python3.15/tomllib/__pycache__/_types.cpython-315.pyc +0 -0
  1587. package/python/lib/python3.15/tomllib/_parser.py +776 -0
  1588. package/python/lib/python3.15/tomllib/_re.py +119 -0
  1589. package/python/lib/python3.15/tomllib/_types.py +10 -0
  1590. package/python/lib/python3.15/tomllib/mypy.ini +15 -0
  1591. package/python/lib/python3.15/trace.py +749 -0
  1592. package/python/lib/python3.15/traceback.py +2090 -0
  1593. package/python/lib/python3.15/tracemalloc.py +560 -0
  1594. package/python/lib/python3.15/tty.py +73 -0
  1595. package/python/lib/python3.15/types.py +355 -0
  1596. package/python/lib/python3.15/typing.py +3949 -0
  1597. package/python/lib/python3.15/unittest/__init__.py +80 -0
  1598. package/python/lib/python3.15/unittest/__main__.py +18 -0
  1599. package/python/lib/python3.15/unittest/__pycache__/__init__.cpython-315.pyc +0 -0
  1600. package/python/lib/python3.15/unittest/__pycache__/__main__.cpython-315.pyc +0 -0
  1601. package/python/lib/python3.15/unittest/__pycache__/_log.cpython-315.pyc +0 -0
  1602. package/python/lib/python3.15/unittest/__pycache__/async_case.cpython-315.pyc +0 -0
  1603. package/python/lib/python3.15/unittest/__pycache__/case.cpython-315.pyc +0 -0
  1604. package/python/lib/python3.15/unittest/__pycache__/loader.cpython-315.pyc +0 -0
  1605. package/python/lib/python3.15/unittest/__pycache__/main.cpython-315.pyc +0 -0
  1606. package/python/lib/python3.15/unittest/__pycache__/mock.cpython-315.pyc +0 -0
  1607. package/python/lib/python3.15/unittest/__pycache__/result.cpython-315.pyc +0 -0
  1608. package/python/lib/python3.15/unittest/__pycache__/runner.cpython-315.pyc +0 -0
  1609. package/python/lib/python3.15/unittest/__pycache__/signals.cpython-315.pyc +0 -0
  1610. package/python/lib/python3.15/unittest/__pycache__/suite.cpython-315.pyc +0 -0
  1611. package/python/lib/python3.15/unittest/__pycache__/util.cpython-315.pyc +0 -0
  1612. package/python/lib/python3.15/unittest/_log.py +87 -0
  1613. package/python/lib/python3.15/unittest/async_case.py +158 -0
  1614. package/python/lib/python3.15/unittest/case.py +1652 -0
  1615. package/python/lib/python3.15/unittest/loader.py +491 -0
  1616. package/python/lib/python3.15/unittest/main.py +280 -0
  1617. package/python/lib/python3.15/unittest/mock.py +3212 -0
  1618. package/python/lib/python3.15/unittest/result.py +259 -0
  1619. package/python/lib/python3.15/unittest/runner.py +312 -0
  1620. package/python/lib/python3.15/unittest/signals.py +71 -0
  1621. package/python/lib/python3.15/unittest/suite.py +391 -0
  1622. package/python/lib/python3.15/unittest/util.py +187 -0
  1623. package/python/lib/python3.15/urllib/__init__.py +0 -0
  1624. package/python/lib/python3.15/urllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1625. package/python/lib/python3.15/urllib/__pycache__/error.cpython-315.pyc +0 -0
  1626. package/python/lib/python3.15/urllib/__pycache__/parse.cpython-315.pyc +0 -0
  1627. package/python/lib/python3.15/urllib/__pycache__/request.cpython-315.pyc +0 -0
  1628. package/python/lib/python3.15/urllib/__pycache__/response.cpython-315.pyc +0 -0
  1629. package/python/lib/python3.15/urllib/__pycache__/robotparser.cpython-315.pyc +0 -0
  1630. package/python/lib/python3.15/urllib/error.py +74 -0
  1631. package/python/lib/python3.15/urllib/parse.py +1407 -0
  1632. package/python/lib/python3.15/urllib/request.py +2177 -0
  1633. package/python/lib/python3.15/urllib/response.py +84 -0
  1634. package/python/lib/python3.15/urllib/robotparser.py +363 -0
  1635. package/python/lib/python3.15/uuid.py +1013 -0
  1636. package/python/lib/python3.15/venv/__init__.py +695 -0
  1637. package/python/lib/python3.15/venv/__main__.py +10 -0
  1638. package/python/lib/python3.15/venv/__pycache__/__init__.cpython-315.pyc +0 -0
  1639. package/python/lib/python3.15/venv/__pycache__/__main__.cpython-315.pyc +0 -0
  1640. package/python/lib/python3.15/venv/scripts/common/Activate.ps1 +248 -0
  1641. package/python/lib/python3.15/venv/scripts/common/activate +76 -0
  1642. package/python/lib/python3.15/venv/scripts/common/activate.fish +69 -0
  1643. package/python/lib/python3.15/venv/scripts/posix/activate.csh +29 -0
  1644. package/python/lib/python3.15/warnings.py +99 -0
  1645. package/python/lib/python3.15/wave.py +704 -0
  1646. package/python/lib/python3.15/weakref.py +576 -0
  1647. package/python/lib/python3.15/webbrowser.py +841 -0
  1648. package/python/lib/python3.15/wsgiref/__init__.py +25 -0
  1649. package/python/lib/python3.15/wsgiref/__pycache__/__init__.cpython-315.pyc +0 -0
  1650. package/python/lib/python3.15/wsgiref/__pycache__/handlers.cpython-315.pyc +0 -0
  1651. package/python/lib/python3.15/wsgiref/__pycache__/headers.cpython-315.pyc +0 -0
  1652. package/python/lib/python3.15/wsgiref/__pycache__/simple_server.cpython-315.pyc +0 -0
  1653. package/python/lib/python3.15/wsgiref/__pycache__/types.cpython-315.pyc +0 -0
  1654. package/python/lib/python3.15/wsgiref/__pycache__/util.cpython-315.pyc +0 -0
  1655. package/python/lib/python3.15/wsgiref/__pycache__/validate.cpython-315.pyc +0 -0
  1656. package/python/lib/python3.15/wsgiref/handlers.py +576 -0
  1657. package/python/lib/python3.15/wsgiref/headers.py +192 -0
  1658. package/python/lib/python3.15/wsgiref/simple_server.py +169 -0
  1659. package/python/lib/python3.15/wsgiref/types.py +54 -0
  1660. package/python/lib/python3.15/wsgiref/util.py +159 -0
  1661. package/python/lib/python3.15/wsgiref/validate.py +438 -0
  1662. package/python/lib/python3.15/xml/__init__.py +21 -0
  1663. package/python/lib/python3.15/xml/__pycache__/__init__.cpython-315.pyc +0 -0
  1664. package/python/lib/python3.15/xml/__pycache__/utils.cpython-315.pyc +0 -0
  1665. package/python/lib/python3.15/xml/dom/NodeFilter.py +27 -0
  1666. package/python/lib/python3.15/xml/dom/__init__.py +140 -0
  1667. package/python/lib/python3.15/xml/dom/__pycache__/NodeFilter.cpython-315.pyc +0 -0
  1668. package/python/lib/python3.15/xml/dom/__pycache__/__init__.cpython-315.pyc +0 -0
  1669. package/python/lib/python3.15/xml/dom/__pycache__/domreg.cpython-315.pyc +0 -0
  1670. package/python/lib/python3.15/xml/dom/__pycache__/expatbuilder.cpython-315.pyc +0 -0
  1671. package/python/lib/python3.15/xml/dom/__pycache__/minicompat.cpython-315.pyc +0 -0
  1672. package/python/lib/python3.15/xml/dom/__pycache__/minidom.cpython-315.pyc +0 -0
  1673. package/python/lib/python3.15/xml/dom/__pycache__/pulldom.cpython-315.pyc +0 -0
  1674. package/python/lib/python3.15/xml/dom/__pycache__/xmlbuilder.cpython-315.pyc +0 -0
  1675. package/python/lib/python3.15/xml/dom/domreg.py +99 -0
  1676. package/python/lib/python3.15/xml/dom/expatbuilder.py +964 -0
  1677. package/python/lib/python3.15/xml/dom/minicompat.py +109 -0
  1678. package/python/lib/python3.15/xml/dom/minidom.py +2027 -0
  1679. package/python/lib/python3.15/xml/dom/pulldom.py +350 -0
  1680. package/python/lib/python3.15/xml/dom/xmlbuilder.py +389 -0
  1681. package/python/lib/python3.15/xml/etree/ElementInclude.py +186 -0
  1682. package/python/lib/python3.15/xml/etree/ElementPath.py +430 -0
  1683. package/python/lib/python3.15/xml/etree/ElementTree.py +2111 -0
  1684. package/python/lib/python3.15/xml/etree/__init__.py +33 -0
  1685. package/python/lib/python3.15/xml/etree/__pycache__/ElementInclude.cpython-315.pyc +0 -0
  1686. package/python/lib/python3.15/xml/etree/__pycache__/ElementPath.cpython-315.pyc +0 -0
  1687. package/python/lib/python3.15/xml/etree/__pycache__/ElementTree.cpython-315.pyc +0 -0
  1688. package/python/lib/python3.15/xml/etree/__pycache__/__init__.cpython-315.pyc +0 -0
  1689. package/python/lib/python3.15/xml/etree/__pycache__/cElementTree.cpython-315.pyc +0 -0
  1690. package/python/lib/python3.15/xml/etree/cElementTree.py +3 -0
  1691. package/python/lib/python3.15/xml/parsers/__init__.py +8 -0
  1692. package/python/lib/python3.15/xml/parsers/__pycache__/__init__.cpython-315.pyc +0 -0
  1693. package/python/lib/python3.15/xml/parsers/__pycache__/expat.cpython-315.pyc +0 -0
  1694. package/python/lib/python3.15/xml/parsers/expat.py +8 -0
  1695. package/python/lib/python3.15/xml/sax/__init__.py +109 -0
  1696. package/python/lib/python3.15/xml/sax/__pycache__/__init__.cpython-315.pyc +0 -0
  1697. package/python/lib/python3.15/xml/sax/__pycache__/_exceptions.cpython-315.pyc +0 -0
  1698. package/python/lib/python3.15/xml/sax/__pycache__/expatreader.cpython-315.pyc +0 -0
  1699. package/python/lib/python3.15/xml/sax/__pycache__/handler.cpython-315.pyc +0 -0
  1700. package/python/lib/python3.15/xml/sax/__pycache__/saxutils.cpython-315.pyc +0 -0
  1701. package/python/lib/python3.15/xml/sax/__pycache__/xmlreader.cpython-315.pyc +0 -0
  1702. package/python/lib/python3.15/xml/sax/_exceptions.py +127 -0
  1703. package/python/lib/python3.15/xml/sax/expatreader.py +462 -0
  1704. package/python/lib/python3.15/xml/sax/handler.py +394 -0
  1705. package/python/lib/python3.15/xml/sax/saxutils.py +370 -0
  1706. package/python/lib/python3.15/xml/sax/xmlreader.py +379 -0
  1707. package/python/lib/python3.15/xml/utils.py +37 -0
  1708. package/python/lib/python3.15/xmlrpc/__init__.py +1 -0
  1709. package/python/lib/python3.15/xmlrpc/__pycache__/__init__.cpython-315.pyc +0 -0
  1710. package/python/lib/python3.15/xmlrpc/__pycache__/client.cpython-315.pyc +0 -0
  1711. package/python/lib/python3.15/xmlrpc/__pycache__/server.cpython-315.pyc +0 -0
  1712. package/python/lib/python3.15/xmlrpc/client.py +1503 -0
  1713. package/python/lib/python3.15/xmlrpc/server.py +1003 -0
  1714. package/python/lib/python3.15/zipapp.py +231 -0
  1715. package/python/lib/python3.15/zipfile/__init__.py +2444 -0
  1716. package/python/lib/python3.15/zipfile/__main__.py +4 -0
  1717. package/python/lib/python3.15/zipfile/__pycache__/__init__.cpython-315.pyc +0 -0
  1718. package/python/lib/python3.15/zipfile/__pycache__/__main__.cpython-315.pyc +0 -0
  1719. package/python/lib/python3.15/zipfile/_path/__init__.py +456 -0
  1720. package/python/lib/python3.15/zipfile/_path/__pycache__/__init__.cpython-315.pyc +0 -0
  1721. package/python/lib/python3.15/zipfile/_path/__pycache__/_functools.cpython-315.pyc +0 -0
  1722. package/python/lib/python3.15/zipfile/_path/__pycache__/glob.cpython-315.pyc +0 -0
  1723. package/python/lib/python3.15/zipfile/_path/_functools.py +31 -0
  1724. package/python/lib/python3.15/zipfile/_path/glob.py +113 -0
  1725. package/python/lib/python3.15/zipimport.py +849 -0
  1726. package/python/lib/python3.15/zoneinfo/__init__.py +34 -0
  1727. package/python/lib/python3.15/zoneinfo/__pycache__/__init__.cpython-315.pyc +0 -0
  1728. package/python/lib/python3.15/zoneinfo/__pycache__/_common.cpython-315.pyc +0 -0
  1729. package/python/lib/python3.15/zoneinfo/__pycache__/_tzpath.cpython-315.pyc +0 -0
  1730. package/python/lib/python3.15/zoneinfo/__pycache__/_zoneinfo.cpython-315.pyc +0 -0
  1731. package/python/lib/python3.15/zoneinfo/_common.py +172 -0
  1732. package/python/lib/python3.15/zoneinfo/_tzpath.py +193 -0
  1733. package/python/lib/python3.15/zoneinfo/_zoneinfo.py +779 -0
  1734. package/python/licenses/LICENSE.bdb.txt +126 -0
  1735. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1736. package/python/licenses/LICENSE.cpython.txt +771 -0
  1737. package/python/licenses/LICENSE.expat.txt +21 -0
  1738. package/python/licenses/LICENSE.libX11.txt +942 -0
  1739. package/python/licenses/LICENSE.libXau.txt +21 -0
  1740. package/python/licenses/LICENSE.libedit.txt +29 -0
  1741. package/python/licenses/LICENSE.libffi.txt +21 -0
  1742. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1743. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1744. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1745. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1746. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1747. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1748. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1749. package/python/licenses/LICENSE.tcl.txt +40 -0
  1750. package/python/licenses/LICENSE.tix.txt +54 -0
  1751. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1752. package/python/licenses/LICENSE.zlib.txt +22 -0
  1753. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2509 @@
1
+ # subprocess - Subprocesses with accessible I/O streams
2
+ #
3
+ # For more information about this module, see PEP 324.
4
+ #
5
+ # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se>
6
+ #
7
+ # Licensed to PSF under a Contributor Agreement.
8
+
9
+ r"""Subprocesses with accessible I/O streams
10
+
11
+ This module allows you to spawn processes, connect to their
12
+ input/output/error pipes, and obtain their return codes.
13
+
14
+ For a complete description of this module see the Python documentation.
15
+
16
+ Main API
17
+ ========
18
+ run(...): Runs a command, waits for it to complete, then returns a
19
+ CompletedProcess instance.
20
+ Popen(...): A class for flexibly executing a command in a new process
21
+
22
+ Constants
23
+ ---------
24
+ DEVNULL: Special value that indicates that os.devnull should be used
25
+ PIPE: Special value that indicates a pipe should be created
26
+ STDOUT: Special value that indicates that stderr should go to stdout
27
+
28
+
29
+ Older API
30
+ =========
31
+ call(...): Runs a command, waits for it to complete, then returns
32
+ the return code.
33
+ check_call(...): Same as call() but raises CalledProcessError()
34
+ if return code is not 0
35
+ check_output(...): Same as check_call() but returns the contents of
36
+ stdout instead of a return code
37
+ getoutput(...): Runs a command in the shell, waits for it to complete,
38
+ then returns the output
39
+ getstatusoutput(...): Runs a command in the shell, waits for it to complete,
40
+ then returns a (exitcode, output) tuple
41
+ """
42
+
43
+ import builtins
44
+ import errno
45
+ import io
46
+ import locale
47
+ import os
48
+ import time
49
+ import signal
50
+ import sys
51
+ import threading
52
+ import warnings
53
+ import contextlib
54
+ from time import monotonic as _time
55
+ import types
56
+
57
+ try:
58
+ import fcntl
59
+ except ImportError:
60
+ fcntl = None
61
+
62
+
63
+ __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",
64
+ "getoutput", "check_output", "run", "CalledProcessError", "DEVNULL",
65
+ "SubprocessError", "TimeoutExpired", "CompletedProcess"]
66
+ # NOTE: We intentionally exclude list2cmdline as it is
67
+ # considered an internal implementation detail. issue10838.
68
+
69
+ # use presence of msvcrt to detect Windows-like platforms (see bpo-8110)
70
+ try:
71
+ import msvcrt
72
+ except ModuleNotFoundError:
73
+ _mswindows = False
74
+ else:
75
+ _mswindows = True
76
+
77
+ # some platforms do not support subprocesses
78
+ _can_fork_exec = sys.platform not in {"emscripten", "wasi", "ios", "tvos", "watchos"}
79
+
80
+ if _mswindows:
81
+ import _winapi
82
+ from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP, # noqa: F401
83
+ STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
84
+ STD_ERROR_HANDLE, SW_HIDE,
85
+ STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
86
+ STARTF_FORCEONFEEDBACK, STARTF_FORCEOFFFEEDBACK,
87
+ ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
88
+ HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
89
+ NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
90
+ CREATE_NO_WINDOW, DETACHED_PROCESS,
91
+ CREATE_DEFAULT_ERROR_MODE, CREATE_BREAKAWAY_FROM_JOB)
92
+
93
+ __all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP",
94
+ "STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
95
+ "STD_ERROR_HANDLE", "SW_HIDE",
96
+ "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
97
+ "STARTF_FORCEONFEEDBACK", "STARTF_FORCEOFFFEEDBACK",
98
+ "STARTUPINFO",
99
+ "ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
100
+ "HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",
101
+ "NORMAL_PRIORITY_CLASS", "REALTIME_PRIORITY_CLASS",
102
+ "CREATE_NO_WINDOW", "DETACHED_PROCESS",
103
+ "CREATE_DEFAULT_ERROR_MODE", "CREATE_BREAKAWAY_FROM_JOB"])
104
+ else:
105
+ if _can_fork_exec:
106
+ from _posixsubprocess import fork_exec as _fork_exec
107
+ # used in methods that are called by __del__
108
+ class _del_safe:
109
+ waitpid = os.waitpid
110
+ waitstatus_to_exitcode = os.waitstatus_to_exitcode
111
+ WIFSTOPPED = os.WIFSTOPPED
112
+ WSTOPSIG = os.WSTOPSIG
113
+ WNOHANG = os.WNOHANG
114
+ ECHILD = errno.ECHILD
115
+ else:
116
+ class _del_safe:
117
+ waitpid = None
118
+ waitstatus_to_exitcode = None
119
+ WIFSTOPPED = None
120
+ WSTOPSIG = None
121
+ WNOHANG = None
122
+ ECHILD = errno.ECHILD
123
+
124
+ import select
125
+ import selectors
126
+
127
+
128
+ # Exception classes used by this module.
129
+ class SubprocessError(Exception): pass
130
+
131
+
132
+ class CalledProcessError(SubprocessError):
133
+ """Raised when run() is called with check=True and the process
134
+ returns a non-zero exit status.
135
+
136
+ Attributes:
137
+ cmd, returncode, stdout, stderr, output
138
+ """
139
+ def __init__(self, returncode, cmd, output=None, stderr=None):
140
+ self.returncode = returncode
141
+ self.cmd = cmd
142
+ self.output = output
143
+ self.stderr = stderr
144
+
145
+ def __str__(self):
146
+ if isinstance(self.returncode, int) and self.returncode < 0:
147
+ try:
148
+ return "Command '%s' died with %r." % (
149
+ self.cmd, signal.Signals(-self.returncode))
150
+ except ValueError:
151
+ return "Command '%s' died with unknown signal %d." % (
152
+ self.cmd, -self.returncode)
153
+ else:
154
+ return (f"Command {self.cmd!r} returned non-zero "
155
+ f"exit status {self.returncode}.")
156
+
157
+ @property
158
+ def stdout(self):
159
+ """Alias for output attribute, to match stderr"""
160
+ return self.output
161
+
162
+ @stdout.setter
163
+ def stdout(self, value):
164
+ # There's no obvious reason to set this, but allow it anyway so
165
+ # .stdout is a transparent alias for .output
166
+ self.output = value
167
+
168
+
169
+ class TimeoutExpired(SubprocessError):
170
+ """This exception is raised when the timeout expires while waiting for a
171
+ child process.
172
+
173
+ Attributes:
174
+ cmd, output, stdout, stderr, timeout
175
+ """
176
+ def __init__(self, cmd, timeout, output=None, stderr=None):
177
+ self.cmd = cmd
178
+ self.timeout = timeout
179
+ self.output = output
180
+ self.stderr = stderr
181
+
182
+ def __str__(self):
183
+ return ("Command '%s' timed out after %s seconds" %
184
+ (self.cmd, self.timeout))
185
+
186
+ @property
187
+ def stdout(self):
188
+ return self.output
189
+
190
+ @stdout.setter
191
+ def stdout(self, value):
192
+ # There's no obvious reason to set this, but allow it anyway so
193
+ # .stdout is a transparent alias for .output
194
+ self.output = value
195
+
196
+
197
+ if _mswindows:
198
+ class STARTUPINFO:
199
+ def __init__(self, *, dwFlags=0, hStdInput=None, hStdOutput=None,
200
+ hStdError=None, wShowWindow=0, lpAttributeList=None):
201
+ self.dwFlags = dwFlags
202
+ self.hStdInput = hStdInput
203
+ self.hStdOutput = hStdOutput
204
+ self.hStdError = hStdError
205
+ self.wShowWindow = wShowWindow
206
+ self.lpAttributeList = lpAttributeList or {"handle_list": []}
207
+
208
+ def copy(self):
209
+ attr_list = self.lpAttributeList.copy()
210
+ if 'handle_list' in attr_list:
211
+ attr_list['handle_list'] = list(attr_list['handle_list'])
212
+
213
+ return STARTUPINFO(dwFlags=self.dwFlags,
214
+ hStdInput=self.hStdInput,
215
+ hStdOutput=self.hStdOutput,
216
+ hStdError=self.hStdError,
217
+ wShowWindow=self.wShowWindow,
218
+ lpAttributeList=attr_list)
219
+
220
+
221
+ class Handle(int):
222
+ closed = False
223
+
224
+ def Close(self, CloseHandle=_winapi.CloseHandle):
225
+ if not self.closed:
226
+ self.closed = True
227
+ CloseHandle(self)
228
+
229
+ def Detach(self):
230
+ if not self.closed:
231
+ self.closed = True
232
+ return int(self)
233
+ raise ValueError("already closed")
234
+
235
+ def __repr__(self):
236
+ return "%s(%d)" % (self.__class__.__name__, int(self))
237
+
238
+ __del__ = Close
239
+ else:
240
+ # When select or poll has indicated that the file is writable,
241
+ # we can write up to _PIPE_BUF bytes without risk of blocking.
242
+ # POSIX defines PIPE_BUF as >= 512.
243
+ _PIPE_BUF = getattr(select, 'PIPE_BUF', 512)
244
+
245
+ # poll/select have the advantage of not requiring any extra file
246
+ # descriptor, contrarily to epoll/kqueue (also, they require a single
247
+ # syscall).
248
+ if hasattr(selectors, 'PollSelector'):
249
+ _PopenSelector = selectors.PollSelector
250
+ else:
251
+ _PopenSelector = selectors.SelectSelector
252
+
253
+ def _communicate_io_posix(selector, stdin, input_view, input_offset,
254
+ output_buffers, endtime, *, close_on_eof=False):
255
+ """
256
+ Low-level POSIX I/O multiplexing loop used by Popen._communicate.
257
+
258
+ Handles the select loop for reading/writing but does not manage
259
+ stream lifecycle or raise timeout exceptions.
260
+
261
+ Args:
262
+ selector: A _PopenSelector with streams already registered
263
+ stdin: Writable file object for input, or None
264
+ input_view: memoryview of input bytes, or None
265
+ input_offset: Starting offset into input_view (for resume support)
266
+ output_buffers: Dict {file_object: list} to append read chunks to
267
+ endtime: Deadline timestamp, or None for no timeout
268
+ close_on_eof: If True, close output streams immediately when they
269
+ EOF rather than leaving them open for the caller to close.
270
+ Used by Popen._communicate() to match its historical behavior
271
+ of releasing fds as soon as the child closes the corresponding
272
+ pipe.
273
+
274
+ Returns:
275
+ (new_input_offset, completed)
276
+ - new_input_offset: How many bytes of input were written
277
+ - completed: True if all I/O finished, False if timed out
278
+
279
+ Note:
280
+ - Closes output streams on EOF only if close_on_eof=True
281
+ - Does NOT raise TimeoutExpired (caller handles)
282
+ - Appends to output_buffers lists in place
283
+ """
284
+ stdin_fd = stdin.fileno() if stdin else None
285
+
286
+ while selector.get_map():
287
+ remaining = _deadline_remaining(endtime)
288
+ if remaining is not None and remaining <= 0:
289
+ return (input_offset, False) # Timed out
290
+
291
+ ready = selector.select(remaining)
292
+
293
+ # Check timeout after select (may have woken spuriously)
294
+ if endtime is not None and _time() > endtime:
295
+ return (input_offset, False) # Timed out
296
+
297
+ for key, events in ready:
298
+ if key.fd == stdin_fd:
299
+ chunk = input_view[input_offset:input_offset + _PIPE_BUF]
300
+ try:
301
+ input_offset += os.write(key.fd, chunk)
302
+ except BrokenPipeError:
303
+ selector.unregister(key.fd)
304
+ try:
305
+ stdin.close()
306
+ except BrokenPipeError:
307
+ pass
308
+ else:
309
+ if input_offset >= len(input_view):
310
+ selector.unregister(key.fd)
311
+ try:
312
+ stdin.close()
313
+ except BrokenPipeError:
314
+ pass
315
+ elif key.fileobj in output_buffers:
316
+ data = os.read(key.fd, 32768)
317
+ if not data:
318
+ selector.unregister(key.fileobj)
319
+ if close_on_eof:
320
+ try:
321
+ key.fileobj.close()
322
+ except OSError:
323
+ pass
324
+ else:
325
+ output_buffers[key.fileobj].append(data)
326
+
327
+ return (input_offset, True) # Completed
328
+
329
+
330
+ if _mswindows:
331
+ # On Windows we just need to close `Popen._handle` when we no longer need
332
+ # it, so that the kernel can free it. `Popen._handle` gets closed
333
+ # implicitly when the `Popen` instance is finalized (see `Handle.__del__`,
334
+ # which is calling `CloseHandle` as requested in [1]), so there is nothing
335
+ # for `_cleanup` to do.
336
+ #
337
+ # [1] https://docs.microsoft.com/en-us/windows/desktop/ProcThread/
338
+ # creating-processes
339
+ _active = None
340
+
341
+ def _cleanup():
342
+ pass
343
+ else:
344
+ # This lists holds Popen instances for which the underlying process had not
345
+ # exited at the time its __del__ method got called: those processes are
346
+ # wait()ed for synchronously from _cleanup() when a new Popen object is
347
+ # created, to avoid zombie processes.
348
+ _active = []
349
+
350
+ def _cleanup():
351
+ if _active is None:
352
+ return
353
+ for inst in _active[:]:
354
+ res = inst._internal_poll(_deadstate=sys.maxsize)
355
+ if res is not None:
356
+ try:
357
+ _active.remove(inst)
358
+ except ValueError:
359
+ # This can happen if two threads create a new Popen instance.
360
+ # It's harmless that it was already removed, so ignore.
361
+ pass
362
+
363
+ PIPE = -1
364
+ STDOUT = -2
365
+ DEVNULL = -3
366
+
367
+
368
+ def _deadline_remaining(endtime):
369
+ """Calculate remaining time until deadline."""
370
+ if endtime is None:
371
+ return None
372
+ return endtime - _time()
373
+
374
+
375
+ def _flush_stdin(stdin):
376
+ """Flush stdin, ignoring BrokenPipeError and closed file ValueError."""
377
+ try:
378
+ stdin.flush()
379
+ except BrokenPipeError:
380
+ pass # communicate() must ignore BrokenPipeError.
381
+ except ValueError:
382
+ # Ignore ValueError: I/O operation on closed file.
383
+ if not stdin.closed:
384
+ raise
385
+
386
+
387
+ def _make_input_view(input_data):
388
+ """Convert input data to a byte memoryview for writing.
389
+
390
+ Handles the case where input_data is already a memoryview with
391
+ non-byte elements (e.g., int32 array) by casting to a byte view.
392
+ This ensures len(view) returns the byte count, not element count.
393
+ """
394
+ if not input_data:
395
+ return None
396
+ if isinstance(input_data, memoryview):
397
+ return input_data.cast("b") # ensure byte view for correct len()
398
+ return memoryview(input_data)
399
+
400
+
401
+ def _translate_newlines(data, encoding, errors):
402
+ """Decode bytes to str and translate newlines to \n."""
403
+ data = data.decode(encoding, errors)
404
+ return data.replace("\r\n", "\n").replace("\r", "\n")
405
+
406
+
407
+ # XXX This function is only used by multiprocessing and the test suite,
408
+ # but it's here so that it can be imported when Python is compiled without
409
+ # threads.
410
+
411
+ def _optim_args_from_interpreter_flags():
412
+ """Return a list of command-line arguments reproducing the current
413
+ optimization settings in sys.flags."""
414
+ args = []
415
+ value = sys.flags.optimize
416
+ if value > 0:
417
+ args.append('-' + 'O' * value)
418
+ return args
419
+
420
+
421
+ def _args_from_interpreter_flags():
422
+ """Return a list of command-line arguments reproducing the current
423
+ settings in sys.flags, sys.warnoptions and sys._xoptions."""
424
+ flag_opt_map = {
425
+ 'debug': 'd',
426
+ # 'inspect': 'i',
427
+ # 'interactive': 'i',
428
+ 'dont_write_bytecode': 'B',
429
+ 'no_site': 'S',
430
+ 'verbose': 'v',
431
+ 'bytes_warning': 'b',
432
+ 'quiet': 'q',
433
+ # -O is handled in _optim_args_from_interpreter_flags()
434
+ }
435
+ args = _optim_args_from_interpreter_flags()
436
+ for flag, opt in flag_opt_map.items():
437
+ v = getattr(sys.flags, flag)
438
+ if v > 0:
439
+ args.append('-' + opt * v)
440
+
441
+ if sys.flags.isolated:
442
+ args.append('-I')
443
+ else:
444
+ if sys.flags.ignore_environment:
445
+ args.append('-E')
446
+ if sys.flags.no_user_site:
447
+ args.append('-s')
448
+ if sys.flags.safe_path:
449
+ args.append('-P')
450
+
451
+ # -W options
452
+ warnopts = sys.warnoptions[:]
453
+ xoptions = getattr(sys, '_xoptions', {})
454
+ bytes_warning = sys.flags.bytes_warning
455
+ dev_mode = sys.flags.dev_mode
456
+
457
+ if bytes_warning > 1:
458
+ warnopts.remove("error::BytesWarning")
459
+ elif bytes_warning:
460
+ warnopts.remove("default::BytesWarning")
461
+ if dev_mode:
462
+ warnopts.remove('default')
463
+ for opt in warnopts:
464
+ args.append('-W' + opt)
465
+
466
+ # -X options
467
+ if dev_mode:
468
+ args.extend(('-X', 'dev'))
469
+ for opt in sorted(xoptions):
470
+ if opt == 'dev':
471
+ # handled above via sys.flags.dev_mode
472
+ continue
473
+ value = xoptions[opt]
474
+ if value is True:
475
+ arg = opt
476
+ else:
477
+ arg = '%s=%s' % (opt, value)
478
+ args.extend(('-X', arg))
479
+
480
+ return args
481
+
482
+
483
+ def _text_encoding():
484
+ # Return default text encoding and emit EncodingWarning if
485
+ # sys.flags.warn_default_encoding is true.
486
+ if sys.flags.warn_default_encoding:
487
+ f = sys._getframe()
488
+ filename = f.f_code.co_filename
489
+ stacklevel = 2
490
+ while f := f.f_back:
491
+ if f.f_code.co_filename != filename:
492
+ break
493
+ stacklevel += 1
494
+ warnings.warn("'encoding' argument not specified.",
495
+ EncodingWarning, stacklevel)
496
+
497
+ if sys.flags.utf8_mode:
498
+ return "utf-8"
499
+ return locale.getencoding()
500
+
501
+
502
+ def call(*popenargs, timeout=None, **kwargs):
503
+ """Run command with arguments. Wait for command to complete or
504
+ for timeout seconds, then return the returncode attribute.
505
+
506
+ The arguments are the same as for the Popen constructor. Example:
507
+
508
+ retcode = call(["ls", "-l"])
509
+ """
510
+ with Popen(*popenargs, **kwargs) as p:
511
+ try:
512
+ return p.wait(timeout=timeout)
513
+ except: # Including KeyboardInterrupt, wait handled that.
514
+ p.kill()
515
+ # We don't call p.wait() again as p.__exit__ does that for us.
516
+ raise
517
+
518
+
519
+ def check_call(*popenargs, **kwargs):
520
+ """Run command with arguments. Wait for command to complete. If
521
+ the exit code was zero then return, otherwise raise
522
+ CalledProcessError. The CalledProcessError object will have the
523
+ return code in the returncode attribute.
524
+
525
+ The arguments are the same as for the call function. Example:
526
+
527
+ check_call(["ls", "-l"])
528
+ """
529
+ retcode = call(*popenargs, **kwargs)
530
+ if retcode:
531
+ cmd = kwargs.get("args")
532
+ if cmd is None:
533
+ cmd = popenargs[0]
534
+ raise CalledProcessError(retcode, cmd)
535
+ return 0
536
+
537
+
538
+ def check_output(*popenargs, timeout=None, **kwargs):
539
+ r"""Run command with arguments and return its output.
540
+
541
+ If the exit code was non-zero it raises a CalledProcessError. The
542
+ CalledProcessError object will have the return code in the returncode
543
+ attribute and output in the output attribute.
544
+
545
+ The arguments are the same as for the Popen constructor. Example:
546
+
547
+ >>> check_output(["ls", "-l", "/dev/null"])
548
+ b'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n'
549
+
550
+ The stdout argument is not allowed as it is used internally.
551
+ To capture standard error in the result, use stderr=STDOUT.
552
+
553
+ >>> check_output(["/bin/sh", "-c",
554
+ ... "ls -l non_existent_file ; exit 0"],
555
+ ... stderr=STDOUT)
556
+ b'ls: non_existent_file: No such file or directory\n'
557
+
558
+ There is an additional optional argument, "input", allowing you to
559
+ pass a string to the subprocess's stdin. If you use this argument
560
+ you may not also use the Popen constructor's "stdin" argument, as
561
+ it too will be used internally. Example:
562
+
563
+ >>> check_output(["sed", "-e", "s/foo/bar/"],
564
+ ... input=b"when in the course of fooman events\n")
565
+ b'when in the course of barman events\n'
566
+
567
+ By default, all communication is in bytes, and therefore any "input"
568
+ should be bytes, and the return value will be bytes. If in text mode,
569
+ any "input" should be a string, and the return value will be a string
570
+ decoded according to locale encoding, or by "encoding" if set. Text mode
571
+ is triggered by setting any of text, encoding, errors or universal_newlines.
572
+ """
573
+ for kw in ('stdout', 'check'):
574
+ if kw in kwargs:
575
+ raise ValueError(f'{kw} argument not allowed, it will be overridden.')
576
+
577
+ if 'input' in kwargs and kwargs['input'] is None:
578
+ # Explicitly passing input=None was previously equivalent to passing an
579
+ # empty string. That is maintained here for backwards compatibility.
580
+ if kwargs.get('universal_newlines') or kwargs.get('text') or kwargs.get('encoding') \
581
+ or kwargs.get('errors'):
582
+ empty = ''
583
+ else:
584
+ empty = b''
585
+ kwargs['input'] = empty
586
+
587
+ return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
588
+ **kwargs).stdout
589
+
590
+
591
+ class CompletedProcess(object):
592
+ """A process that has finished running.
593
+
594
+ This is returned by run().
595
+
596
+ Attributes:
597
+ args: The list or str args passed to run().
598
+ returncode: The exit code of the process, negative for signals.
599
+ stdout: The standard output (None if not captured).
600
+ stderr: The standard error (None if not captured).
601
+ """
602
+ def __init__(self, args, returncode, stdout=None, stderr=None):
603
+ self.args = args
604
+ self.returncode = returncode
605
+ self.stdout = stdout
606
+ self.stderr = stderr
607
+
608
+ def __repr__(self):
609
+ args = ['args={!r}'.format(self.args),
610
+ 'returncode={!r}'.format(self.returncode)]
611
+ if self.stdout is not None:
612
+ args.append('stdout={!r}'.format(self.stdout))
613
+ if self.stderr is not None:
614
+ args.append('stderr={!r}'.format(self.stderr))
615
+ return "{}({})".format(type(self).__name__, ', '.join(args))
616
+
617
+ __class_getitem__ = classmethod(types.GenericAlias)
618
+
619
+
620
+ def check_returncode(self):
621
+ """Raise CalledProcessError if the exit code is non-zero."""
622
+ if self.returncode:
623
+ raise CalledProcessError(self.returncode, self.args, self.stdout,
624
+ self.stderr)
625
+
626
+
627
+ def run(*popenargs,
628
+ input=None, capture_output=False, timeout=None, check=False, **kwargs):
629
+ """Run command with arguments and return a CompletedProcess instance.
630
+
631
+ The returned instance will have attributes args, returncode, stdout and
632
+ stderr. By default, stdout and stderr are not captured, and those attributes
633
+ will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
634
+ or pass capture_output=True to capture both.
635
+
636
+ If check is True and the exit code was non-zero, it raises a
637
+ CalledProcessError. The CalledProcessError object will have the return code
638
+ in the returncode attribute, and output & stderr attributes if those streams
639
+ were captured.
640
+
641
+ If timeout (seconds) is given and the process takes too long,
642
+ a TimeoutExpired exception will be raised.
643
+
644
+ There is an optional argument "input", allowing you to
645
+ pass bytes or a string to the subprocess's stdin. If you use this argument
646
+ you may not also use the Popen constructor's "stdin" argument, as
647
+ it will be used internally.
648
+
649
+ By default, all communication is in bytes, and therefore any "input" should
650
+ be bytes, and the stdout and stderr will be bytes. If in text mode, any
651
+ "input" should be a string, and stdout and stderr will be strings decoded
652
+ according to locale encoding, or by "encoding" if set. Text mode is
653
+ triggered by setting any of text, encoding, errors or universal_newlines.
654
+
655
+ The other arguments are the same as for the Popen constructor.
656
+ """
657
+ if input is not None:
658
+ if kwargs.get('stdin') is not None:
659
+ raise ValueError('stdin and input arguments may not both be used.')
660
+ kwargs['stdin'] = PIPE
661
+
662
+ if capture_output:
663
+ if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
664
+ raise ValueError('stdout and stderr arguments may not be used '
665
+ 'with capture_output.')
666
+ kwargs['stdout'] = PIPE
667
+ kwargs['stderr'] = PIPE
668
+
669
+ with Popen(*popenargs, **kwargs) as process:
670
+ try:
671
+ stdout, stderr = process.communicate(input, timeout=timeout)
672
+ except TimeoutExpired as exc:
673
+ process.kill()
674
+ if _mswindows:
675
+ # Windows accumulates the output in a single blocking
676
+ # read() call run on child threads, with the timeout
677
+ # being done in a join() on those threads. communicate()
678
+ # _after_ kill() is required to collect that and add it
679
+ # to the exception.
680
+ exc.stdout, exc.stderr = process.communicate()
681
+ else:
682
+ # POSIX _communicate already populated the output so
683
+ # far into the TimeoutExpired exception.
684
+ process.wait()
685
+ raise
686
+ except: # Including KeyboardInterrupt, communicate handled that.
687
+ process.kill()
688
+ # We don't call process.wait() as .__exit__ does that for us.
689
+ raise
690
+ retcode = process.poll()
691
+ if check and retcode:
692
+ raise CalledProcessError(retcode, process.args,
693
+ output=stdout, stderr=stderr)
694
+ return CompletedProcess(process.args, retcode, stdout, stderr)
695
+
696
+
697
+ def list2cmdline(seq):
698
+ """
699
+ Translate a sequence of arguments into a command line
700
+ string, using the same rules as the MS C runtime:
701
+
702
+ 1) Arguments are delimited by white space, which is either a
703
+ space or a tab.
704
+
705
+ 2) A string surrounded by double quotation marks is
706
+ interpreted as a single argument, regardless of white space
707
+ contained within. A quoted string can be embedded in an
708
+ argument.
709
+
710
+ 3) A double quotation mark preceded by a backslash is
711
+ interpreted as a literal double quotation mark.
712
+
713
+ 4) Backslashes are interpreted literally, unless they
714
+ immediately precede a double quotation mark.
715
+
716
+ 5) If backslashes immediately precede a double quotation mark,
717
+ every pair of backslashes is interpreted as a literal
718
+ backslash. If the number of backslashes is odd, the last
719
+ backslash escapes the next double quotation mark as
720
+ described in rule 3.
721
+ """
722
+
723
+ # See
724
+ # http://msdn.microsoft.com/en-us/library/17w5ykft.aspx
725
+ # or search http://msdn.microsoft.com for
726
+ # "Parsing C++ Command-Line Arguments"
727
+ result = []
728
+ needquote = False
729
+ for arg in map(os.fsdecode, seq):
730
+ bs_buf = []
731
+
732
+ # Add a space to separate this argument from the others
733
+ if result:
734
+ result.append(' ')
735
+
736
+ needquote = (" " in arg) or ("\t" in arg) or not arg
737
+ if needquote:
738
+ result.append('"')
739
+
740
+ for c in arg:
741
+ if c == '\\':
742
+ # Don't know if we need to double yet.
743
+ bs_buf.append(c)
744
+ elif c == '"':
745
+ # Double backslashes.
746
+ result.append('\\' * len(bs_buf)*2)
747
+ bs_buf = []
748
+ result.append('\\"')
749
+ else:
750
+ # Normal char
751
+ if bs_buf:
752
+ result.extend(bs_buf)
753
+ bs_buf = []
754
+ result.append(c)
755
+
756
+ # Add remaining backslashes, if any.
757
+ if bs_buf:
758
+ result.extend(bs_buf)
759
+
760
+ if needquote:
761
+ result.extend(bs_buf)
762
+ result.append('"')
763
+
764
+ return ''.join(result)
765
+
766
+
767
+ # Various tools for executing commands and looking at their output and status.
768
+ #
769
+
770
+ def getstatusoutput(cmd, *, encoding=None, errors=None):
771
+ """Return (exitcode, output) of executing cmd in a shell.
772
+
773
+ Execute the string 'cmd' in a shell with 'check_output' and
774
+ return a 2-tuple (status, output). The locale encoding is used
775
+ to decode the output and process newlines.
776
+
777
+ A trailing newline is stripped from the output.
778
+ The exit status for the command can be interpreted
779
+ according to the rules for the function 'wait'. Example:
780
+
781
+ >>> import subprocess
782
+ >>> subprocess.getstatusoutput('ls /bin/ls')
783
+ (0, '/bin/ls')
784
+ >>> subprocess.getstatusoutput('cat /bin/junk')
785
+ (1, 'cat: /bin/junk: No such file or directory')
786
+ >>> subprocess.getstatusoutput('/bin/junk')
787
+ (127, 'sh: /bin/junk: not found')
788
+ >>> subprocess.getstatusoutput('/bin/kill $$')
789
+ (-15, '')
790
+ """
791
+ try:
792
+ data = check_output(cmd, shell=True, text=True, stderr=STDOUT,
793
+ encoding=encoding, errors=errors)
794
+ exitcode = 0
795
+ except CalledProcessError as ex:
796
+ data = ex.output
797
+ exitcode = ex.returncode
798
+ if data[-1:] == '\n':
799
+ data = data[:-1]
800
+ return exitcode, data
801
+
802
+ def getoutput(cmd, *, encoding=None, errors=None):
803
+ """Return output (stdout or stderr) of executing cmd in a shell.
804
+
805
+ Like getstatusoutput(), except the exit status is ignored and the return
806
+ value is a string containing the command's output. Example:
807
+
808
+ >>> import subprocess
809
+ >>> subprocess.getoutput('ls /bin/ls')
810
+ '/bin/ls'
811
+ """
812
+ return getstatusoutput(cmd, encoding=encoding, errors=errors)[1]
813
+
814
+
815
+
816
+ def _use_posix_spawn():
817
+ """Check if posix_spawn() can be used for subprocess.
818
+
819
+ subprocess requires a posix_spawn() implementation that properly reports
820
+ errors to the parent process, & sets errno on the following failures:
821
+
822
+ * Process attribute actions failed.
823
+ * File actions failed.
824
+ * exec() failed.
825
+
826
+ Prefer an implementation which can use vfork() in some cases for best
827
+ performance.
828
+ """
829
+ if _mswindows or not hasattr(os, 'posix_spawn'):
830
+ # os.posix_spawn() is not available
831
+ return False
832
+
833
+ if ((_env := os.environ.get('_PYTHON_SUBPROCESS_USE_POSIX_SPAWN')) in ('0', '1')):
834
+ return bool(int(_env))
835
+
836
+ if sys.platform in ('darwin', 'sunos5'):
837
+ # posix_spawn() is a syscall on both macOS and Solaris,
838
+ # and properly reports errors
839
+ return True
840
+
841
+ # Check libc name and runtime libc version
842
+ try:
843
+ ver = os.confstr('CS_GNU_LIBC_VERSION')
844
+ # parse 'glibc 2.28' as ('glibc', (2, 28))
845
+ parts = ver.split(maxsplit=1)
846
+ if len(parts) != 2:
847
+ # reject unknown format
848
+ raise ValueError
849
+ libc = parts[0]
850
+ version = tuple(map(int, parts[1].split('.')))
851
+
852
+ if sys.platform == 'linux' and libc == 'glibc' and version >= (2, 24):
853
+ # glibc 2.24 has a new Linux posix_spawn implementation using vfork
854
+ # which properly reports errors to the parent process.
855
+ return True
856
+ # Note: Don't use the implementation in earlier glibc because it doesn't
857
+ # use vfork (even if glibc 2.26 added a pipe to properly report errors
858
+ # to the parent process).
859
+ except (AttributeError, ValueError, OSError):
860
+ # os.confstr() or CS_GNU_LIBC_VERSION value not available
861
+ pass
862
+
863
+ # By default, assume that posix_spawn() does not properly report errors.
864
+ return False
865
+
866
+
867
+ def _can_use_pidfd_open():
868
+ # Availability: Linux >= 5.3
869
+ if not hasattr(os, "pidfd_open"):
870
+ return False
871
+ try:
872
+ pidfd = os.pidfd_open(os.getpid(), 0)
873
+ except OSError as err:
874
+ if err.errno in {errno.EMFILE, errno.ENFILE}:
875
+ # transitory 'too many open files'
876
+ return True
877
+ # likely blocked by security policy like SECCOMP (EPERM,
878
+ # EACCES, ENOSYS)
879
+ return False
880
+ else:
881
+ os.close(pidfd)
882
+ return True
883
+
884
+
885
+ def _can_use_kqueue():
886
+ # Availability: macOS, BSD
887
+ names = (
888
+ "kqueue",
889
+ "KQ_EV_ADD",
890
+ "KQ_EV_ONESHOT",
891
+ "KQ_FILTER_PROC",
892
+ "KQ_NOTE_EXIT",
893
+ )
894
+ if not all(hasattr(select, x) for x in names):
895
+ return False
896
+ kq = None
897
+ try:
898
+ kq = select.kqueue()
899
+ kev = select.kevent(
900
+ os.getpid(),
901
+ filter=select.KQ_FILTER_PROC,
902
+ flags=select.KQ_EV_ADD | select.KQ_EV_ONESHOT,
903
+ fflags=select.KQ_NOTE_EXIT,
904
+ )
905
+ kq.control([kev], 1, 0)
906
+ return True
907
+ except OSError as err:
908
+ if err.errno in {errno.EMFILE, errno.ENFILE}:
909
+ # transitory 'too many open files'
910
+ return True
911
+ return False
912
+ finally:
913
+ if kq is not None:
914
+ kq.close()
915
+
916
+
917
+ _CAN_USE_PIDFD_OPEN = not _mswindows and _can_use_pidfd_open()
918
+ _CAN_USE_KQUEUE = not _mswindows and _can_use_kqueue()
919
+
920
+ # Maximum timeout passed to poll() / kqueue.control() by Popen._wait():
921
+ # very large values (e.g. timeout=float('inf')) overflow the C timestamp
922
+ # conversion (gh-154836). Longer waits are performed in bounded slices
923
+ # until the deadline, like asyncio's MAXIMUM_SELECT_TIMEOUT.
924
+ _MAXIMUM_WAIT_TIMEOUT = 24 * 3600
925
+
926
+
927
+ # These are primarily fail-safe knobs for negatives. A True value does not
928
+ # guarantee the given libc/syscall API will be used.
929
+ _USE_POSIX_SPAWN = _use_posix_spawn()
930
+ _HAVE_POSIX_SPAWN_CLOSEFROM = hasattr(os, 'POSIX_SPAWN_CLOSEFROM')
931
+
932
+
933
+ class Popen:
934
+ """ Execute a child program in a new process.
935
+
936
+ For a complete description of the arguments see the Python documentation.
937
+
938
+ Arguments:
939
+ args: A string, or a sequence of program arguments.
940
+
941
+ bufsize: supplied as the buffering argument to the open() function when
942
+ creating the stdin/stdout/stderr pipe file objects
943
+
944
+ executable: A replacement program to execute.
945
+
946
+ stdin, stdout and stderr: These specify the executed programs' standard
947
+ input, standard output and standard error file handles, respectively.
948
+
949
+ preexec_fn: (POSIX only) An object to be called in the child process
950
+ just before the child is executed.
951
+
952
+ close_fds: Controls closing or inheriting of file descriptors.
953
+
954
+ shell: If true, the command will be executed through the shell.
955
+
956
+ cwd: Sets the current directory before the child is executed.
957
+
958
+ env: Defines the environment variables for the new process.
959
+
960
+ text: If true, decode stdin, stdout and stderr using the given encoding
961
+ (if set) or the system default otherwise.
962
+
963
+ universal_newlines: Alias of text, provided for backwards compatibility.
964
+
965
+ startupinfo and creationflags (Windows only)
966
+
967
+ restore_signals (POSIX only)
968
+
969
+ start_new_session (POSIX only)
970
+
971
+ process_group (POSIX only)
972
+
973
+ group (POSIX only)
974
+
975
+ extra_groups (POSIX only)
976
+
977
+ user (POSIX only)
978
+
979
+ umask (POSIX only)
980
+
981
+ pass_fds (POSIX only)
982
+
983
+ encoding and errors: Text mode encoding and error handling to use for
984
+ file objects stdin, stdout and stderr.
985
+
986
+ Attributes:
987
+ stdin, stdout, stderr, pid, returncode
988
+ """
989
+ _child_created = False # Set here since __del__ checks it
990
+
991
+ def __init__(self, args, bufsize=-1, executable=None,
992
+ stdin=None, stdout=None, stderr=None,
993
+ preexec_fn=None, close_fds=True,
994
+ shell=False, cwd=None, env=None, universal_newlines=None,
995
+ startupinfo=None, creationflags=0,
996
+ restore_signals=True, start_new_session=False,
997
+ pass_fds=(), *, user=None, group=None, extra_groups=None,
998
+ encoding=None, errors=None, text=None, umask=-1, pipesize=-1,
999
+ process_group=None):
1000
+ """Create new Popen instance."""
1001
+ if not _can_fork_exec:
1002
+ raise OSError(
1003
+ errno.ENOTSUP, f"{sys.platform} does not support processes."
1004
+ )
1005
+
1006
+ _cleanup()
1007
+ # Held while anything is calling waitpid before returncode has been
1008
+ # updated to prevent clobbering returncode if wait() or poll() are
1009
+ # called from multiple threads at once. After acquiring the lock,
1010
+ # code must re-check self.returncode to see if another thread just
1011
+ # finished a waitpid() call.
1012
+ self._waitpid_lock = threading.Lock()
1013
+
1014
+ self._input = None
1015
+ self._communication_started = False
1016
+ if bufsize is None:
1017
+ bufsize = -1 # Restore default
1018
+ if not isinstance(bufsize, int):
1019
+ raise TypeError("bufsize must be an integer")
1020
+
1021
+ if stdout is STDOUT:
1022
+ raise ValueError("STDOUT can only be used for stderr")
1023
+
1024
+ if pipesize is None:
1025
+ pipesize = -1 # Restore default
1026
+ if not isinstance(pipesize, int):
1027
+ raise TypeError("pipesize must be an integer")
1028
+
1029
+ if _mswindows:
1030
+ if preexec_fn is not None:
1031
+ raise ValueError("preexec_fn is not supported on Windows "
1032
+ "platforms")
1033
+ else:
1034
+ # POSIX
1035
+ if pass_fds and not close_fds:
1036
+ warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
1037
+ close_fds = True
1038
+ if startupinfo is not None:
1039
+ raise ValueError("startupinfo is only supported on Windows "
1040
+ "platforms")
1041
+ if creationflags != 0:
1042
+ raise ValueError("creationflags is only supported on Windows "
1043
+ "platforms")
1044
+
1045
+ self.args = args
1046
+ self.stdin = None
1047
+ self.stdout = None
1048
+ self.stderr = None
1049
+ self.pid = None
1050
+ self.returncode = None
1051
+ self.encoding = encoding
1052
+ self.errors = errors
1053
+ self.pipesize = pipesize
1054
+
1055
+ # Validate the combinations of text and universal_newlines
1056
+ if (text is not None and universal_newlines is not None
1057
+ and bool(universal_newlines) != bool(text)):
1058
+ raise SubprocessError('Cannot disambiguate when both text '
1059
+ 'and universal_newlines are supplied but '
1060
+ 'different. Pass one or the other.')
1061
+
1062
+ self.text_mode = encoding or errors or text or universal_newlines
1063
+ if self.text_mode and encoding is None:
1064
+ self.encoding = encoding = _text_encoding()
1065
+
1066
+ # How long to resume waiting on a child after the first ^C.
1067
+ # There is no right value for this. The purpose is to be polite
1068
+ # yet remain good for interactive users trying to exit a tool.
1069
+ self._sigint_wait_secs = 0.25 # 1/xkcd221.getRandomNumber()
1070
+
1071
+ self._closed_child_pipe_fds = False
1072
+
1073
+ if self.text_mode:
1074
+ if bufsize == 1:
1075
+ line_buffering = True
1076
+ # Use the default buffer size for the underlying binary streams
1077
+ # since they don't support line buffering.
1078
+ bufsize = -1
1079
+ else:
1080
+ line_buffering = False
1081
+
1082
+ if process_group is None:
1083
+ process_group = -1 # The internal APIs are int-only
1084
+
1085
+ gid = None
1086
+ if group is not None:
1087
+ if not hasattr(os, 'setregid'):
1088
+ raise ValueError("The 'group' parameter is not supported on the "
1089
+ "current platform")
1090
+
1091
+ elif isinstance(group, str):
1092
+ try:
1093
+ import grp
1094
+ except ImportError:
1095
+ raise ValueError("The group parameter cannot be a string "
1096
+ "on systems without the grp module")
1097
+
1098
+ gid = grp.getgrnam(group).gr_gid
1099
+ elif isinstance(group, int):
1100
+ gid = group
1101
+ else:
1102
+ raise TypeError("Group must be a string or an integer, not {}"
1103
+ .format(type(group)))
1104
+
1105
+ if gid < 0:
1106
+ raise ValueError(f"Group ID cannot be negative, got {gid}")
1107
+
1108
+ gids = None
1109
+ if extra_groups is not None:
1110
+ if not hasattr(os, 'setgroups'):
1111
+ raise ValueError("The 'extra_groups' parameter is not "
1112
+ "supported on the current platform")
1113
+
1114
+ elif isinstance(extra_groups, str):
1115
+ raise ValueError("Groups must be a list, not a string")
1116
+
1117
+ gids = []
1118
+ for extra_group in extra_groups:
1119
+ if isinstance(extra_group, str):
1120
+ try:
1121
+ import grp
1122
+ except ImportError:
1123
+ raise ValueError("Items in extra_groups cannot be "
1124
+ "strings on systems without the "
1125
+ "grp module")
1126
+
1127
+ gids.append(grp.getgrnam(extra_group).gr_gid)
1128
+ elif isinstance(extra_group, int):
1129
+ gids.append(extra_group)
1130
+ else:
1131
+ raise TypeError("Items in extra_groups must be a string "
1132
+ "or integer, not {}"
1133
+ .format(type(extra_group)))
1134
+
1135
+ # make sure that the gids are all positive here so we can do less
1136
+ # checking in the C code
1137
+ for gid_check in gids:
1138
+ if gid_check < 0:
1139
+ raise ValueError(f"Group ID cannot be negative, got {gid_check}")
1140
+
1141
+ uid = None
1142
+ if user is not None:
1143
+ if not hasattr(os, 'setreuid'):
1144
+ raise ValueError("The 'user' parameter is not supported on "
1145
+ "the current platform")
1146
+
1147
+ elif isinstance(user, str):
1148
+ try:
1149
+ import pwd
1150
+ except ImportError:
1151
+ raise ValueError("The user parameter cannot be a string "
1152
+ "on systems without the pwd module")
1153
+ uid = pwd.getpwnam(user).pw_uid
1154
+ elif isinstance(user, int):
1155
+ uid = user
1156
+ else:
1157
+ raise TypeError("User must be a string or an integer")
1158
+
1159
+ if uid < 0:
1160
+ raise ValueError(f"User ID cannot be negative, got {uid}")
1161
+
1162
+ # Input and output objects. The general principle is like
1163
+ # this:
1164
+ #
1165
+ # Parent Child
1166
+ # ------ -----
1167
+ # p2cwrite ---stdin---> p2cread
1168
+ # c2pread <--stdout--- c2pwrite
1169
+ # errread <--stderr--- errwrite
1170
+ #
1171
+ # On POSIX, the child objects are file descriptors. On
1172
+ # Windows, these are Windows file handles. The parent objects
1173
+ # are file descriptors on both platforms. The parent objects
1174
+ # are -1 when not using PIPEs. The child objects are -1
1175
+ # when not redirecting.
1176
+
1177
+ (p2cread, p2cwrite,
1178
+ c2pread, c2pwrite,
1179
+ errread, errwrite) = self._get_handles(stdin, stdout, stderr)
1180
+
1181
+ # From here on, raising exceptions may cause file descriptor leakage
1182
+
1183
+ # We wrap OS handles *before* launching the child, otherwise a
1184
+ # quickly terminating child could make our fds unwrappable
1185
+ # (see #8458).
1186
+
1187
+ if _mswindows:
1188
+ if p2cwrite != -1:
1189
+ p2cwrite = msvcrt.open_osfhandle(p2cwrite.Detach(), 0)
1190
+ if c2pread != -1:
1191
+ c2pread = msvcrt.open_osfhandle(c2pread.Detach(), 0)
1192
+ if errread != -1:
1193
+ errread = msvcrt.open_osfhandle(errread.Detach(), 0)
1194
+
1195
+ try:
1196
+ if p2cwrite != -1:
1197
+ self.stdin = io.open(p2cwrite, 'wb', bufsize)
1198
+ if self.text_mode:
1199
+ self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
1200
+ line_buffering=line_buffering,
1201
+ encoding=encoding, errors=errors)
1202
+ if c2pread != -1:
1203
+ self.stdout = io.open(c2pread, 'rb', bufsize)
1204
+ if self.text_mode:
1205
+ self.stdout = io.TextIOWrapper(self.stdout,
1206
+ encoding=encoding, errors=errors)
1207
+ if errread != -1:
1208
+ self.stderr = io.open(errread, 'rb', bufsize)
1209
+ if self.text_mode:
1210
+ self.stderr = io.TextIOWrapper(self.stderr,
1211
+ encoding=encoding, errors=errors)
1212
+
1213
+ self._execute_child(args, executable, preexec_fn, close_fds,
1214
+ pass_fds, cwd, env,
1215
+ startupinfo, creationflags, shell,
1216
+ p2cread, p2cwrite,
1217
+ c2pread, c2pwrite,
1218
+ errread, errwrite,
1219
+ restore_signals,
1220
+ gid, gids, uid, umask,
1221
+ start_new_session, process_group)
1222
+ except:
1223
+ # Cleanup if the child failed starting.
1224
+ for f in filter(None, (self.stdin, self.stdout, self.stderr)):
1225
+ try:
1226
+ f.close()
1227
+ except OSError:
1228
+ pass # Ignore EBADF or other errors.
1229
+
1230
+ if not self._closed_child_pipe_fds:
1231
+ to_close = []
1232
+ if stdin == PIPE:
1233
+ to_close.append(p2cread)
1234
+ if stdout == PIPE:
1235
+ to_close.append(c2pwrite)
1236
+ if stderr == PIPE:
1237
+ to_close.append(errwrite)
1238
+ if hasattr(self, '_devnull'):
1239
+ to_close.append(self._devnull)
1240
+ for fd in to_close:
1241
+ try:
1242
+ if _mswindows and isinstance(fd, Handle):
1243
+ fd.Close()
1244
+ else:
1245
+ os.close(fd)
1246
+ except OSError:
1247
+ pass
1248
+
1249
+ raise
1250
+
1251
+ def __repr__(self):
1252
+ obj_repr = (
1253
+ f"<{self.__class__.__name__}: "
1254
+ f"returncode: {self.returncode} args: {self.args!r}>"
1255
+ )
1256
+ if len(obj_repr) > 80:
1257
+ obj_repr = obj_repr[:76] + "...>"
1258
+ return obj_repr
1259
+
1260
+ __class_getitem__ = classmethod(types.GenericAlias)
1261
+
1262
+ @property
1263
+ def universal_newlines(self):
1264
+ # universal_newlines as retained as an alias of text_mode for API
1265
+ # compatibility. bpo-31756
1266
+ return self.text_mode
1267
+
1268
+ @universal_newlines.setter
1269
+ def universal_newlines(self, universal_newlines):
1270
+ self.text_mode = bool(universal_newlines)
1271
+
1272
+ def _translate_newlines(self, data, encoding, errors):
1273
+ # Subclass-overridable hook; defers to the module-level helper.
1274
+ return _translate_newlines(data, encoding, errors)
1275
+
1276
+ def __enter__(self):
1277
+ return self
1278
+
1279
+ def __exit__(self, exc_type, value, traceback):
1280
+ if self.stdout:
1281
+ self.stdout.close()
1282
+ if self.stderr:
1283
+ self.stderr.close()
1284
+ try: # Flushing a BufferedWriter may raise an error
1285
+ if self.stdin:
1286
+ self.stdin.close()
1287
+ finally:
1288
+ if exc_type == KeyboardInterrupt:
1289
+ # https://bugs.python.org/issue25942
1290
+ # In the case of a KeyboardInterrupt we assume the SIGINT
1291
+ # was also already sent to our child processes. We can't
1292
+ # block indefinitely as that is not user friendly.
1293
+ # If we have not already waited a brief amount of time in
1294
+ # an interrupted .wait() or .communicate() call, do so here
1295
+ # for consistency.
1296
+ if self._sigint_wait_secs > 0:
1297
+ try:
1298
+ self._wait(timeout=self._sigint_wait_secs)
1299
+ except TimeoutExpired:
1300
+ pass
1301
+ self._sigint_wait_secs = 0 # Note that this has been done.
1302
+ else:
1303
+ # Wait for the process to terminate, to avoid zombies.
1304
+ self.wait()
1305
+
1306
+ def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
1307
+ if not self._child_created:
1308
+ # We didn't get to successfully create a child process.
1309
+ return
1310
+ if self.returncode is None:
1311
+ # Not reading subprocess exit status creates a zombie process which
1312
+ # is only destroyed at the parent python process exit
1313
+ _warn("subprocess %s is still running" % self.pid,
1314
+ ResourceWarning, source=self)
1315
+ # In case the child hasn't been waited on, check if it's done.
1316
+ self._internal_poll(_deadstate=_maxsize)
1317
+ if self.returncode is None and _active is not None:
1318
+ # Child is still running, keep us alive until we can wait on it.
1319
+ _active.append(self)
1320
+
1321
+ def _get_devnull(self):
1322
+ if not hasattr(self, '_devnull'):
1323
+ self._devnull = os.open(os.devnull, os.O_RDWR)
1324
+ return self._devnull
1325
+
1326
+ def _stdin_write(self, input):
1327
+ if input:
1328
+ try:
1329
+ self.stdin.write(input)
1330
+ except BrokenPipeError:
1331
+ pass # communicate() must ignore broken pipe errors.
1332
+ except OSError as exc:
1333
+ if exc.errno == errno.EINVAL:
1334
+ # bpo-19612, bpo-30418: On Windows, stdin.write() fails
1335
+ # with EINVAL if the child process exited or if the child
1336
+ # process is still running but closed the pipe.
1337
+ pass
1338
+ else:
1339
+ raise
1340
+
1341
+ try:
1342
+ self.stdin.close()
1343
+ except BrokenPipeError:
1344
+ pass # communicate() must ignore broken pipe errors.
1345
+ except OSError as exc:
1346
+ if exc.errno == errno.EINVAL:
1347
+ pass
1348
+ else:
1349
+ raise
1350
+
1351
+ def communicate(self, input=None, timeout=None):
1352
+ """Interact with process: Send data to stdin and close it.
1353
+ Read data from stdout and stderr, until end-of-file is
1354
+ reached. Wait for process to terminate.
1355
+
1356
+ The optional "input" argument should be data to be sent to the
1357
+ child process, or None, if no data should be sent to the child.
1358
+ communicate() returns a tuple (stdout, stderr).
1359
+
1360
+ By default, all communication is in bytes, and therefore any
1361
+ "input" should be bytes, and the (stdout, stderr) will be bytes.
1362
+ If in text mode (indicated by self.text_mode), any "input" should
1363
+ be a string, and (stdout, stderr) will be strings decoded
1364
+ according to locale encoding, or by "encoding" if set. Text mode
1365
+ is triggered by setting any of text, encoding, errors or
1366
+ universal_newlines.
1367
+ """
1368
+
1369
+ if self._communication_started and input:
1370
+ raise ValueError("Cannot send input after starting communication")
1371
+
1372
+ # Optimization: If we are not worried about timeouts, we haven't
1373
+ # started communicating, and we have one or zero pipes, using select()
1374
+ # or threads is unnecessary.
1375
+ if (timeout is None and not self._communication_started and
1376
+ [self.stdin, self.stdout, self.stderr].count(None) >= 2):
1377
+ stdout = None
1378
+ stderr = None
1379
+ if self.stdin:
1380
+ self._stdin_write(input)
1381
+ elif self.stdout:
1382
+ stdout = self.stdout.read()
1383
+ self.stdout.close()
1384
+ elif self.stderr:
1385
+ stderr = self.stderr.read()
1386
+ self.stderr.close()
1387
+ self.wait()
1388
+ else:
1389
+ if timeout is not None:
1390
+ endtime = _time() + timeout
1391
+ else:
1392
+ endtime = None
1393
+
1394
+ try:
1395
+ stdout, stderr = self._communicate(input, endtime, timeout)
1396
+ except KeyboardInterrupt:
1397
+ # https://bugs.python.org/issue25942
1398
+ # See the detailed comment in .wait().
1399
+ if timeout is not None:
1400
+ sigint_timeout = min(self._sigint_wait_secs,
1401
+ _deadline_remaining(endtime))
1402
+ else:
1403
+ sigint_timeout = self._sigint_wait_secs
1404
+ self._sigint_wait_secs = 0 # nothing else should wait.
1405
+ try:
1406
+ self._wait(timeout=sigint_timeout)
1407
+ except TimeoutExpired:
1408
+ pass
1409
+ raise # resume the KeyboardInterrupt
1410
+
1411
+ finally:
1412
+ self._communication_started = True
1413
+ try:
1414
+ self.wait(timeout=_deadline_remaining(endtime))
1415
+ except TimeoutExpired as exc:
1416
+ exc.timeout = timeout
1417
+ raise
1418
+
1419
+ return (stdout, stderr)
1420
+
1421
+
1422
+ def poll(self):
1423
+ """Check if child process has terminated. Set and return returncode
1424
+ attribute."""
1425
+ return self._internal_poll()
1426
+
1427
+
1428
+ def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
1429
+ skip_check_and_raise=False):
1430
+ """Convenience for checking if a timeout has expired."""
1431
+ if endtime is None:
1432
+ return
1433
+ if skip_check_and_raise or _time() > endtime:
1434
+ raise TimeoutExpired(
1435
+ self.args, orig_timeout,
1436
+ output=b''.join(stdout_seq) if stdout_seq else None,
1437
+ stderr=b''.join(stderr_seq) if stderr_seq else None)
1438
+
1439
+
1440
+ def wait(self, timeout=None):
1441
+ """Wait for child process to terminate; returns self.returncode."""
1442
+ if timeout is not None:
1443
+ endtime = _time() + timeout
1444
+ try:
1445
+ return self._wait(timeout=timeout)
1446
+ except KeyboardInterrupt:
1447
+ # https://bugs.python.org/issue25942
1448
+ # The first keyboard interrupt waits briefly for the child to
1449
+ # exit under the common assumption that it also received the ^C
1450
+ # generated SIGINT and will exit rapidly.
1451
+ if timeout is not None:
1452
+ sigint_timeout = min(self._sigint_wait_secs,
1453
+ _deadline_remaining(endtime))
1454
+ else:
1455
+ sigint_timeout = self._sigint_wait_secs
1456
+ self._sigint_wait_secs = 0 # nothing else should wait.
1457
+ try:
1458
+ self._wait(timeout=sigint_timeout)
1459
+ except TimeoutExpired:
1460
+ pass
1461
+ raise # resume the KeyboardInterrupt
1462
+
1463
+ def _close_pipe_fds(self,
1464
+ p2cread, p2cwrite,
1465
+ c2pread, c2pwrite,
1466
+ errread, errwrite):
1467
+ # self._devnull is not always defined.
1468
+ devnull_fd = getattr(self, '_devnull', None)
1469
+
1470
+ with contextlib.ExitStack() as stack:
1471
+ if _mswindows:
1472
+ if p2cread != -1:
1473
+ stack.callback(p2cread.Close)
1474
+ if c2pwrite != -1:
1475
+ stack.callback(c2pwrite.Close)
1476
+ if errwrite != -1:
1477
+ stack.callback(errwrite.Close)
1478
+ else:
1479
+ if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1480
+ stack.callback(os.close, p2cread)
1481
+ if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1482
+ stack.callback(os.close, c2pwrite)
1483
+ if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1484
+ stack.callback(os.close, errwrite)
1485
+
1486
+ if devnull_fd is not None:
1487
+ stack.callback(os.close, devnull_fd)
1488
+
1489
+ # Prevent a double close of these handles/fds from __init__ on error.
1490
+ self._closed_child_pipe_fds = True
1491
+
1492
+ @contextlib.contextmanager
1493
+ def _on_error_fd_closer(self):
1494
+ """Helper to ensure file descriptors opened in _get_handles are closed"""
1495
+ to_close = []
1496
+ try:
1497
+ yield to_close
1498
+ except:
1499
+ if hasattr(self, '_devnull'):
1500
+ to_close.append(self._devnull)
1501
+ del self._devnull
1502
+ for fd in to_close:
1503
+ try:
1504
+ if _mswindows and isinstance(fd, Handle):
1505
+ fd.Close()
1506
+ else:
1507
+ os.close(fd)
1508
+ except OSError:
1509
+ pass
1510
+ raise
1511
+
1512
+ if _mswindows:
1513
+ #
1514
+ # Windows methods
1515
+ #
1516
+ def _get_handles(self, stdin, stdout, stderr):
1517
+ """Construct and return tuple with IO objects:
1518
+ p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
1519
+ """
1520
+ if stdin is None and stdout is None and stderr is None:
1521
+ return (-1, -1, -1, -1, -1, -1)
1522
+
1523
+ p2cread, p2cwrite = -1, -1
1524
+ c2pread, c2pwrite = -1, -1
1525
+ errread, errwrite = -1, -1
1526
+
1527
+ with self._on_error_fd_closer() as err_close_fds:
1528
+ if stdin is None:
1529
+ p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE)
1530
+ if p2cread is None:
1531
+ p2cread, _ = _winapi.CreatePipe(None, 0)
1532
+ p2cread = Handle(p2cread)
1533
+ err_close_fds.append(p2cread)
1534
+ _winapi.CloseHandle(_)
1535
+ elif stdin == PIPE:
1536
+ p2cread, p2cwrite = _winapi.CreatePipe(None, 0)
1537
+ p2cread, p2cwrite = Handle(p2cread), Handle(p2cwrite)
1538
+ err_close_fds.extend((p2cread, p2cwrite))
1539
+ elif stdin == DEVNULL:
1540
+ p2cread = msvcrt.get_osfhandle(self._get_devnull())
1541
+ elif isinstance(stdin, int):
1542
+ p2cread = msvcrt.get_osfhandle(stdin)
1543
+ else:
1544
+ # Assuming file-like object
1545
+ p2cread = msvcrt.get_osfhandle(stdin.fileno())
1546
+ p2cread = self._make_inheritable(p2cread)
1547
+
1548
+ if stdout is None:
1549
+ c2pwrite = _winapi.GetStdHandle(_winapi.STD_OUTPUT_HANDLE)
1550
+ if c2pwrite is None:
1551
+ _, c2pwrite = _winapi.CreatePipe(None, 0)
1552
+ c2pwrite = Handle(c2pwrite)
1553
+ err_close_fds.append(c2pwrite)
1554
+ _winapi.CloseHandle(_)
1555
+ elif stdout == PIPE:
1556
+ c2pread, c2pwrite = _winapi.CreatePipe(None, 0)
1557
+ c2pread, c2pwrite = Handle(c2pread), Handle(c2pwrite)
1558
+ err_close_fds.extend((c2pread, c2pwrite))
1559
+ elif stdout == DEVNULL:
1560
+ c2pwrite = msvcrt.get_osfhandle(self._get_devnull())
1561
+ elif isinstance(stdout, int):
1562
+ c2pwrite = msvcrt.get_osfhandle(stdout)
1563
+ else:
1564
+ # Assuming file-like object
1565
+ c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
1566
+ c2pwrite = self._make_inheritable(c2pwrite)
1567
+
1568
+ if stderr is None:
1569
+ errwrite = _winapi.GetStdHandle(_winapi.STD_ERROR_HANDLE)
1570
+ if errwrite is None:
1571
+ _, errwrite = _winapi.CreatePipe(None, 0)
1572
+ errwrite = Handle(errwrite)
1573
+ err_close_fds.append(errwrite)
1574
+ _winapi.CloseHandle(_)
1575
+ elif stderr == PIPE:
1576
+ errread, errwrite = _winapi.CreatePipe(None, 0)
1577
+ errread, errwrite = Handle(errread), Handle(errwrite)
1578
+ err_close_fds.extend((errread, errwrite))
1579
+ elif stderr == STDOUT:
1580
+ errwrite = c2pwrite
1581
+ elif stderr == DEVNULL:
1582
+ errwrite = msvcrt.get_osfhandle(self._get_devnull())
1583
+ elif isinstance(stderr, int):
1584
+ errwrite = msvcrt.get_osfhandle(stderr)
1585
+ else:
1586
+ # Assuming file-like object
1587
+ errwrite = msvcrt.get_osfhandle(stderr.fileno())
1588
+ errwrite = self._make_inheritable(errwrite)
1589
+
1590
+ return (p2cread, p2cwrite,
1591
+ c2pread, c2pwrite,
1592
+ errread, errwrite)
1593
+
1594
+
1595
+ def _make_inheritable(self, handle):
1596
+ """Return a duplicate of handle, which is inheritable"""
1597
+ h = _winapi.DuplicateHandle(
1598
+ _winapi.GetCurrentProcess(), handle,
1599
+ _winapi.GetCurrentProcess(), 0, 1,
1600
+ _winapi.DUPLICATE_SAME_ACCESS)
1601
+ return Handle(h)
1602
+
1603
+
1604
+ def _filter_handle_list(self, handle_list):
1605
+ """Filter out console handles that can't be used
1606
+ in lpAttributeList["handle_list"] and make sure the list
1607
+ isn't empty. This also removes duplicate handles."""
1608
+ # An handle with it's lowest two bits set might be a special console
1609
+ # handle that if passed in lpAttributeList["handle_list"], will
1610
+ # cause it to fail.
1611
+ return list({handle for handle in handle_list
1612
+ if handle & 0x3 != 0x3
1613
+ or _winapi.GetFileType(handle) !=
1614
+ _winapi.FILE_TYPE_CHAR})
1615
+
1616
+
1617
+ def _execute_child(self, args, executable, preexec_fn, close_fds,
1618
+ pass_fds, cwd, env,
1619
+ startupinfo, creationflags, shell,
1620
+ p2cread, p2cwrite,
1621
+ c2pread, c2pwrite,
1622
+ errread, errwrite,
1623
+ unused_restore_signals,
1624
+ unused_gid, unused_gids, unused_uid,
1625
+ unused_umask,
1626
+ unused_start_new_session, unused_process_group):
1627
+ """Execute program (MS Windows version)"""
1628
+
1629
+ assert not pass_fds, "pass_fds not supported on Windows."
1630
+
1631
+ if isinstance(args, str):
1632
+ pass
1633
+ elif isinstance(args, bytes):
1634
+ if shell:
1635
+ raise TypeError('bytes args is not allowed on Windows')
1636
+ args = list2cmdline([args])
1637
+ elif isinstance(args, os.PathLike):
1638
+ if shell:
1639
+ raise TypeError('path-like args is not allowed when '
1640
+ 'shell is true')
1641
+ args = list2cmdline([args])
1642
+ else:
1643
+ args = list2cmdline(args)
1644
+
1645
+ if executable is not None:
1646
+ executable = os.fsdecode(executable)
1647
+
1648
+ # Process startup details
1649
+ if startupinfo is None:
1650
+ startupinfo = STARTUPINFO()
1651
+ else:
1652
+ # bpo-34044: Copy STARTUPINFO since it is modified above,
1653
+ # so the caller can reuse it multiple times.
1654
+ startupinfo = startupinfo.copy()
1655
+
1656
+ use_std_handles = -1 not in (p2cread, c2pwrite, errwrite)
1657
+ if use_std_handles:
1658
+ startupinfo.dwFlags |= _winapi.STARTF_USESTDHANDLES
1659
+ startupinfo.hStdInput = p2cread
1660
+ startupinfo.hStdOutput = c2pwrite
1661
+ startupinfo.hStdError = errwrite
1662
+
1663
+ attribute_list = startupinfo.lpAttributeList
1664
+ have_handle_list = bool(attribute_list and
1665
+ "handle_list" in attribute_list and
1666
+ attribute_list["handle_list"])
1667
+
1668
+ # If we were given an handle_list or need to create one
1669
+ if have_handle_list or (use_std_handles and close_fds):
1670
+ if attribute_list is None:
1671
+ attribute_list = startupinfo.lpAttributeList = {}
1672
+ handle_list = attribute_list["handle_list"] = \
1673
+ list(attribute_list.get("handle_list", []))
1674
+
1675
+ if use_std_handles:
1676
+ handle_list += [int(p2cread), int(c2pwrite), int(errwrite)]
1677
+
1678
+ handle_list[:] = self._filter_handle_list(handle_list)
1679
+
1680
+ if handle_list:
1681
+ if not close_fds:
1682
+ warnings.warn("startupinfo.lpAttributeList['handle_list'] "
1683
+ "overriding close_fds", RuntimeWarning)
1684
+
1685
+ # When using the handle_list we always request to inherit
1686
+ # handles but the only handles that will be inherited are
1687
+ # the ones in the handle_list
1688
+ close_fds = False
1689
+
1690
+ if shell:
1691
+ startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
1692
+ startupinfo.wShowWindow = _winapi.SW_HIDE
1693
+ if not executable:
1694
+ # gh-101283: without a fully-qualified path, before Windows
1695
+ # checks the system directories, it first looks in the
1696
+ # application directory, and also the current directory if
1697
+ # NeedCurrentDirectoryForExePathW(ExeName) is true, so try
1698
+ # to avoid executing unqualified "cmd.exe".
1699
+ comspec = os.environ.get('ComSpec')
1700
+ if not comspec:
1701
+ system_root = os.environ.get('SystemRoot', '')
1702
+ comspec = os.path.join(system_root, 'System32', 'cmd.exe')
1703
+ if not os.path.isabs(comspec):
1704
+ raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
1705
+ if os.path.isabs(comspec):
1706
+ executable = comspec
1707
+ else:
1708
+ comspec = executable
1709
+
1710
+ args = '{} /c "{}"'.format (comspec, args)
1711
+
1712
+ if cwd is not None:
1713
+ cwd = os.fsdecode(cwd)
1714
+
1715
+ sys.audit("subprocess.Popen", executable, args, cwd, env)
1716
+
1717
+ # Start the process
1718
+ try:
1719
+ hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1720
+ # no special security
1721
+ None, None,
1722
+ int(not close_fds),
1723
+ creationflags,
1724
+ env,
1725
+ cwd,
1726
+ startupinfo)
1727
+ finally:
1728
+ # Child is launched. Close the parent's copy of those pipe
1729
+ # handles that only the child should have open. You need
1730
+ # to make sure that no handles to the write end of the
1731
+ # output pipe are maintained in this process or else the
1732
+ # pipe will not close when the child process exits and the
1733
+ # ReadFile will hang.
1734
+ self._close_pipe_fds(p2cread, p2cwrite,
1735
+ c2pread, c2pwrite,
1736
+ errread, errwrite)
1737
+
1738
+ # Retain the process handle, but close the thread handle
1739
+ self._child_created = True
1740
+ self._handle = Handle(hp)
1741
+ self.pid = pid
1742
+ _winapi.CloseHandle(ht)
1743
+
1744
+ def _internal_poll(self, _deadstate=None,
1745
+ _WaitForSingleObject=_winapi.WaitForSingleObject,
1746
+ _WAIT_OBJECT_0=_winapi.WAIT_OBJECT_0,
1747
+ _GetExitCodeProcess=_winapi.GetExitCodeProcess):
1748
+ """Check if child process has terminated. Returns returncode
1749
+ attribute.
1750
+
1751
+ This method is called by __del__, so it can only refer to objects
1752
+ in its local scope.
1753
+
1754
+ """
1755
+ if self.returncode is None:
1756
+ if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
1757
+ self.returncode = _GetExitCodeProcess(self._handle)
1758
+ return self.returncode
1759
+
1760
+
1761
+ def _wait(self, timeout):
1762
+ """Internal implementation of wait() on Windows."""
1763
+ if timeout is None:
1764
+ timeout_millis = _winapi.INFINITE
1765
+ elif timeout <= 0:
1766
+ timeout_millis = 0
1767
+ else:
1768
+ timeout_millis = int(timeout * 1000)
1769
+ if self.returncode is None:
1770
+ # API note: Returns immediately if timeout_millis == 0.
1771
+ result = _winapi.WaitForSingleObject(self._handle,
1772
+ timeout_millis)
1773
+ if result == _winapi.WAIT_TIMEOUT:
1774
+ raise TimeoutExpired(self.args, timeout)
1775
+ self.returncode = _winapi.GetExitCodeProcess(self._handle)
1776
+ return self.returncode
1777
+
1778
+
1779
+ def _readerthread(self, fh, buffer):
1780
+ buffer.append(fh.read())
1781
+ fh.close()
1782
+
1783
+
1784
+ def _writerthread(self, input):
1785
+ self._stdin_write(input)
1786
+
1787
+
1788
+ def _communicate(self, input, endtime, orig_timeout):
1789
+ # Start reader threads feeding into a list hanging off of this
1790
+ # object, unless they've already been started.
1791
+ if self.stdout and not hasattr(self, "_stdout_buff"):
1792
+ self._stdout_buff = []
1793
+ self.stdout_thread = \
1794
+ threading.Thread(target=self._readerthread,
1795
+ args=(self.stdout, self._stdout_buff))
1796
+ self.stdout_thread.daemon = True
1797
+ self.stdout_thread.start()
1798
+ if self.stderr and not hasattr(self, "_stderr_buff"):
1799
+ self._stderr_buff = []
1800
+ self.stderr_thread = \
1801
+ threading.Thread(target=self._readerthread,
1802
+ args=(self.stderr, self._stderr_buff))
1803
+ self.stderr_thread.daemon = True
1804
+ self.stderr_thread.start()
1805
+
1806
+ # Start writer thread to send input to stdin, unless already
1807
+ # started. The thread writes input and closes stdin when done,
1808
+ # or continues in the background on timeout.
1809
+ if self.stdin and not hasattr(self, "_stdin_thread"):
1810
+ self._stdin_thread = \
1811
+ threading.Thread(target=self._writerthread,
1812
+ args=(input,))
1813
+ self._stdin_thread.daemon = True
1814
+ self._stdin_thread.start()
1815
+
1816
+ # Wait for the writer thread, or time out. If we time out, the
1817
+ # thread remains writing and the fd left open in case the user
1818
+ # calls communicate again.
1819
+ if hasattr(self, "_stdin_thread"):
1820
+ self._stdin_thread.join(_deadline_remaining(endtime))
1821
+ if self._stdin_thread.is_alive():
1822
+ raise TimeoutExpired(self.args, orig_timeout)
1823
+
1824
+ # Wait for the reader threads, or time out. If we time out, the
1825
+ # threads remain reading and the fds left open in case the user
1826
+ # calls communicate again.
1827
+ if self.stdout is not None:
1828
+ self.stdout_thread.join(_deadline_remaining(endtime))
1829
+ if self.stdout_thread.is_alive():
1830
+ raise TimeoutExpired(self.args, orig_timeout)
1831
+ if self.stderr is not None:
1832
+ self.stderr_thread.join(_deadline_remaining(endtime))
1833
+ if self.stderr_thread.is_alive():
1834
+ raise TimeoutExpired(self.args, orig_timeout)
1835
+
1836
+ # Collect the output from and close both pipes, now that we know
1837
+ # both have been read successfully.
1838
+ stdout = None
1839
+ stderr = None
1840
+ if self.stdout:
1841
+ stdout = self._stdout_buff
1842
+ self.stdout.close()
1843
+ if self.stderr:
1844
+ stderr = self._stderr_buff
1845
+ self.stderr.close()
1846
+
1847
+ # All data exchanged. Translate lists into strings.
1848
+ stdout = stdout[0] if stdout else None
1849
+ stderr = stderr[0] if stderr else None
1850
+
1851
+ return (stdout, stderr)
1852
+
1853
+ def send_signal(self, sig):
1854
+ """Send a signal to the process."""
1855
+ # Don't signal a process that we know has already died.
1856
+ if self.returncode is not None:
1857
+ return
1858
+ if sig == signal.SIGTERM:
1859
+ self.terminate()
1860
+ elif sig == signal.CTRL_C_EVENT:
1861
+ os.kill(self.pid, signal.CTRL_C_EVENT)
1862
+ elif sig == signal.CTRL_BREAK_EVENT:
1863
+ os.kill(self.pid, signal.CTRL_BREAK_EVENT)
1864
+ else:
1865
+ raise ValueError("Unsupported signal: {}".format(sig))
1866
+
1867
+ def terminate(self):
1868
+ """Terminates the process."""
1869
+ # Don't terminate a process that we know has already died.
1870
+ if self.returncode is not None:
1871
+ return
1872
+ try:
1873
+ _winapi.TerminateProcess(self._handle, 1)
1874
+ except PermissionError:
1875
+ # ERROR_ACCESS_DENIED (winerror 5) is received when the
1876
+ # process already died.
1877
+ rc = _winapi.GetExitCodeProcess(self._handle)
1878
+ if rc == _winapi.STILL_ACTIVE:
1879
+ raise
1880
+ self.returncode = rc
1881
+
1882
+ kill = terminate
1883
+
1884
+ else:
1885
+ #
1886
+ # POSIX methods
1887
+ #
1888
+ def _get_handles(self, stdin, stdout, stderr):
1889
+ """Construct and return tuple with IO objects:
1890
+ p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
1891
+ """
1892
+ p2cread, p2cwrite = -1, -1
1893
+ c2pread, c2pwrite = -1, -1
1894
+ errread, errwrite = -1, -1
1895
+
1896
+ with self._on_error_fd_closer() as err_close_fds:
1897
+ if stdin is None:
1898
+ pass
1899
+ elif stdin == PIPE:
1900
+ p2cread, p2cwrite = os.pipe()
1901
+ err_close_fds.extend((p2cread, p2cwrite))
1902
+ if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
1903
+ fcntl.fcntl(p2cwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
1904
+ elif stdin == DEVNULL:
1905
+ p2cread = self._get_devnull()
1906
+ elif isinstance(stdin, int):
1907
+ p2cread = stdin
1908
+ else:
1909
+ # Assuming file-like object
1910
+ p2cread = stdin.fileno()
1911
+
1912
+ if stdout is None:
1913
+ pass
1914
+ elif stdout == PIPE:
1915
+ c2pread, c2pwrite = os.pipe()
1916
+ err_close_fds.extend((c2pread, c2pwrite))
1917
+ if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
1918
+ fcntl.fcntl(c2pwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
1919
+ elif stdout == DEVNULL:
1920
+ c2pwrite = self._get_devnull()
1921
+ elif isinstance(stdout, int):
1922
+ c2pwrite = stdout
1923
+ else:
1924
+ # Assuming file-like object
1925
+ c2pwrite = stdout.fileno()
1926
+
1927
+ if stderr is None:
1928
+ pass
1929
+ elif stderr == PIPE:
1930
+ errread, errwrite = os.pipe()
1931
+ err_close_fds.extend((errread, errwrite))
1932
+ if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
1933
+ fcntl.fcntl(errwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
1934
+ elif stderr == STDOUT:
1935
+ if c2pwrite != -1:
1936
+ errwrite = c2pwrite
1937
+ else: # child's stdout is not set, use parent's stdout
1938
+ errwrite = sys.__stdout__.fileno()
1939
+ elif stderr == DEVNULL:
1940
+ errwrite = self._get_devnull()
1941
+ elif isinstance(stderr, int):
1942
+ errwrite = stderr
1943
+ else:
1944
+ # Assuming file-like object
1945
+ errwrite = stderr.fileno()
1946
+
1947
+ return (p2cread, p2cwrite,
1948
+ c2pread, c2pwrite,
1949
+ errread, errwrite)
1950
+
1951
+
1952
+ def _posix_spawn(self, args, executable, env, restore_signals, close_fds,
1953
+ p2cread, p2cwrite,
1954
+ c2pread, c2pwrite,
1955
+ errread, errwrite):
1956
+ """Execute program using os.posix_spawn()."""
1957
+ kwargs = {}
1958
+ if restore_signals:
1959
+ # See _Py_RestoreSignals() in Python/pylifecycle.c
1960
+ sigset = []
1961
+ for signame in ('SIGPIPE', 'SIGXFZ', 'SIGXFSZ'):
1962
+ signum = getattr(signal, signame, None)
1963
+ if signum is not None:
1964
+ sigset.append(signum)
1965
+ kwargs['setsigdef'] = sigset
1966
+
1967
+ file_actions = []
1968
+ for fd in (p2cwrite, c2pread, errread):
1969
+ if fd != -1:
1970
+ file_actions.append((os.POSIX_SPAWN_CLOSE, fd))
1971
+ for fd, fd2 in (
1972
+ (p2cread, 0),
1973
+ (c2pwrite, 1),
1974
+ (errwrite, 2),
1975
+ ):
1976
+ if fd != -1:
1977
+ file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
1978
+
1979
+ if close_fds:
1980
+ file_actions.append((os.POSIX_SPAWN_CLOSEFROM, 3))
1981
+
1982
+ if file_actions:
1983
+ kwargs['file_actions'] = file_actions
1984
+
1985
+ self.pid = os.posix_spawn(executable, args, env, **kwargs)
1986
+ self._child_created = True
1987
+
1988
+ self._close_pipe_fds(p2cread, p2cwrite,
1989
+ c2pread, c2pwrite,
1990
+ errread, errwrite)
1991
+
1992
+ def _execute_child(self, args, executable, preexec_fn, close_fds,
1993
+ pass_fds, cwd, env,
1994
+ startupinfo, creationflags, shell,
1995
+ p2cread, p2cwrite,
1996
+ c2pread, c2pwrite,
1997
+ errread, errwrite,
1998
+ restore_signals,
1999
+ gid, gids, uid, umask,
2000
+ start_new_session, process_group):
2001
+ """Execute program (POSIX version)"""
2002
+
2003
+ if isinstance(args, (str, bytes)):
2004
+ args = [args]
2005
+ elif isinstance(args, os.PathLike):
2006
+ if shell:
2007
+ raise TypeError('path-like args is not allowed when '
2008
+ 'shell is true')
2009
+ args = [args]
2010
+ else:
2011
+ args = list(args)
2012
+
2013
+ if shell:
2014
+ # On Android the default shell is at '/system/bin/sh'.
2015
+ unix_shell = ('/system/bin/sh' if
2016
+ hasattr(sys, 'getandroidapilevel') else '/bin/sh')
2017
+ args = [unix_shell, "-c"] + args
2018
+ if executable:
2019
+ args[0] = executable
2020
+
2021
+ if executable is None:
2022
+ executable = args[0]
2023
+
2024
+ sys.audit("subprocess.Popen", executable, args, cwd, env)
2025
+
2026
+ if (_USE_POSIX_SPAWN
2027
+ and os.path.dirname(executable)
2028
+ and preexec_fn is None
2029
+ and (not close_fds or _HAVE_POSIX_SPAWN_CLOSEFROM)
2030
+ and not pass_fds
2031
+ and cwd is None
2032
+ and (p2cread == -1 or p2cread > 2)
2033
+ and (c2pwrite == -1 or c2pwrite > 2)
2034
+ and (errwrite == -1 or errwrite > 2)
2035
+ and not start_new_session
2036
+ and process_group == -1
2037
+ and gid is None
2038
+ and gids is None
2039
+ and uid is None
2040
+ and umask < 0):
2041
+ self._posix_spawn(args, executable, env, restore_signals, close_fds,
2042
+ p2cread, p2cwrite,
2043
+ c2pread, c2pwrite,
2044
+ errread, errwrite)
2045
+ return
2046
+
2047
+ orig_executable = executable
2048
+
2049
+ # For transferring possible exec failure from child to parent.
2050
+ # Data format: "exception name:hex errno:description"
2051
+ # Pickle is not used; it is complex and involves memory allocation.
2052
+ errpipe_read, errpipe_write = os.pipe()
2053
+ # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
2054
+ low_fds_to_close = []
2055
+ while errpipe_write < 3:
2056
+ low_fds_to_close.append(errpipe_write)
2057
+ errpipe_write = os.dup(errpipe_write)
2058
+ for low_fd in low_fds_to_close:
2059
+ os.close(low_fd)
2060
+ try:
2061
+ try:
2062
+ # We must avoid complex work that could involve
2063
+ # malloc or free in the child process to avoid
2064
+ # potential deadlocks, thus we do all this here.
2065
+ # and pass it to fork_exec()
2066
+
2067
+ if env is not None:
2068
+ env_list = []
2069
+ for k, v in env.items():
2070
+ k = os.fsencode(k)
2071
+ if b'=' in k:
2072
+ raise ValueError("illegal environment variable name")
2073
+ env_list.append(k + b'=' + os.fsencode(v))
2074
+ else:
2075
+ env_list = None # Use execv instead of execve.
2076
+ executable = os.fsencode(executable)
2077
+ if os.path.dirname(executable):
2078
+ executable_list = (executable,)
2079
+ else:
2080
+ # This matches the behavior of os._execvpe().
2081
+ executable_list = tuple(
2082
+ os.path.join(os.fsencode(dir), executable)
2083
+ for dir in os.get_exec_path(env))
2084
+ fds_to_keep = set(pass_fds)
2085
+ fds_to_keep.add(errpipe_write)
2086
+ self.pid = _fork_exec(
2087
+ args, executable_list,
2088
+ close_fds, tuple(sorted(map(int, fds_to_keep))),
2089
+ cwd, env_list,
2090
+ p2cread, p2cwrite, c2pread, c2pwrite,
2091
+ errread, errwrite,
2092
+ errpipe_read, errpipe_write,
2093
+ restore_signals, start_new_session,
2094
+ process_group, gid, gids, uid, umask,
2095
+ preexec_fn)
2096
+ self._child_created = True
2097
+ finally:
2098
+ # be sure the FD is closed no matter what
2099
+ os.close(errpipe_write)
2100
+
2101
+ self._close_pipe_fds(p2cread, p2cwrite,
2102
+ c2pread, c2pwrite,
2103
+ errread, errwrite)
2104
+
2105
+ # Wait for exec to fail or succeed; possibly raising an
2106
+ # exception (limited in size)
2107
+ errpipe_data = bytearray()
2108
+ while True:
2109
+ part = os.read(errpipe_read, 50000)
2110
+ errpipe_data += part
2111
+ if not part or len(errpipe_data) > 50000:
2112
+ break
2113
+ finally:
2114
+ # be sure the FD is closed no matter what
2115
+ os.close(errpipe_read)
2116
+
2117
+ if errpipe_data:
2118
+ try:
2119
+ pid, sts = os.waitpid(self.pid, 0)
2120
+ if pid == self.pid:
2121
+ self._handle_exitstatus(sts)
2122
+ else:
2123
+ self.returncode = sys.maxsize
2124
+ except ChildProcessError:
2125
+ pass
2126
+
2127
+ try:
2128
+ exception_name, hex_errno, err_msg = (
2129
+ errpipe_data.split(b':', 2))
2130
+ # The encoding here should match the encoding
2131
+ # written in by the subprocess implementations
2132
+ # like _posixsubprocess
2133
+ err_msg = err_msg.decode()
2134
+ except ValueError:
2135
+ exception_name = b'SubprocessError'
2136
+ hex_errno = b'0'
2137
+ err_msg = 'Bad exception data from child: {!r}'.format(
2138
+ bytes(errpipe_data))
2139
+ child_exception_type = getattr(
2140
+ builtins, exception_name.decode('ascii'),
2141
+ SubprocessError)
2142
+ if issubclass(child_exception_type, OSError) and hex_errno:
2143
+ errno_num = int(hex_errno, 16)
2144
+ if err_msg == "noexec:chdir":
2145
+ err_msg = ""
2146
+ # The error must be from chdir(cwd).
2147
+ err_filename = cwd
2148
+ elif err_msg == "noexec":
2149
+ err_msg = ""
2150
+ err_filename = None
2151
+ else:
2152
+ err_filename = orig_executable
2153
+ if errno_num != 0:
2154
+ err_msg = os.strerror(errno_num)
2155
+ if err_filename is not None:
2156
+ raise child_exception_type(errno_num, err_msg, err_filename)
2157
+ else:
2158
+ raise child_exception_type(errno_num, err_msg)
2159
+ raise child_exception_type(err_msg)
2160
+
2161
+
2162
+ def _handle_exitstatus(self, sts, _del_safe=_del_safe):
2163
+ """All callers to this function MUST hold self._waitpid_lock."""
2164
+ # This method is called (indirectly) by __del__, so it cannot
2165
+ # refer to anything outside of its local scope.
2166
+ if _del_safe.WIFSTOPPED(sts):
2167
+ self.returncode = -_del_safe.WSTOPSIG(sts)
2168
+ else:
2169
+ self.returncode = _del_safe.waitstatus_to_exitcode(sts)
2170
+
2171
+ def _internal_poll(self, _deadstate=None, _del_safe=_del_safe):
2172
+ """Check if child process has terminated. Returns returncode
2173
+ attribute.
2174
+
2175
+ This method is called by __del__, so it cannot reference anything
2176
+ outside of the local scope (nor can any methods it calls).
2177
+
2178
+ """
2179
+ if self.returncode is None:
2180
+ if not self._waitpid_lock.acquire(False):
2181
+ # Something else is busy calling waitpid. Don't allow two
2182
+ # at once. We know nothing yet.
2183
+ return None
2184
+ try:
2185
+ if self.returncode is not None:
2186
+ return self.returncode # Another thread waited.
2187
+ pid, sts = _del_safe.waitpid(self.pid, _del_safe.WNOHANG)
2188
+ if pid == self.pid:
2189
+ self._handle_exitstatus(sts)
2190
+ except OSError as e:
2191
+ if _deadstate is not None:
2192
+ self.returncode = _deadstate
2193
+ elif e.errno == _del_safe.ECHILD:
2194
+ # This happens if SIGCLD is set to be ignored or
2195
+ # waiting for child processes has otherwise been
2196
+ # disabled for our process. This child is dead, we
2197
+ # can't get the status.
2198
+ # http://bugs.python.org/issue15756
2199
+ self.returncode = 0
2200
+ finally:
2201
+ self._waitpid_lock.release()
2202
+ return self.returncode
2203
+
2204
+
2205
+ def _try_wait(self, wait_flags):
2206
+ """All callers to this function MUST hold self._waitpid_lock."""
2207
+ try:
2208
+ (pid, sts) = os.waitpid(self.pid, wait_flags)
2209
+ except ChildProcessError:
2210
+ # This happens if SIGCLD is set to be ignored or waiting
2211
+ # for child processes has otherwise been disabled for our
2212
+ # process. This child is dead, we can't get the status.
2213
+ pid = self.pid
2214
+ sts = 0
2215
+ return (pid, sts)
2216
+
2217
+ def _wait_pidfd(self, timeout):
2218
+ """Wait for PID to terminate using pidfd_open() + poll().
2219
+ Linux >= 5.3 only.
2220
+ """
2221
+ if not _CAN_USE_PIDFD_OPEN:
2222
+ return False
2223
+ try:
2224
+ pidfd = os.pidfd_open(self.pid, 0)
2225
+ except OSError:
2226
+ # May be:
2227
+ # - ESRCH: no such process
2228
+ # - EMFILE, ENFILE: too many open files (usually 1024)
2229
+ # - ENODEV: anonymous inode filesystem not supported
2230
+ # - EPERM, EACCES, ENOSYS: undocumented; may happen if
2231
+ # blocked by security policy like SECCOMP
2232
+ return False
2233
+
2234
+ try:
2235
+ poller = select.poll()
2236
+ poller.register(pidfd, select.POLLIN)
2237
+ endtime = _time() + timeout
2238
+ while True:
2239
+ # Clamp very large timeouts (e.g. float('inf')):
2240
+ # they overflow the C timestamp conversion in
2241
+ # poll(). Wait in bounded slices until the real
2242
+ # deadline (gh-154836).
2243
+ delay = min(_deadline_remaining(endtime),
2244
+ _MAXIMUM_WAIT_TIMEOUT)
2245
+ events = poller.poll(max(delay, 0) * 1000)
2246
+ if events:
2247
+ return True
2248
+ if _deadline_remaining(endtime) <= 0:
2249
+ raise TimeoutExpired(self.args, timeout)
2250
+ finally:
2251
+ os.close(pidfd)
2252
+
2253
+ def _wait_kqueue(self, timeout):
2254
+ """Wait for PID to terminate using kqueue(). macOS and BSD only."""
2255
+ if not _CAN_USE_KQUEUE:
2256
+ return False
2257
+ try:
2258
+ kq = select.kqueue()
2259
+ except OSError:
2260
+ # likely EMFILE / ENFILE (too many open files)
2261
+ return False
2262
+
2263
+ try:
2264
+ kev = select.kevent(
2265
+ self.pid,
2266
+ filter=select.KQ_FILTER_PROC,
2267
+ flags=select.KQ_EV_ADD | select.KQ_EV_ONESHOT,
2268
+ fflags=select.KQ_NOTE_EXIT,
2269
+ )
2270
+ changelist = [kev]
2271
+ endtime = _time() + timeout
2272
+ while True:
2273
+ # Clamp very large timeouts (e.g. float('inf')):
2274
+ # they overflow the C timestamp conversion in
2275
+ # kqueue.control(). Wait in bounded slices until
2276
+ # the real deadline (gh-154836).
2277
+ delay = min(_deadline_remaining(endtime),
2278
+ _MAXIMUM_WAIT_TIMEOUT)
2279
+ try:
2280
+ events = kq.control(changelist, 1, max(delay, 0))
2281
+ except OSError:
2282
+ return False
2283
+ if events:
2284
+ return True
2285
+ if _deadline_remaining(endtime) <= 0:
2286
+ raise TimeoutExpired(self.args, timeout)
2287
+ # The kevent was registered by the first control()
2288
+ # call; don't re-add it on later slices.
2289
+ changelist = None
2290
+ finally:
2291
+ kq.close()
2292
+
2293
+ def _wait(self, timeout):
2294
+ """Internal implementation of wait() on POSIX.
2295
+
2296
+ Uses efficient pidfd_open() + poll() on Linux or kqueue()
2297
+ on macOS/BSD when available. Falls back to polling
2298
+ waitpid(WNOHANG) otherwise.
2299
+ """
2300
+ if self.returncode is not None:
2301
+ return self.returncode
2302
+
2303
+ if timeout is not None:
2304
+ if timeout < 0:
2305
+ raise TimeoutExpired(self.args, timeout)
2306
+ started = _time()
2307
+ endtime = started + timeout
2308
+
2309
+ # Try efficient wait first.
2310
+ if self._wait_pidfd(timeout) or self._wait_kqueue(timeout):
2311
+ # Process is gone. At this point os.waitpid(pid, 0)
2312
+ # will return immediately, but in very rare races
2313
+ # the PID may have been reused.
2314
+ # os.waitpid(pid, WNOHANG) ensures we attempt a
2315
+ # non-blocking reap without blocking indefinitely.
2316
+ with self._waitpid_lock:
2317
+ if self.returncode is not None:
2318
+ return self.returncode # Another thread waited.
2319
+ (pid, sts) = self._try_wait(os.WNOHANG)
2320
+ assert pid == self.pid or pid == 0
2321
+ if pid == self.pid:
2322
+ self._handle_exitstatus(sts)
2323
+ return self.returncode
2324
+ # os.waitpid(pid, WNOHANG) returned 0 instead
2325
+ # of our PID, meaning PID has not yet exited,
2326
+ # even though poll() / kqueue() said so. Very
2327
+ # rare and mostly theoretical. Fallback to busy
2328
+ # polling.
2329
+ elapsed = _time() - started
2330
+ endtime -= elapsed
2331
+
2332
+ # Enter a busy loop if we have a timeout. This busy loop was
2333
+ # cribbed from Lib/threading.py in Thread.wait() at r71065.
2334
+ delay = 0.0005 # 500 us -> initial delay of 1 ms
2335
+ while True:
2336
+ if self._waitpid_lock.acquire(False):
2337
+ try:
2338
+ if self.returncode is not None:
2339
+ break # Another thread waited.
2340
+ (pid, sts) = self._try_wait(os.WNOHANG)
2341
+ assert pid == self.pid or pid == 0
2342
+ if pid == self.pid:
2343
+ self._handle_exitstatus(sts)
2344
+ break
2345
+ finally:
2346
+ self._waitpid_lock.release()
2347
+ remaining = _deadline_remaining(endtime)
2348
+ if remaining <= 0:
2349
+ raise TimeoutExpired(self.args, timeout)
2350
+ delay = min(delay * 2, remaining, .05)
2351
+ time.sleep(delay)
2352
+ else:
2353
+ while self.returncode is None:
2354
+ with self._waitpid_lock:
2355
+ if self.returncode is not None:
2356
+ break # Another thread waited.
2357
+ (pid, sts) = self._try_wait(0)
2358
+ # Check the pid and loop as waitpid has been known to
2359
+ # return 0 even without WNOHANG in odd situations.
2360
+ # http://bugs.python.org/issue14396.
2361
+ if pid == self.pid:
2362
+ self._handle_exitstatus(sts)
2363
+
2364
+ return self.returncode
2365
+
2366
+
2367
+ def _communicate(self, input, endtime, orig_timeout):
2368
+ if self.stdin and not self._communication_started:
2369
+ # Flush stdio buffer. This might block, if the user has
2370
+ # been writing to .stdin in an uncontrolled fashion.
2371
+ _flush_stdin(self.stdin)
2372
+ if not input:
2373
+ try:
2374
+ self.stdin.close()
2375
+ except BrokenPipeError:
2376
+ pass # communicate() must ignore BrokenPipeError.
2377
+
2378
+ stdout = None
2379
+ stderr = None
2380
+
2381
+ # Only create this mapping if we haven't already.
2382
+ if not self._communication_started:
2383
+ self._fileobj2output = {}
2384
+ if self.stdout:
2385
+ self._fileobj2output[self.stdout] = []
2386
+ if self.stderr:
2387
+ self._fileobj2output[self.stderr] = []
2388
+
2389
+ if self.stdout:
2390
+ stdout = self._fileobj2output[self.stdout]
2391
+ if self.stderr:
2392
+ stderr = self._fileobj2output[self.stderr]
2393
+
2394
+ self._save_input(input)
2395
+
2396
+ input_view = _make_input_view(self._input)
2397
+ input_offset = self._input_offset if self._input else 0
2398
+
2399
+ with _PopenSelector() as selector:
2400
+ if self.stdin and not self.stdin.closed and self._input:
2401
+ selector.register(self.stdin, selectors.EVENT_WRITE)
2402
+ if self.stdout and not self.stdout.closed:
2403
+ selector.register(self.stdout, selectors.EVENT_READ)
2404
+ if self.stderr and not self.stderr.closed:
2405
+ selector.register(self.stderr, selectors.EVENT_READ)
2406
+
2407
+ stdin_to_write = (self.stdin if self.stdin and self._input
2408
+ and not self.stdin.closed else None)
2409
+ # Persist the returned offset on self so a subsequent
2410
+ # communicate() after a TimeoutExpired resumes mid-input
2411
+ # rather than re-sending bytes the child already consumed.
2412
+ new_offset, completed = _communicate_io_posix(
2413
+ selector,
2414
+ stdin_to_write,
2415
+ input_view,
2416
+ input_offset,
2417
+ self._fileobj2output,
2418
+ endtime,
2419
+ close_on_eof=True)
2420
+ if self._input:
2421
+ self._input_offset = new_offset
2422
+
2423
+ if not completed:
2424
+ self._check_timeout(endtime, orig_timeout, stdout, stderr,
2425
+ skip_check_and_raise=True)
2426
+ raise RuntimeError( # Impossible :)
2427
+ '_check_timeout(..., skip_check_and_raise=True) '
2428
+ 'failed to raise TimeoutExpired.')
2429
+
2430
+ try:
2431
+ self.wait(timeout=_deadline_remaining(endtime))
2432
+ except TimeoutExpired as exc:
2433
+ exc.timeout = orig_timeout
2434
+ raise
2435
+
2436
+ # All data exchanged. Translate lists into strings.
2437
+ if stdout is not None:
2438
+ stdout = b''.join(stdout)
2439
+ if stderr is not None:
2440
+ stderr = b''.join(stderr)
2441
+
2442
+ # Translate newlines, if requested.
2443
+ # This also turns bytes into strings.
2444
+ if self.text_mode:
2445
+ if stdout is not None:
2446
+ stdout = self._translate_newlines(stdout,
2447
+ self.stdout.encoding,
2448
+ self.stdout.errors)
2449
+ if stderr is not None:
2450
+ stderr = self._translate_newlines(stderr,
2451
+ self.stderr.encoding,
2452
+ self.stderr.errors)
2453
+
2454
+ return (stdout, stderr)
2455
+
2456
+
2457
+ def _save_input(self, input):
2458
+ # This method is called from the _communicate_with_*() methods
2459
+ # so that if we time out while communicating, we can continue
2460
+ # sending input if we retry.
2461
+ if self.stdin and self._input is None:
2462
+ self._input_offset = 0
2463
+ self._input = input
2464
+ if input is not None and self.text_mode:
2465
+ self._input = self._input.encode(self.stdin.encoding,
2466
+ self.stdin.errors)
2467
+
2468
+
2469
+ def send_signal(self, sig):
2470
+ """Send a signal to the process."""
2471
+ # bpo-38630: Polling reduces the risk of sending a signal to the
2472
+ # wrong process if the process completed, the Popen.returncode
2473
+ # attribute is still None, and the pid has been reassigned
2474
+ # (recycled) to a new different process. This race condition can
2475
+ # happens in two cases.
2476
+ #
2477
+ # Case 1. Thread A calls Popen.poll(), thread B calls
2478
+ # Popen.send_signal(). In thread A, waitpid() succeed and returns
2479
+ # the exit status. Thread B calls kill() because poll() in thread A
2480
+ # did not set returncode yet. Calling poll() in thread B prevents
2481
+ # the race condition thanks to Popen._waitpid_lock.
2482
+ #
2483
+ # Case 2. waitpid(pid, 0) has been called directly, without
2484
+ # using Popen methods: returncode is still None is this case.
2485
+ # Calling Popen.poll() will set returncode to a default value,
2486
+ # since waitpid() fails with ProcessLookupError.
2487
+ self.poll()
2488
+ if self.returncode is not None:
2489
+ # Skip signalling a process that we know has already died.
2490
+ return
2491
+
2492
+ # The race condition can still happen if the race condition
2493
+ # described above happens between the returncode test
2494
+ # and the kill() call.
2495
+ try:
2496
+ os.kill(self.pid, sig)
2497
+ except ProcessLookupError:
2498
+ # Suppress the race condition error; bpo-40550.
2499
+ pass
2500
+
2501
+ def terminate(self):
2502
+ """Terminate the process with SIGTERM
2503
+ """
2504
+ self.send_signal(signal.SIGTERM)
2505
+
2506
+ def kill(self):
2507
+ """Kill the process with SIGKILL
2508
+ """
2509
+ self.send_signal(signal.SIGKILL)