@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,2788 @@
1
+ """
2
+ Python implementation of the io module.
3
+ """
4
+
5
+ import os
6
+ import abc
7
+ import codecs
8
+ import errno
9
+ import stat
10
+ import sys
11
+ # Import _thread instead of threading to reduce startup cost
12
+ from _thread import allocate_lock as Lock
13
+ if sys.platform in {'win32', 'cygwin'}:
14
+ from msvcrt import setmode as _setmode
15
+ else:
16
+ _setmode = None
17
+
18
+ import io
19
+ from io import (__all__, SEEK_SET, SEEK_CUR, SEEK_END, Reader, Writer) # noqa: F401
20
+
21
+ valid_seek_flags = {0, 1, 2} # Hardwired values
22
+ if hasattr(os, 'SEEK_HOLE') :
23
+ valid_seek_flags.add(os.SEEK_HOLE)
24
+ valid_seek_flags.add(os.SEEK_DATA)
25
+
26
+ # open() uses max(min(blocksize, 8 MiB), DEFAULT_BUFFER_SIZE)
27
+ # when the device block size is available.
28
+ DEFAULT_BUFFER_SIZE = 128 * 1024 # bytes
29
+
30
+ # NOTE: Base classes defined here are registered with the "official" ABCs
31
+ # defined in io.py. We don't use real inheritance though, because we don't want
32
+ # to inherit the C implementations.
33
+
34
+ # Rebind for compatibility
35
+ BlockingIOError = BlockingIOError
36
+
37
+ # Does open() check its 'errors' argument?
38
+ _CHECK_ERRORS = (hasattr(sys, "gettotalrefcount") or sys.flags.dev_mode)
39
+
40
+
41
+ def text_encoding(encoding, stacklevel=2):
42
+ """
43
+ A helper function to choose the text encoding.
44
+
45
+ When encoding is not None, this function returns it.
46
+ Otherwise, this function returns the default text encoding
47
+ (i.e. "locale" or "utf-8" depends on UTF-8 mode).
48
+
49
+ This function emits an EncodingWarning if *encoding* is None and
50
+ sys.flags.warn_default_encoding is true.
51
+
52
+ This can be used in APIs with an encoding=None parameter
53
+ that pass it to TextIOWrapper or open.
54
+ However, please consider using encoding="utf-8" for new APIs.
55
+ """
56
+ if encoding is None:
57
+ if sys.flags.utf8_mode:
58
+ encoding = "utf-8"
59
+ else:
60
+ encoding = "locale"
61
+ if sys.flags.warn_default_encoding:
62
+ import warnings
63
+ warnings.warn("'encoding' argument not specified.",
64
+ EncodingWarning, stacklevel + 1)
65
+ return encoding
66
+
67
+
68
+ # Wrapper for builtins.open
69
+ #
70
+ # Trick so that open() won't become a bound method when stored
71
+ # as a class variable (as dbm.dumb does).
72
+ #
73
+ # See init_set_builtins_open() in Python/pylifecycle.c.
74
+ @staticmethod
75
+ def open(file, mode="r", buffering=-1, encoding=None, errors=None,
76
+ newline=None, closefd=True, opener=None):
77
+
78
+ r"""Open file and return a stream. Raise OSError upon failure.
79
+
80
+ file is either a text or byte string giving the name (and the path
81
+ if the file isn't in the current working directory) of the file to
82
+ be opened or an integer file descriptor of the file to be
83
+ wrapped. (If a file descriptor is given, it is closed when the
84
+ returned I/O object is closed, unless closefd is set to False.)
85
+
86
+ mode is an optional string that specifies the mode in which the file
87
+ is opened. It defaults to 'r' which means open for reading in text
88
+ mode. Other common values are 'w' for writing (truncating the file if
89
+ it already exists), 'x' for exclusive creation of a new file, and
90
+ 'a' for appending (which on some Unix systems, means that all writes
91
+ append to the end of the file regardless of the current seek position).
92
+ In text mode, if encoding is not specified the encoding used is platform
93
+ dependent. (For reading and writing raw bytes use binary mode and leave
94
+ encoding unspecified.) The available modes are:
95
+
96
+ ========= ==========================================================
97
+ Character Meaning
98
+ --------- ----------------------------------------------------------
99
+ 'r' open for reading (default)
100
+ 'w' open for writing, truncating the file first
101
+ 'x' create a new file and open it for writing
102
+ 'a' open for writing, appending to the end of the file if it
103
+ exists
104
+ 'b' binary mode
105
+ 't' text mode (default)
106
+ '+' open a disk file for updating (reading and writing)
107
+ ========= ==========================================================
108
+
109
+ The default mode is 'rt' (open for reading text). For binary random
110
+ access, the mode 'w+b' opens and truncates the file to 0 bytes, while
111
+ 'r+b' opens the file without truncation. The 'x' mode implies 'w' and
112
+ raises an `FileExistsError` if the file already exists.
113
+
114
+ Python distinguishes between files opened in binary and text modes,
115
+ even when the underlying operating system doesn't. Files opened in
116
+ binary mode (appending 'b' to the mode argument) return contents as
117
+ bytes objects without any decoding. In text mode (the default, or when
118
+ 't' is appended to the mode argument), the contents of the file are
119
+ returned as strings, the bytes having been first decoded using a
120
+ platform-dependent encoding or using the specified encoding if given.
121
+
122
+ buffering is an optional integer used to set the buffering policy.
123
+ Pass 0 to switch buffering off (only allowed in binary mode), 1 to
124
+ select line buffering (only usable in text mode), and an integer > 1 to
125
+ indicate the size of a fixed-size chunk buffer. When no buffering
126
+ argument is given, the default buffering policy works as follows:
127
+
128
+ * Binary files are buffered in fixed-size chunks; the size of the buffer
129
+ is max(min(blocksize, 8 MiB), DEFAULT_BUFFER_SIZE) when the device
130
+ block size is available.
131
+ On most systems, the buffer will typically be 128 kilobytes long.
132
+
133
+ * "Interactive" text files (files for which isatty() returns True)
134
+ use line buffering. Other text files use the policy described above
135
+ for binary files.
136
+
137
+ encoding is the str name of the encoding used to decode or encode the
138
+ file. This should only be used in text mode. The default encoding is
139
+ platform dependent, but any encoding supported by Python can be
140
+ passed. See the codecs module for the list of supported encodings.
141
+
142
+ errors is an optional string that specifies how encoding errors are to
143
+ be handled---this argument should not be used in binary mode. Pass
144
+ 'strict' to raise a ValueError exception if there is an encoding error
145
+ (the default of None has the same effect), or pass 'ignore' to ignore
146
+ errors. (Note that ignoring encoding errors can lead to data loss.)
147
+ See the documentation for codecs.register for a list of the permitted
148
+ encoding error strings.
149
+
150
+ newline is a string controlling how universal newlines works (it only
151
+ applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It
152
+ works as follows:
153
+
154
+ * On input, if newline is None, universal newlines mode is
155
+ enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
156
+ these are translated into '\n' before being returned to the
157
+ caller. If it is '', universal newline mode is enabled, but line
158
+ endings are returned to the caller untranslated. If it has any of
159
+ the other legal values, input lines are only terminated by the given
160
+ string, and the line ending is returned to the caller untranslated.
161
+
162
+ * On output, if newline is None, any '\n' characters written are
163
+ translated to the system default line separator, os.linesep. If
164
+ newline is '', no translation takes place. If newline is any of the
165
+ other legal values, any '\n' characters written are translated to
166
+ the given string.
167
+
168
+ closedfd is a bool. If closefd is False, the underlying file descriptor
169
+ will be kept open when the file is closed. This does not work when
170
+ a file name is given and must be True in that case.
171
+
172
+ The newly created file is non-inheritable.
173
+
174
+ A custom opener can be used by passing a callable as *opener*. The
175
+ underlying file descriptor for the file object is then obtained by
176
+ calling *opener* with (*file*, *flags*). *opener* must return an open
177
+ file descriptor (passing os.open as *opener* results in functionality
178
+ similar to passing None).
179
+
180
+ open() returns a file object whose type depends on the mode, and
181
+ through which the standard file operations such as reading and writing
182
+ are performed. When open() is used to open a file in a text mode ('w',
183
+ 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open
184
+ a file in a binary mode, the returned class varies: in read binary
185
+ mode, it returns a BufferedReader; in write binary and append binary
186
+ modes, it returns a BufferedWriter, and in read/write mode, it returns
187
+ a BufferedRandom.
188
+
189
+ It is also possible to use a string or bytearray as a file for both
190
+ reading and writing. For strings StringIO can be used like a file
191
+ opened in a text mode, and for bytes a BytesIO can be used like a file
192
+ opened in a binary mode.
193
+ """
194
+ if not isinstance(file, int):
195
+ file = os.fspath(file)
196
+ if not isinstance(file, (str, bytes, int)):
197
+ raise TypeError("invalid file: %r" % file)
198
+ if not isinstance(mode, str):
199
+ raise TypeError("invalid mode: %r" % mode)
200
+ if not isinstance(buffering, int):
201
+ raise TypeError("invalid buffering: %r" % buffering)
202
+ if encoding is not None and not isinstance(encoding, str):
203
+ raise TypeError("invalid encoding: %r" % encoding)
204
+ if errors is not None and not isinstance(errors, str):
205
+ raise TypeError("invalid errors: %r" % errors)
206
+ modes = set(mode)
207
+ if modes - set("axrwb+t") or len(mode) > len(modes):
208
+ raise ValueError("invalid mode: %r" % mode)
209
+ creating = "x" in modes
210
+ reading = "r" in modes
211
+ writing = "w" in modes
212
+ appending = "a" in modes
213
+ updating = "+" in modes
214
+ text = "t" in modes
215
+ binary = "b" in modes
216
+ if text and binary:
217
+ raise ValueError("can't have text and binary mode at once")
218
+ if creating + reading + writing + appending > 1:
219
+ raise ValueError("can't have read/write/append mode at once")
220
+ if not (creating or reading or writing or appending):
221
+ raise ValueError("must have exactly one of read/write/append mode")
222
+ if binary and encoding is not None:
223
+ raise ValueError("binary mode doesn't take an encoding argument")
224
+ if binary and errors is not None:
225
+ raise ValueError("binary mode doesn't take an errors argument")
226
+ if binary and newline is not None:
227
+ raise ValueError("binary mode doesn't take a newline argument")
228
+ if binary and buffering == 1:
229
+ import warnings
230
+ warnings.warn("line buffering (buffering=1) isn't supported in binary "
231
+ "mode, the default buffer size will be used",
232
+ RuntimeWarning, 2)
233
+ raw = FileIO(file,
234
+ (creating and "x" or "") +
235
+ (reading and "r" or "") +
236
+ (writing and "w" or "") +
237
+ (appending and "a" or "") +
238
+ (updating and "+" or ""),
239
+ closefd, opener=opener)
240
+ result = raw
241
+ try:
242
+ line_buffering = False
243
+ if buffering == 1 or buffering < 0 and raw._isatty_open_only():
244
+ buffering = -1
245
+ line_buffering = True
246
+ if buffering < 0:
247
+ buffering = max(min(raw._blksize, 8192 * 1024), DEFAULT_BUFFER_SIZE)
248
+ if buffering < 0:
249
+ raise ValueError("invalid buffering size")
250
+ if buffering == 0:
251
+ if binary:
252
+ return result
253
+ raise ValueError("can't have unbuffered text I/O")
254
+ if updating:
255
+ buffer = BufferedRandom(raw, buffering)
256
+ elif creating or writing or appending:
257
+ buffer = BufferedWriter(raw, buffering)
258
+ elif reading:
259
+ buffer = BufferedReader(raw, buffering)
260
+ else:
261
+ raise ValueError("unknown mode: %r" % mode)
262
+ result = buffer
263
+ if binary:
264
+ return result
265
+ encoding = text_encoding(encoding)
266
+ text = TextIOWrapper(buffer, encoding, errors, newline, line_buffering)
267
+ result = text
268
+ text.mode = mode
269
+ return result
270
+ except:
271
+ result.close()
272
+ raise
273
+
274
+ # Define a default pure-Python implementation for open_code()
275
+ # that does not allow hooks. Warn on first use. Defined for tests.
276
+ def _open_code_with_warning(path):
277
+ """Opens the provided file with mode ``'rb'``. This function
278
+ should be used when the intent is to treat the contents as
279
+ executable code.
280
+
281
+ ``path`` should be an absolute path.
282
+
283
+ When supported by the runtime, this function can be hooked
284
+ in order to allow embedders more control over code files.
285
+ This functionality is not supported on the current runtime.
286
+ """
287
+ import warnings
288
+ warnings.warn("_pyio.open_code() may not be using hooks",
289
+ RuntimeWarning, 2)
290
+ return open(path, "rb")
291
+
292
+ try:
293
+ open_code = io.open_code
294
+ except AttributeError:
295
+ open_code = _open_code_with_warning
296
+
297
+
298
+ # In normal operation, both `UnsupportedOperation`s should be bound to the
299
+ # same object.
300
+ try:
301
+ UnsupportedOperation = io.UnsupportedOperation
302
+ except AttributeError:
303
+ class UnsupportedOperation(OSError, ValueError):
304
+ pass
305
+
306
+
307
+ class IOBase(metaclass=abc.ABCMeta):
308
+
309
+ """The abstract base class for all I/O classes.
310
+
311
+ This class provides dummy implementations for many methods that
312
+ derived classes can override selectively; the default implementations
313
+ represent a file that cannot be read, written or seeked.
314
+
315
+ Even though IOBase does not declare read or write because
316
+ their signatures will vary, implementations and clients should
317
+ consider those methods part of the interface. Also, implementations
318
+ may raise UnsupportedOperation when operations they do not support are
319
+ called.
320
+
321
+ The basic type used for binary data read from or written to a file is
322
+ bytes. Other bytes-like objects are accepted as method arguments too.
323
+ Text I/O classes work with str data.
324
+
325
+ Note that calling any method (even inquiries) on a closed stream is
326
+ undefined. Implementations may raise OSError in this case.
327
+
328
+ IOBase (and its subclasses) support the iterator protocol, meaning
329
+ that an IOBase object can be iterated over yielding the lines in a
330
+ stream.
331
+
332
+ IOBase also supports the :keyword:`with` statement. In this example,
333
+ fp is closed after the suite of the with statement is complete:
334
+
335
+ with open('spam.txt', 'r') as fp:
336
+ fp.write('Spam and eggs!')
337
+ """
338
+
339
+ ### Internal ###
340
+
341
+ def _unsupported(self, name):
342
+ """Internal: raise an OSError exception for unsupported operations."""
343
+ raise UnsupportedOperation("%s.%s() not supported" %
344
+ (self.__class__.__name__, name))
345
+
346
+ ### Positioning ###
347
+
348
+ def seek(self, pos, whence=0):
349
+ """Change stream position.
350
+
351
+ Change the stream position to byte offset pos. Argument pos is
352
+ interpreted relative to the position indicated by whence. Values
353
+ for whence are ints:
354
+
355
+ * 0 -- start of stream (the default); offset should be zero or
356
+ positive
357
+ * 1 -- current stream position; offset may be negative
358
+ * 2 -- end of stream; offset is usually negative
359
+ Some operating systems / file systems could provide additional
360
+ values.
361
+
362
+ Return an int indicating the new absolute position.
363
+ """
364
+ self._unsupported("seek")
365
+
366
+ def tell(self):
367
+ """Return an int indicating the current stream position."""
368
+ return self.seek(0, 1)
369
+
370
+ def truncate(self, pos=None):
371
+ """Truncate file to size bytes.
372
+
373
+ Size defaults to the current IO position as reported by tell().
374
+ Return the new size.
375
+ """
376
+ self._unsupported("truncate")
377
+
378
+ ### Flush and close ###
379
+
380
+ def flush(self):
381
+ """Flush write buffers, if applicable.
382
+
383
+ This is not implemented for read-only and non-blocking streams.
384
+ """
385
+ self._checkClosed()
386
+ # XXX Should this return the number of bytes written???
387
+
388
+ __closed = False
389
+
390
+ def close(self):
391
+ """Flush and close the IO object.
392
+
393
+ This method has no effect if the file is already closed.
394
+ """
395
+ if not self.__closed:
396
+ try:
397
+ self.flush()
398
+ finally:
399
+ self.__closed = True
400
+
401
+ def __del__(self):
402
+ """Destructor. Calls close()."""
403
+ try:
404
+ closed = self.closed
405
+ except AttributeError:
406
+ # If getting closed fails, then the object is probably
407
+ # in an unusable state, so ignore.
408
+ return
409
+
410
+ if closed:
411
+ return
412
+
413
+ if dealloc_warn := getattr(self, "_dealloc_warn", None):
414
+ dealloc_warn(self)
415
+
416
+ # If close() fails, the caller logs the exception with
417
+ # sys.unraisablehook. close() must be called at the end at __del__().
418
+ self.close()
419
+
420
+ ### Inquiries ###
421
+
422
+ def seekable(self):
423
+ """Return a bool indicating whether object supports random access.
424
+
425
+ If False, seek(), tell() and truncate() will raise OSError.
426
+ This method may need to do a test seek().
427
+ """
428
+ return False
429
+
430
+ def _checkSeekable(self, msg=None):
431
+ """Internal: raise UnsupportedOperation if file is not seekable
432
+ """
433
+ if not self.seekable():
434
+ raise UnsupportedOperation("File or stream is not seekable."
435
+ if msg is None else msg)
436
+
437
+ def readable(self):
438
+ """Return a bool indicating whether object was opened for reading.
439
+
440
+ If False, read() will raise OSError.
441
+ """
442
+ return False
443
+
444
+ def _checkReadable(self, msg=None):
445
+ """Internal: raise UnsupportedOperation if file is not readable
446
+ """
447
+ if not self.readable():
448
+ raise UnsupportedOperation("File or stream is not readable."
449
+ if msg is None else msg)
450
+
451
+ def writable(self):
452
+ """Return a bool indicating whether object was opened for writing.
453
+
454
+ If False, write() and truncate() will raise OSError.
455
+ """
456
+ return False
457
+
458
+ def _checkWritable(self, msg=None):
459
+ """Internal: raise UnsupportedOperation if file is not writable
460
+ """
461
+ if not self.writable():
462
+ raise UnsupportedOperation("File or stream is not writable."
463
+ if msg is None else msg)
464
+
465
+ @property
466
+ def closed(self):
467
+ """closed: bool. True iff the file has been closed.
468
+
469
+ For backwards compatibility, this is a property, not a predicate.
470
+ """
471
+ return self.__closed
472
+
473
+ def _checkClosed(self, msg=None):
474
+ """Internal: raise a ValueError if file is closed
475
+ """
476
+ if self.closed:
477
+ raise ValueError("I/O operation on closed file."
478
+ if msg is None else msg)
479
+
480
+ ### Context manager ###
481
+
482
+ def __enter__(self): # That's a forward reference
483
+ """Context management protocol. Returns self (an instance of IOBase)."""
484
+ self._checkClosed()
485
+ return self
486
+
487
+ def __exit__(self, *args):
488
+ """Context management protocol. Calls close()"""
489
+ self.close()
490
+
491
+ ### Lower-level APIs ###
492
+
493
+ # XXX Should these be present even if unimplemented?
494
+
495
+ def fileno(self):
496
+ """Returns underlying file descriptor (an int) if one exists.
497
+
498
+ An OSError is raised if the IO object does not use a file
499
+ descriptor.
500
+ """
501
+ self._unsupported("fileno")
502
+
503
+ def isatty(self):
504
+ """Return a bool indicating whether this is an 'interactive' stream.
505
+
506
+ Return False if it can't be determined.
507
+ """
508
+ self._checkClosed()
509
+ return False
510
+
511
+ ### Readline[s] and writelines ###
512
+
513
+ def readline(self, size=-1):
514
+ r"""Read and return a line of bytes from the stream.
515
+
516
+ If size is specified, at most size bytes will be read.
517
+ Size should be an int.
518
+
519
+ The line terminator is always b'\n' for binary files; for text
520
+ files, the newlines argument to open can be used to select the line
521
+ terminator(s) recognized.
522
+ """
523
+ # For backwards compatibility, a (slowish) readline().
524
+ if hasattr(self, "peek"):
525
+ def nreadahead():
526
+ readahead = self.peek(1)
527
+ if not readahead:
528
+ return 1
529
+ n = (readahead.find(b"\n") + 1) or len(readahead)
530
+ if size >= 0:
531
+ n = min(n, size - len(res))
532
+ return n
533
+ else:
534
+ def nreadahead():
535
+ return 1
536
+ if size is None:
537
+ size = -1
538
+ else:
539
+ try:
540
+ size_index = size.__index__
541
+ except AttributeError:
542
+ raise TypeError(f"{size!r} is not an integer")
543
+ else:
544
+ size = size_index()
545
+ res = bytearray()
546
+ while size < 0 or len(res) < size:
547
+ b = self.read(nreadahead())
548
+ if not b:
549
+ break
550
+ res += b
551
+ if res.endswith(b"\n"):
552
+ break
553
+ return res.take_bytes()
554
+
555
+ def __iter__(self):
556
+ self._checkClosed()
557
+ return self
558
+
559
+ def __next__(self):
560
+ line = self.readline()
561
+ if not line:
562
+ raise StopIteration
563
+ return line
564
+
565
+ def readlines(self, hint=None):
566
+ """Return a list of lines from the stream.
567
+
568
+ hint can be specified to control the number of lines read: no more
569
+ lines will be read if the total size (in bytes/characters) of all
570
+ lines so far exceeds hint.
571
+ """
572
+ if hint is None or hint <= 0:
573
+ return list(self)
574
+ n = 0
575
+ lines = []
576
+ for line in self:
577
+ lines.append(line)
578
+ n += len(line)
579
+ if n >= hint:
580
+ break
581
+ return lines
582
+
583
+ def writelines(self, lines):
584
+ """Write a list of lines to the stream.
585
+
586
+ Line separators are not added, so it is usual for each of the lines
587
+ provided to have a line separator at the end.
588
+ """
589
+ self._checkClosed()
590
+ for line in lines:
591
+ self.write(line)
592
+
593
+ io.IOBase.register(IOBase)
594
+
595
+
596
+ class RawIOBase(IOBase):
597
+
598
+ """Base class for raw binary I/O."""
599
+
600
+ # The read() method is implemented by calling readinto(); derived
601
+ # classes that want to support read() only need to implement
602
+ # readinto() as a primitive operation. In general, readinto() can be
603
+ # more efficient than read().
604
+
605
+ # (It would be tempting to also provide an implementation of
606
+ # readinto() in terms of read(), in case the latter is a more suitable
607
+ # primitive operation, but that would lead to nasty recursion in case
608
+ # a subclass doesn't implement either.)
609
+
610
+ def read(self, size=-1):
611
+ """Read and return up to size bytes, where size is an int.
612
+
613
+ Returns an empty bytes object on EOF, or None if the object is
614
+ set not to block and has no data to read.
615
+ """
616
+ if size is None:
617
+ size = -1
618
+ if size < 0:
619
+ return self.readall()
620
+ b = bytearray(size.__index__())
621
+ n = self.readinto(b)
622
+ if n is None:
623
+ return None
624
+ if n < 0 or n > len(b):
625
+ raise ValueError(f"readinto returned {n} outside buffer size {len(b)}")
626
+ del b[n:]
627
+ return b.take_bytes()
628
+
629
+ def readall(self):
630
+ """Read until EOF, using multiple read() call."""
631
+ res = bytearray()
632
+ while data := self.read(DEFAULT_BUFFER_SIZE):
633
+ res += data
634
+ if res:
635
+ return res.take_bytes()
636
+ else:
637
+ # b'' or None
638
+ return data
639
+
640
+ def readinto(self, b):
641
+ """Read bytes into a pre-allocated bytes-like object b.
642
+
643
+ Returns an int representing the number of bytes read (0 for EOF), or
644
+ None if the object is set not to block and has no data to read.
645
+ """
646
+ self._unsupported("readinto")
647
+
648
+ def write(self, b):
649
+ """Write the given buffer to the IO stream.
650
+
651
+ Returns the number of bytes written, which may be less than the
652
+ length of b in bytes.
653
+ """
654
+ self._unsupported("write")
655
+
656
+ io.RawIOBase.register(RawIOBase)
657
+
658
+
659
+ class BufferedIOBase(IOBase):
660
+
661
+ """Base class for buffered IO objects.
662
+
663
+ The main difference with RawIOBase is that the read() method
664
+ supports omitting the size argument, and does not have a default
665
+ implementation that defers to readinto().
666
+
667
+ In addition, read(), readinto() and write() may raise
668
+ BlockingIOError if the underlying raw stream is in non-blocking
669
+ mode and not ready; unlike their raw counterparts, they will never
670
+ return None.
671
+
672
+ A typical implementation should not inherit from a RawIOBase
673
+ implementation, but wrap one.
674
+ """
675
+
676
+ def read(self, size=-1):
677
+ """Read and return up to size bytes, where size is an int.
678
+
679
+ If the argument is omitted, None, or negative, reads and
680
+ returns all data until EOF.
681
+
682
+ If the argument is positive, and the underlying raw stream is
683
+ not 'interactive', multiple raw reads may be issued to satisfy
684
+ the byte count (unless EOF is reached first). But for
685
+ interactive raw streams (XXX and for pipes?), at most one raw
686
+ read will be issued, and a short result does not imply that
687
+ EOF is imminent.
688
+
689
+ Returns an empty bytes array on EOF.
690
+
691
+ Raises BlockingIOError if the underlying raw stream has no
692
+ data at the moment.
693
+ """
694
+ self._unsupported("read")
695
+
696
+ def read1(self, size=-1):
697
+ """Read up to size bytes with at most one read() system call,
698
+ where size is an int.
699
+ """
700
+ self._unsupported("read1")
701
+
702
+ def readinto(self, b):
703
+ """Read bytes into a pre-allocated bytes-like object b.
704
+
705
+ Like read(), this may issue multiple reads to the underlying raw
706
+ stream, unless the latter is 'interactive'.
707
+
708
+ Returns an int representing the number of bytes read (0 for EOF).
709
+
710
+ Raises BlockingIOError if the underlying raw stream has no
711
+ data at the moment.
712
+ """
713
+
714
+ return self._readinto(b, read1=False)
715
+
716
+ def readinto1(self, b):
717
+ """Read bytes into buffer *b*, using at most one system call
718
+
719
+ Returns an int representing the number of bytes read (0 for EOF).
720
+
721
+ Raises BlockingIOError if the underlying raw stream has no
722
+ data at the moment.
723
+ """
724
+
725
+ return self._readinto(b, read1=True)
726
+
727
+ def _readinto(self, b, read1):
728
+ if not isinstance(b, memoryview):
729
+ b = memoryview(b)
730
+ b = b.cast('B')
731
+
732
+ if read1:
733
+ data = self.read1(len(b))
734
+ else:
735
+ data = self.read(len(b))
736
+ n = len(data)
737
+
738
+ b[:n] = data
739
+
740
+ return n
741
+
742
+ def write(self, b):
743
+ """Write the given bytes buffer to the IO stream.
744
+
745
+ Return the number of bytes written, which is always the length of b
746
+ in bytes.
747
+
748
+ Raises BlockingIOError if the buffer is full and the
749
+ underlying raw stream cannot accept more data at the moment.
750
+ """
751
+ self._unsupported("write")
752
+
753
+ def detach(self):
754
+ """
755
+ Separate the underlying raw stream from the buffer and return it.
756
+
757
+ After the raw stream has been detached, the buffer is in an unusable
758
+ state.
759
+ """
760
+ self._unsupported("detach")
761
+
762
+ io.BufferedIOBase.register(BufferedIOBase)
763
+
764
+
765
+ class _BufferedIOMixin(BufferedIOBase):
766
+
767
+ """A mixin implementation of BufferedIOBase with an underlying raw stream.
768
+
769
+ This passes most requests on to the underlying raw stream. It
770
+ does *not* provide implementations of read(), readinto() or
771
+ write().
772
+ """
773
+
774
+ def __init__(self, raw):
775
+ self._raw = raw
776
+
777
+ ### Positioning ###
778
+
779
+ def seek(self, pos, whence=0):
780
+ new_position = self.raw.seek(pos, whence)
781
+ if new_position < 0:
782
+ raise OSError("seek() returned an invalid position")
783
+ return new_position
784
+
785
+ def tell(self):
786
+ pos = self.raw.tell()
787
+ if pos < 0:
788
+ raise OSError("tell() returned an invalid position")
789
+ return pos
790
+
791
+ def truncate(self, pos=None):
792
+ self._checkClosed()
793
+ self._checkWritable()
794
+
795
+ # Flush the stream. We're mixing buffered I/O with lower-level I/O,
796
+ # and a flush may be necessary to synch both views of the current
797
+ # file state.
798
+ self.flush()
799
+
800
+ if pos is None:
801
+ pos = self.tell()
802
+ # XXX: Should seek() be used, instead of passing the position
803
+ # XXX directly to truncate?
804
+ return self.raw.truncate(pos)
805
+
806
+ ### Flush and close ###
807
+
808
+ def flush(self):
809
+ if self.closed:
810
+ raise ValueError("flush on closed file")
811
+ self.raw.flush()
812
+
813
+ def close(self):
814
+ if self.raw is not None and not self.closed:
815
+ try:
816
+ # may raise BlockingIOError or BrokenPipeError etc
817
+ self.flush()
818
+ finally:
819
+ self.raw.close()
820
+
821
+ def detach(self):
822
+ if self.raw is None:
823
+ raise ValueError("raw stream already detached")
824
+ self.flush()
825
+ raw = self._raw
826
+ self._raw = None
827
+ return raw
828
+
829
+ ### Inquiries ###
830
+
831
+ def seekable(self):
832
+ return self.raw.seekable()
833
+
834
+ @property
835
+ def raw(self):
836
+ return self._raw
837
+
838
+ @property
839
+ def closed(self):
840
+ return self.raw.closed
841
+
842
+ @property
843
+ def name(self):
844
+ return self.raw.name
845
+
846
+ @property
847
+ def mode(self):
848
+ return self.raw.mode
849
+
850
+ def __getstate__(self):
851
+ raise TypeError(f"cannot pickle {self.__class__.__name__!r} object")
852
+
853
+ def __repr__(self):
854
+ modname = self.__class__.__module__
855
+ clsname = self.__class__.__qualname__
856
+ try:
857
+ name = self.name
858
+ except AttributeError:
859
+ return "<{}.{}>".format(modname, clsname)
860
+ else:
861
+ return "<{}.{} name={!r}>".format(modname, clsname, name)
862
+
863
+ def _dealloc_warn(self, source):
864
+ if dealloc_warn := getattr(self.raw, "_dealloc_warn", None):
865
+ dealloc_warn(source)
866
+
867
+ ### Lower-level APIs ###
868
+
869
+ def fileno(self):
870
+ return self.raw.fileno()
871
+
872
+ def isatty(self):
873
+ return self.raw.isatty()
874
+
875
+
876
+ class BytesIO(BufferedIOBase):
877
+
878
+ """Buffered I/O implementation using an in-memory bytes buffer."""
879
+
880
+ # Initialize _buffer as soon as possible since it's used by __del__()
881
+ # which calls close()
882
+ _buffer = None
883
+
884
+ def __init__(self, initial_bytes=None):
885
+ # Use to keep self._buffer and self._pos consistent.
886
+ self._lock = Lock()
887
+
888
+ buf = bytearray()
889
+ if initial_bytes is not None:
890
+ buf += initial_bytes
891
+
892
+ with self._lock:
893
+ self._buffer = buf
894
+ self._pos = 0
895
+
896
+ def __getstate__(self):
897
+ if self.closed:
898
+ raise ValueError("__getstate__ on closed file")
899
+ with self._lock:
900
+ state = self.__dict__.copy()
901
+ del state['_lock']
902
+ return state
903
+
904
+ def __setstate__(self, state):
905
+ self.__dict__.update(state)
906
+ self._lock = Lock()
907
+
908
+ def getvalue(self):
909
+ """Return the bytes value (contents) of the buffer
910
+ """
911
+ if self.closed:
912
+ raise ValueError("getvalue on closed file")
913
+ return bytes(self._buffer)
914
+
915
+ def getbuffer(self):
916
+ """Return a readable and writable view of the buffer.
917
+ """
918
+ if self.closed:
919
+ raise ValueError("getbuffer on closed file")
920
+ return memoryview(self._buffer)
921
+
922
+ def close(self):
923
+ if self._buffer is not None:
924
+ self._buffer.clear()
925
+ super().close()
926
+
927
+ def read(self, size=-1):
928
+ if self.closed:
929
+ raise ValueError("read from closed file")
930
+ if size is None:
931
+ size = -1
932
+ else:
933
+ try:
934
+ size_index = size.__index__
935
+ except AttributeError:
936
+ raise TypeError(f"{size!r} is not an integer")
937
+ else:
938
+ size = size_index()
939
+
940
+ with self._lock:
941
+ if size < 0:
942
+ size = len(self._buffer)
943
+ if len(self._buffer) <= self._pos:
944
+ return b""
945
+ newpos = min(len(self._buffer), self._pos + size)
946
+ b = self._buffer[self._pos : newpos]
947
+ self._pos = newpos
948
+ return bytes(b)
949
+
950
+ def read1(self, size=-1):
951
+ """This is the same as read.
952
+ """
953
+ return self.read(size)
954
+
955
+ def write(self, b):
956
+ if isinstance(b, str):
957
+ raise TypeError("can't write str to binary stream")
958
+ with memoryview(b) as view:
959
+ if self.closed:
960
+ raise ValueError("write to closed file")
961
+
962
+ n = view.nbytes # Size of any bytes-like object
963
+ if n == 0:
964
+ return 0
965
+
966
+ with self._lock:
967
+ pos = self._pos
968
+ if pos > len(self._buffer):
969
+ # Pad buffer to pos with null bytes.
970
+ self._buffer.resize(pos)
971
+ self._buffer[pos:pos + n] = view
972
+ self._pos += n
973
+ return n
974
+
975
+ def seek(self, pos, whence=0):
976
+ if self.closed:
977
+ raise ValueError("seek on closed file")
978
+ try:
979
+ pos_index = pos.__index__
980
+ except AttributeError:
981
+ raise TypeError(f"{pos!r} is not an integer")
982
+ else:
983
+ pos = pos_index()
984
+ if whence == 0:
985
+ if pos < 0:
986
+ raise ValueError("negative seek position %r" % (pos,))
987
+ self._pos = pos
988
+ elif whence == 1:
989
+ with self._lock:
990
+ self._pos = max(0, self._pos + pos)
991
+ elif whence == 2:
992
+ with self._lock:
993
+ self._pos = max(0, len(self._buffer) + pos)
994
+ else:
995
+ raise ValueError("unsupported whence value")
996
+ return self._pos
997
+
998
+ def tell(self):
999
+ if self.closed:
1000
+ raise ValueError("tell on closed file")
1001
+ return self._pos
1002
+
1003
+ def truncate(self, pos=None):
1004
+ if self.closed:
1005
+ raise ValueError("truncate on closed file")
1006
+
1007
+ with self._lock:
1008
+ if pos is None:
1009
+ pos = self._pos
1010
+ else:
1011
+ try:
1012
+ pos_index = pos.__index__
1013
+ except AttributeError:
1014
+ raise TypeError(f"{pos!r} is not an integer")
1015
+ else:
1016
+ pos = pos_index()
1017
+ if pos < 0:
1018
+ raise ValueError("negative truncate position %r" % (pos,))
1019
+ del self._buffer[pos:]
1020
+ return pos
1021
+
1022
+ def readable(self):
1023
+ if self.closed:
1024
+ raise ValueError("I/O operation on closed file.")
1025
+ return True
1026
+
1027
+ def writable(self):
1028
+ if self.closed:
1029
+ raise ValueError("I/O operation on closed file.")
1030
+ return True
1031
+
1032
+ def seekable(self):
1033
+ if self.closed:
1034
+ raise ValueError("I/O operation on closed file.")
1035
+ return True
1036
+
1037
+
1038
+ class BufferedReader(_BufferedIOMixin):
1039
+
1040
+ """BufferedReader(raw[, buffer_size])
1041
+
1042
+ A buffer for a readable, sequential BaseRawIO object.
1043
+
1044
+ The constructor creates a BufferedReader for the given readable raw
1045
+ stream and buffer_size. If buffer_size is omitted, DEFAULT_BUFFER_SIZE
1046
+ is used.
1047
+ """
1048
+
1049
+ def __init__(self, raw, buffer_size=DEFAULT_BUFFER_SIZE):
1050
+ """Create a new buffered reader using the given readable raw IO object.
1051
+ """
1052
+ if not raw.readable():
1053
+ raise OSError('"raw" argument must be readable.')
1054
+
1055
+ _BufferedIOMixin.__init__(self, raw)
1056
+ if buffer_size <= 0:
1057
+ raise ValueError("invalid buffer size")
1058
+ self.buffer_size = buffer_size
1059
+ self._reset_read_buf()
1060
+ self._read_lock = Lock()
1061
+
1062
+ def readable(self):
1063
+ return self.raw.readable()
1064
+
1065
+ def _reset_read_buf(self):
1066
+ self._read_buf = b""
1067
+ self._read_pos = 0
1068
+
1069
+ def read(self, size=None):
1070
+ """Read size bytes.
1071
+
1072
+ Returns exactly size bytes of data unless the underlying raw IO
1073
+ stream reaches EOF or if the call would block in non-blocking
1074
+ mode. If size is negative, read until EOF or until read() would
1075
+ block.
1076
+ """
1077
+ if size is not None and size < -1:
1078
+ raise ValueError("invalid number of bytes to read")
1079
+ with self._read_lock:
1080
+ return self._read_unlocked(size)
1081
+
1082
+ def _read_unlocked(self, n=None):
1083
+ nodata_val = b""
1084
+ empty_values = (b"", None)
1085
+ buf = self._read_buf
1086
+ pos = self._read_pos
1087
+
1088
+ # Special case for when the number of bytes to read is unspecified.
1089
+ if n is None or n == -1:
1090
+ self._reset_read_buf()
1091
+ if hasattr(self.raw, 'readall'):
1092
+ chunk = self.raw.readall()
1093
+ if chunk is None:
1094
+ return buf[pos:] or None
1095
+ else:
1096
+ return buf[pos:] + chunk
1097
+ chunks = [buf[pos:]] # Strip the consumed bytes.
1098
+ current_size = 0
1099
+ while True:
1100
+ # Read until EOF or until read() would block.
1101
+ chunk = self.raw.read()
1102
+ if chunk in empty_values:
1103
+ nodata_val = chunk
1104
+ break
1105
+ current_size += len(chunk)
1106
+ chunks.append(chunk)
1107
+ return b"".join(chunks) or nodata_val
1108
+
1109
+ # The number of bytes to read is specified, return at most n bytes.
1110
+ avail = len(buf) - pos # Length of the available buffered data.
1111
+ if n <= avail:
1112
+ # Fast path: the data to read is fully buffered.
1113
+ self._read_pos += n
1114
+ return buf[pos:pos+n]
1115
+ # Slow path: read from the stream until enough bytes are read,
1116
+ # or until an EOF occurs or until read() would block.
1117
+ chunks = [buf[pos:]]
1118
+ wanted = max(self.buffer_size, n)
1119
+ while avail < n:
1120
+ chunk = self.raw.read(wanted)
1121
+ if chunk in empty_values:
1122
+ nodata_val = chunk
1123
+ break
1124
+ avail += len(chunk)
1125
+ chunks.append(chunk)
1126
+ # n is more than avail only when an EOF occurred or when
1127
+ # read() would have blocked.
1128
+ n = min(n, avail)
1129
+ out = b"".join(chunks)
1130
+ self._read_buf = out[n:] # Save the extra data in the buffer.
1131
+ self._read_pos = 0
1132
+ return out[:n] if out else nodata_val
1133
+
1134
+ def peek(self, size=0):
1135
+ """Returns buffered bytes without advancing the position.
1136
+
1137
+ The argument indicates a desired minimal number of bytes; we
1138
+ do at most one raw read to satisfy it. We never return more
1139
+ than self.buffer_size.
1140
+ """
1141
+ self._checkClosed("peek of closed file")
1142
+ with self._read_lock:
1143
+ return self._peek_unlocked(size)
1144
+
1145
+ def _peek_unlocked(self, n=0):
1146
+ want = min(n, self.buffer_size)
1147
+ have = len(self._read_buf) - self._read_pos
1148
+ if have < want or have <= 0:
1149
+ to_read = self.buffer_size - have
1150
+ current = self.raw.read(to_read)
1151
+ if current:
1152
+ self._read_buf = self._read_buf[self._read_pos:] + current
1153
+ self._read_pos = 0
1154
+ return self._read_buf[self._read_pos:]
1155
+
1156
+ def read1(self, size=-1):
1157
+ """Reads up to size bytes, with at most one read() system call."""
1158
+ # Returns up to size bytes. If at least one byte is buffered, we
1159
+ # only return buffered bytes. Otherwise, we do one raw read.
1160
+ self._checkClosed("read of closed file")
1161
+ if size < 0:
1162
+ size = self.buffer_size
1163
+ if size == 0:
1164
+ return b""
1165
+ with self._read_lock:
1166
+ self._peek_unlocked(1)
1167
+ return self._read_unlocked(
1168
+ min(size, len(self._read_buf) - self._read_pos))
1169
+
1170
+ # Implementing readinto() and readinto1() is not strictly necessary (we
1171
+ # could rely on the base class that provides an implementation in terms of
1172
+ # read() and read1()). We do it anyway to keep the _pyio implementation
1173
+ # similar to the io implementation (which implements the methods for
1174
+ # performance reasons).
1175
+ def _readinto(self, buf, read1):
1176
+ """Read data into *buf* with at most one system call."""
1177
+
1178
+ self._checkClosed("readinto of closed file")
1179
+
1180
+ # Need to create a memoryview object of type 'b', otherwise
1181
+ # we may not be able to assign bytes to it, and slicing it
1182
+ # would create a new object.
1183
+ if not isinstance(buf, memoryview):
1184
+ buf = memoryview(buf)
1185
+ if buf.nbytes == 0:
1186
+ return 0
1187
+ buf = buf.cast('B')
1188
+
1189
+ written = 0
1190
+ with self._read_lock:
1191
+ while written < len(buf):
1192
+
1193
+ # First try to read from internal buffer
1194
+ avail = min(len(self._read_buf) - self._read_pos, len(buf))
1195
+ if avail:
1196
+ buf[written:written+avail] = \
1197
+ self._read_buf[self._read_pos:self._read_pos+avail]
1198
+ self._read_pos += avail
1199
+ written += avail
1200
+ if written == len(buf):
1201
+ break
1202
+
1203
+ # If remaining space in callers buffer is larger than
1204
+ # internal buffer, read directly into callers buffer
1205
+ if len(buf) - written > self.buffer_size:
1206
+ n = self.raw.readinto(buf[written:])
1207
+ if not n:
1208
+ break # eof
1209
+ written += n
1210
+
1211
+ # Otherwise refill internal buffer - unless we're
1212
+ # in read1 mode and already got some data
1213
+ elif not (read1 and written):
1214
+ if not self._peek_unlocked(1):
1215
+ break # eof
1216
+
1217
+ # In readinto1 mode, return as soon as we have some data
1218
+ if read1 and written:
1219
+ break
1220
+
1221
+ return written
1222
+
1223
+ def tell(self):
1224
+ # GH-95782: Keep return value non-negative
1225
+ return max(_BufferedIOMixin.tell(self) - len(self._read_buf) + self._read_pos, 0)
1226
+
1227
+ def seek(self, pos, whence=0):
1228
+ if whence not in valid_seek_flags:
1229
+ raise ValueError("invalid whence value")
1230
+ self._checkClosed("seek of closed file")
1231
+ with self._read_lock:
1232
+ if whence == 1:
1233
+ pos -= len(self._read_buf) - self._read_pos
1234
+ pos = _BufferedIOMixin.seek(self, pos, whence)
1235
+ self._reset_read_buf()
1236
+ return pos
1237
+
1238
+ class BufferedWriter(_BufferedIOMixin):
1239
+
1240
+ """A buffer for a writeable sequential RawIO object.
1241
+
1242
+ The constructor creates a BufferedWriter for the given writeable raw
1243
+ stream. If the buffer_size is not given, it defaults to
1244
+ DEFAULT_BUFFER_SIZE.
1245
+ """
1246
+
1247
+ def __init__(self, raw, buffer_size=DEFAULT_BUFFER_SIZE):
1248
+ if not raw.writable():
1249
+ raise OSError('"raw" argument must be writable.')
1250
+
1251
+ _BufferedIOMixin.__init__(self, raw)
1252
+ if buffer_size <= 0:
1253
+ raise ValueError("invalid buffer size")
1254
+ self.buffer_size = buffer_size
1255
+ self._write_buf = bytearray()
1256
+ self._write_lock = Lock()
1257
+
1258
+ def writable(self):
1259
+ return self.raw.writable()
1260
+
1261
+ def write(self, b):
1262
+ if isinstance(b, str):
1263
+ raise TypeError("can't write str to binary stream")
1264
+ with self._write_lock:
1265
+ if self.closed:
1266
+ raise ValueError("write to closed file")
1267
+ # XXX we can implement some more tricks to try and avoid
1268
+ # partial writes
1269
+ if len(self._write_buf) > self.buffer_size:
1270
+ # We're full, so let's pre-flush the buffer. (This may
1271
+ # raise BlockingIOError with characters_written == 0.)
1272
+ self._flush_unlocked()
1273
+ before = len(self._write_buf)
1274
+ self._write_buf.extend(b)
1275
+ written = len(self._write_buf) - before
1276
+ if len(self._write_buf) > self.buffer_size:
1277
+ try:
1278
+ self._flush_unlocked()
1279
+ except BlockingIOError as e:
1280
+ if len(self._write_buf) > self.buffer_size:
1281
+ # We've hit the buffer_size. We have to accept a partial
1282
+ # write and cut back our buffer.
1283
+ overage = len(self._write_buf) - self.buffer_size
1284
+ written -= overage
1285
+ self._write_buf = self._write_buf[:self.buffer_size]
1286
+ raise BlockingIOError(e.errno, e.strerror, written)
1287
+ return written
1288
+
1289
+ def truncate(self, pos=None):
1290
+ with self._write_lock:
1291
+ self._flush_unlocked()
1292
+ if pos is None:
1293
+ pos = self.raw.tell()
1294
+ return self.raw.truncate(pos)
1295
+
1296
+ def flush(self):
1297
+ with self._write_lock:
1298
+ self._flush_unlocked()
1299
+
1300
+ def _flush_unlocked(self):
1301
+ if self.closed:
1302
+ raise ValueError("flush on closed file")
1303
+ while self._write_buf:
1304
+ try:
1305
+ n = self.raw.write(self._write_buf)
1306
+ except BlockingIOError:
1307
+ raise RuntimeError("self.raw should implement RawIOBase: it "
1308
+ "should not raise BlockingIOError")
1309
+ if n is None:
1310
+ raise BlockingIOError(
1311
+ errno.EAGAIN,
1312
+ "write could not complete without blocking", 0)
1313
+ if n > len(self._write_buf) or n < 0:
1314
+ raise OSError("write() returned incorrect number of bytes")
1315
+ del self._write_buf[:n]
1316
+
1317
+ def tell(self):
1318
+ return _BufferedIOMixin.tell(self) + len(self._write_buf)
1319
+
1320
+ def seek(self, pos, whence=0):
1321
+ if whence not in valid_seek_flags:
1322
+ raise ValueError("invalid whence value")
1323
+ with self._write_lock:
1324
+ self._flush_unlocked()
1325
+ return _BufferedIOMixin.seek(self, pos, whence)
1326
+
1327
+ def close(self):
1328
+ with self._write_lock:
1329
+ if self.raw is None or self.closed:
1330
+ return
1331
+ # We have to release the lock and call self.flush() (which will
1332
+ # probably just re-take the lock) in case flush has been overridden in
1333
+ # a subclass or the user set self.flush to something. This is the same
1334
+ # behavior as the C implementation.
1335
+ try:
1336
+ # may raise BlockingIOError or BrokenPipeError etc
1337
+ self.flush()
1338
+ finally:
1339
+ with self._write_lock:
1340
+ self.raw.close()
1341
+
1342
+
1343
+ class BufferedRWPair(BufferedIOBase):
1344
+
1345
+ """A buffered reader and writer object together.
1346
+
1347
+ A buffered reader object and buffered writer object put together to
1348
+ form a sequential IO object that can read and write. This is typically
1349
+ used with a socket or two-way pipe.
1350
+
1351
+ reader and writer are RawIOBase objects that are readable and
1352
+ writeable respectively. If the buffer_size is omitted it defaults to
1353
+ DEFAULT_BUFFER_SIZE.
1354
+ """
1355
+
1356
+ # XXX The usefulness of this (compared to having two separate IO
1357
+ # objects) is questionable.
1358
+
1359
+ def __init__(self, reader, writer, buffer_size=DEFAULT_BUFFER_SIZE):
1360
+ """Constructor.
1361
+
1362
+ The arguments are two RawIO instances.
1363
+ """
1364
+ if not reader.readable():
1365
+ raise OSError('"reader" argument must be readable.')
1366
+
1367
+ if not writer.writable():
1368
+ raise OSError('"writer" argument must be writable.')
1369
+
1370
+ self.reader = BufferedReader(reader, buffer_size)
1371
+ self.writer = BufferedWriter(writer, buffer_size)
1372
+
1373
+ def read(self, size=-1):
1374
+ if size is None:
1375
+ size = -1
1376
+ return self.reader.read(size)
1377
+
1378
+ def readinto(self, b):
1379
+ return self.reader.readinto(b)
1380
+
1381
+ def write(self, b):
1382
+ return self.writer.write(b)
1383
+
1384
+ def peek(self, size=0):
1385
+ return self.reader.peek(size)
1386
+
1387
+ def read1(self, size=-1):
1388
+ return self.reader.read1(size)
1389
+
1390
+ def readinto1(self, b):
1391
+ return self.reader.readinto1(b)
1392
+
1393
+ def readable(self):
1394
+ return self.reader.readable()
1395
+
1396
+ def writable(self):
1397
+ return self.writer.writable()
1398
+
1399
+ def flush(self):
1400
+ return self.writer.flush()
1401
+
1402
+ def close(self):
1403
+ try:
1404
+ self.writer.close()
1405
+ finally:
1406
+ self.reader.close()
1407
+
1408
+ def isatty(self):
1409
+ return self.reader.isatty() or self.writer.isatty()
1410
+
1411
+ @property
1412
+ def closed(self):
1413
+ return self.writer.closed
1414
+
1415
+
1416
+ class BufferedRandom(BufferedWriter, BufferedReader):
1417
+
1418
+ """A buffered interface to random access streams.
1419
+
1420
+ The constructor creates a reader and writer for a seekable stream,
1421
+ raw, given in the first argument. If the buffer_size is omitted it
1422
+ defaults to DEFAULT_BUFFER_SIZE.
1423
+ """
1424
+
1425
+ def __init__(self, raw, buffer_size=DEFAULT_BUFFER_SIZE):
1426
+ raw._checkSeekable()
1427
+ BufferedReader.__init__(self, raw, buffer_size)
1428
+ BufferedWriter.__init__(self, raw, buffer_size)
1429
+
1430
+ def seek(self, pos, whence=0):
1431
+ if whence not in valid_seek_flags:
1432
+ raise ValueError("invalid whence value")
1433
+ self.flush()
1434
+ if self._read_buf:
1435
+ # Undo read ahead.
1436
+ with self._read_lock:
1437
+ self.raw.seek(self._read_pos - len(self._read_buf), 1)
1438
+ # First do the raw seek, then empty the read buffer, so that
1439
+ # if the raw seek fails, we don't lose buffered data forever.
1440
+ pos = self.raw.seek(pos, whence)
1441
+ with self._read_lock:
1442
+ self._reset_read_buf()
1443
+ if pos < 0:
1444
+ raise OSError("seek() returned invalid position")
1445
+ return pos
1446
+
1447
+ def tell(self):
1448
+ if self._write_buf:
1449
+ return BufferedWriter.tell(self)
1450
+ else:
1451
+ return BufferedReader.tell(self)
1452
+
1453
+ def truncate(self, pos=None):
1454
+ if pos is None:
1455
+ pos = self.tell()
1456
+ # Use seek to flush the read buffer.
1457
+ return BufferedWriter.truncate(self, pos)
1458
+
1459
+ def read(self, size=None):
1460
+ if size is None:
1461
+ size = -1
1462
+ self.flush()
1463
+ return BufferedReader.read(self, size)
1464
+
1465
+ def readinto(self, b):
1466
+ self.flush()
1467
+ return BufferedReader.readinto(self, b)
1468
+
1469
+ def peek(self, size=0):
1470
+ self.flush()
1471
+ return BufferedReader.peek(self, size)
1472
+
1473
+ def read1(self, size=-1):
1474
+ self.flush()
1475
+ return BufferedReader.read1(self, size)
1476
+
1477
+ def readinto1(self, b):
1478
+ self.flush()
1479
+ return BufferedReader.readinto1(self, b)
1480
+
1481
+ def write(self, b):
1482
+ if self._read_buf:
1483
+ # Undo readahead
1484
+ with self._read_lock:
1485
+ self.raw.seek(self._read_pos - len(self._read_buf), 1)
1486
+ self._reset_read_buf()
1487
+ return BufferedWriter.write(self, b)
1488
+
1489
+
1490
+ def _new_buffersize(bytes_read):
1491
+ # Parallels _io/fileio.c new_buffersize
1492
+ if bytes_read > 65536:
1493
+ addend = bytes_read >> 3
1494
+ else:
1495
+ addend = 256 + bytes_read
1496
+ if addend < DEFAULT_BUFFER_SIZE:
1497
+ addend = DEFAULT_BUFFER_SIZE
1498
+ return bytes_read + addend
1499
+
1500
+
1501
+ class FileIO(RawIOBase):
1502
+ _fd = -1
1503
+ _created = False
1504
+ _readable = False
1505
+ _writable = False
1506
+ _appending = False
1507
+ _seekable = None
1508
+ _truncate = False
1509
+ _closefd = True
1510
+
1511
+ def __init__(self, file, mode='r', closefd=True, opener=None):
1512
+ """Open a file.
1513
+
1514
+ The mode can be 'r' (default), 'w', 'x' or 'a' for reading,
1515
+ writing, exclusive creation or appending. The file will be created
1516
+ if it doesn't exist when opened for writing or appending; it will be
1517
+ truncated when opened for writing. A FileExistsError will be raised
1518
+ if it already exists when opened for creating. Opening a file for
1519
+ creating implies writing so this mode behaves in a similar way to
1520
+ 'w'. Add a '+' to the mode to allow simultaneous reading and
1521
+ writing.
1522
+
1523
+ A custom opener can be used by passing a callable as *opener*.
1524
+ The underlying file descriptor for the file object is then obtained
1525
+ by calling opener with (*name*, *flags*). *opener* must return
1526
+ an open file descriptor (passing os.open as *opener* results in
1527
+ functionality similar to passing None).
1528
+ """
1529
+ if self._fd >= 0:
1530
+ # Have to close the existing file first.
1531
+ self._stat_atopen = None
1532
+ try:
1533
+ if self._closefd:
1534
+ os.close(self._fd)
1535
+ finally:
1536
+ self._fd = -1
1537
+
1538
+ if isinstance(file, float):
1539
+ raise TypeError('integer argument expected, got float')
1540
+ if isinstance(file, int):
1541
+ if isinstance(file, bool):
1542
+ import warnings
1543
+ warnings.warn("bool is used as a file descriptor",
1544
+ RuntimeWarning, stacklevel=2)
1545
+ file = int(file)
1546
+ fd = file
1547
+ if fd < 0:
1548
+ raise ValueError('negative file descriptor')
1549
+ else:
1550
+ fd = -1
1551
+
1552
+ if not isinstance(mode, str):
1553
+ raise TypeError('invalid mode: %s' % (mode,))
1554
+ if not set(mode) <= set('xrwab+'):
1555
+ raise ValueError('invalid mode: %s' % (mode,))
1556
+ if sum(c in 'rwax' for c in mode) != 1 or mode.count('+') > 1:
1557
+ raise ValueError('Must have exactly one of create/read/write/append '
1558
+ 'mode and at most one plus')
1559
+
1560
+ if 'x' in mode:
1561
+ self._created = True
1562
+ self._writable = True
1563
+ flags = os.O_EXCL | os.O_CREAT
1564
+ elif 'r' in mode:
1565
+ self._readable = True
1566
+ flags = 0
1567
+ elif 'w' in mode:
1568
+ self._writable = True
1569
+ self._truncate = True
1570
+ flags = os.O_CREAT | os.O_TRUNC
1571
+ elif 'a' in mode:
1572
+ self._writable = True
1573
+ self._appending = True
1574
+ flags = os.O_APPEND | os.O_CREAT
1575
+
1576
+ if '+' in mode:
1577
+ self._readable = True
1578
+ self._writable = True
1579
+
1580
+ if self._readable and self._writable:
1581
+ flags |= os.O_RDWR
1582
+ elif self._readable:
1583
+ flags |= os.O_RDONLY
1584
+ else:
1585
+ flags |= os.O_WRONLY
1586
+
1587
+ flags |= getattr(os, 'O_BINARY', 0)
1588
+
1589
+ noinherit_flag = (getattr(os, 'O_NOINHERIT', 0) or
1590
+ getattr(os, 'O_CLOEXEC', 0))
1591
+ flags |= noinherit_flag
1592
+
1593
+ owned_fd = None
1594
+ try:
1595
+ if fd < 0:
1596
+ if not closefd:
1597
+ raise ValueError('Cannot use closefd=False with file name')
1598
+ if opener is None:
1599
+ fd = os.open(file, flags, 0o666)
1600
+ else:
1601
+ fd = opener(file, flags)
1602
+ if not isinstance(fd, int):
1603
+ raise TypeError('expected integer from opener')
1604
+ if fd < 0:
1605
+ # bpo-27066: Raise a ValueError for bad value.
1606
+ raise ValueError(f'opener returned {fd}')
1607
+ owned_fd = fd
1608
+ if not noinherit_flag:
1609
+ os.set_inheritable(fd, False)
1610
+
1611
+ self._closefd = closefd
1612
+ self._stat_atopen = os.fstat(fd)
1613
+ try:
1614
+ if stat.S_ISDIR(self._stat_atopen.st_mode):
1615
+ raise IsADirectoryError(errno.EISDIR,
1616
+ os.strerror(errno.EISDIR), file)
1617
+ except AttributeError:
1618
+ # Ignore the AttributeError if stat.S_ISDIR or errno.EISDIR
1619
+ # don't exist.
1620
+ pass
1621
+
1622
+ if _setmode:
1623
+ # don't translate newlines (\r\n <=> \n)
1624
+ _setmode(fd, os.O_BINARY)
1625
+
1626
+ self.name = file
1627
+ if self._appending:
1628
+ # For consistent behaviour, we explicitly seek to the
1629
+ # end of file (otherwise, it might be done only on the
1630
+ # first write()).
1631
+ try:
1632
+ os.lseek(fd, 0, SEEK_END)
1633
+ except OSError as e:
1634
+ if e.errno != errno.ESPIPE:
1635
+ raise
1636
+ except:
1637
+ self._stat_atopen = None
1638
+ if owned_fd is not None:
1639
+ os.close(owned_fd)
1640
+ raise
1641
+ self._fd = fd
1642
+
1643
+ def _dealloc_warn(self, source):
1644
+ if self._fd >= 0 and self._closefd and not self.closed:
1645
+ import warnings
1646
+ warnings.warn(f'unclosed file {source!r}', ResourceWarning,
1647
+ stacklevel=2, source=self)
1648
+
1649
+ def __getstate__(self):
1650
+ raise TypeError(f"cannot pickle {self.__class__.__name__!r} object")
1651
+
1652
+ def __repr__(self):
1653
+ class_name = '%s.%s' % (self.__class__.__module__,
1654
+ self.__class__.__qualname__)
1655
+ if self.closed:
1656
+ return '<%s [closed]>' % class_name
1657
+ try:
1658
+ name = self.name
1659
+ except AttributeError:
1660
+ return ('<%s fd=%d mode=%r closefd=%r>' %
1661
+ (class_name, self._fd, self.mode, self._closefd))
1662
+ else:
1663
+ return ('<%s name=%r mode=%r closefd=%r>' %
1664
+ (class_name, name, self.mode, self._closefd))
1665
+
1666
+ @property
1667
+ def _blksize(self):
1668
+ if self._stat_atopen is None:
1669
+ return DEFAULT_BUFFER_SIZE
1670
+
1671
+ blksize = getattr(self._stat_atopen, "st_blksize", 0)
1672
+ # WASI sets blsize to 0
1673
+ if not blksize:
1674
+ return DEFAULT_BUFFER_SIZE
1675
+ return blksize
1676
+
1677
+ def _checkReadable(self):
1678
+ if not self._readable:
1679
+ raise UnsupportedOperation('File not open for reading')
1680
+
1681
+ def _checkWritable(self, msg=None):
1682
+ if not self._writable:
1683
+ raise UnsupportedOperation('File not open for writing')
1684
+
1685
+ def read(self, size=None):
1686
+ """Read at most size bytes, returned as bytes.
1687
+
1688
+ If size is less than 0, read all bytes in the file making
1689
+ multiple read calls. See ``FileIO.readall``.
1690
+
1691
+ Attempts to make only one system call, retrying only per
1692
+ PEP 475 (EINTR). This means less data may be returned than
1693
+ requested.
1694
+
1695
+ In non-blocking mode, returns None if no data is available.
1696
+ Return an empty bytes object at EOF.
1697
+ """
1698
+ self._checkClosed()
1699
+ self._checkReadable()
1700
+ if size is None or size < 0:
1701
+ return self.readall()
1702
+ try:
1703
+ return os.read(self._fd, size)
1704
+ except BlockingIOError:
1705
+ return None
1706
+
1707
+ def readall(self):
1708
+ """Read all data from the file, returned as bytes.
1709
+
1710
+ Reads until either there is an error or read() returns size 0
1711
+ (indicates EOF). If the file is already at EOF, returns an
1712
+ empty bytes object.
1713
+
1714
+ In non-blocking mode, returns as much data as could be read
1715
+ before EAGAIN. If no data is available (EAGAIN is returned
1716
+ before bytes are read) returns None.
1717
+ """
1718
+ self._checkClosed()
1719
+ self._checkReadable()
1720
+ if self._stat_atopen is None or self._stat_atopen.st_size <= 0:
1721
+ bufsize = DEFAULT_BUFFER_SIZE
1722
+ else:
1723
+ # In order to detect end of file, need a read() of at least 1
1724
+ # byte which returns size 0. Oversize the buffer by 1 byte so the
1725
+ # I/O can be completed with two read() calls (one for all data, one
1726
+ # for EOF) without needing to resize the buffer.
1727
+ bufsize = self._stat_atopen.st_size + 1
1728
+
1729
+ if self._stat_atopen.st_size > 65536:
1730
+ try:
1731
+ pos = os.lseek(self._fd, 0, SEEK_CUR)
1732
+ if self._stat_atopen.st_size >= pos:
1733
+ bufsize = self._stat_atopen.st_size - pos + 1
1734
+ except OSError:
1735
+ pass
1736
+
1737
+ result = bytearray(bufsize)
1738
+ bytes_read = 0
1739
+ try:
1740
+ while n := os.readinto(self._fd, memoryview(result)[bytes_read:]):
1741
+ bytes_read += n
1742
+ if bytes_read >= len(result):
1743
+ result.resize(_new_buffersize(bytes_read))
1744
+ except BlockingIOError:
1745
+ if not bytes_read:
1746
+ return None
1747
+
1748
+ assert len(result) - bytes_read >= 1, \
1749
+ "os.readinto buffer size 0 will result in erroneous EOF / returns 0"
1750
+ result.resize(bytes_read)
1751
+ return result.take_bytes()
1752
+
1753
+ def readinto(self, buffer):
1754
+ """Same as RawIOBase.readinto()."""
1755
+ self._checkClosed()
1756
+ self._checkReadable()
1757
+ try:
1758
+ return os.readinto(self._fd, buffer)
1759
+ except BlockingIOError:
1760
+ return None
1761
+
1762
+ def write(self, b):
1763
+ """Write bytes b to file, return number written.
1764
+
1765
+ Only makes one system call, so not all of the data may be written.
1766
+ The number of bytes actually written is returned. In non-blocking
1767
+ mode, returns None if the write would block.
1768
+ """
1769
+ self._checkClosed()
1770
+ self._checkWritable()
1771
+ try:
1772
+ return os.write(self._fd, b)
1773
+ except BlockingIOError:
1774
+ return None
1775
+
1776
+ def seek(self, pos, whence=SEEK_SET):
1777
+ """Move to new file position.
1778
+
1779
+ Argument offset is a byte count. Optional argument whence defaults
1780
+ to SEEK_SET or 0 (offset from start of file, offset should be >= 0);
1781
+ other values are SEEK_CUR or 1 (move relative to current position,
1782
+ positive or negative), and SEEK_END or 2 (move relative to end of
1783
+ file, usually negative, although many platforms allow seeking beyond
1784
+ the end of a file).
1785
+
1786
+ Note that not all file objects are seekable.
1787
+ """
1788
+ if isinstance(pos, float):
1789
+ raise TypeError('an integer is required')
1790
+ self._checkClosed()
1791
+ return os.lseek(self._fd, pos, whence)
1792
+
1793
+ def tell(self):
1794
+ """tell() -> int. Current file position.
1795
+
1796
+ Can raise OSError for non seekable files."""
1797
+ self._checkClosed()
1798
+ return os.lseek(self._fd, 0, SEEK_CUR)
1799
+
1800
+ def truncate(self, size=None):
1801
+ """Truncate the file to at most size bytes.
1802
+
1803
+ Size defaults to the current file position, as returned by tell().
1804
+ The current file position is changed to the value of size.
1805
+ """
1806
+ self._checkClosed()
1807
+ self._checkWritable()
1808
+ if size is None:
1809
+ size = self.tell()
1810
+ os.ftruncate(self._fd, size)
1811
+ self._stat_atopen = None
1812
+ return size
1813
+
1814
+ def close(self):
1815
+ """Close the file.
1816
+
1817
+ A closed file cannot be used for further I/O operations.
1818
+ close() may be called more than once without error.
1819
+ """
1820
+ if not self.closed:
1821
+ self._stat_atopen = None
1822
+ try:
1823
+ if self._closefd and self._fd >= 0:
1824
+ os.close(self._fd)
1825
+ finally:
1826
+ super().close()
1827
+
1828
+ def seekable(self):
1829
+ """True if file supports random-access."""
1830
+ self._checkClosed()
1831
+ if self._seekable is None:
1832
+ try:
1833
+ self.tell()
1834
+ except OSError:
1835
+ self._seekable = False
1836
+ else:
1837
+ self._seekable = True
1838
+ return self._seekable
1839
+
1840
+ def readable(self):
1841
+ """True if file was opened in a read mode."""
1842
+ self._checkClosed()
1843
+ return self._readable
1844
+
1845
+ def writable(self):
1846
+ """True if file was opened in a write mode."""
1847
+ self._checkClosed()
1848
+ return self._writable
1849
+
1850
+ def fileno(self):
1851
+ """Return the underlying file descriptor (an integer)."""
1852
+ self._checkClosed()
1853
+ return self._fd
1854
+
1855
+ def isatty(self):
1856
+ """True if the file is connected to a TTY device."""
1857
+ self._checkClosed()
1858
+ return os.isatty(self._fd)
1859
+
1860
+ def _isatty_open_only(self):
1861
+ """Checks whether the file is a TTY using an open-only optimization.
1862
+
1863
+ TTYs are always character devices. If the interpreter knows a file is
1864
+ not a character device when it would call ``isatty``, can skip that
1865
+ call. Inside ``open()`` there is a fresh stat result that contains that
1866
+ information. Use the stat result to skip a system call. Outside of that
1867
+ context TOCTOU issues (the fd could be arbitrarily modified by
1868
+ surrounding code).
1869
+ """
1870
+ if (self._stat_atopen is not None
1871
+ and not stat.S_ISCHR(self._stat_atopen.st_mode)):
1872
+ return False
1873
+ return os.isatty(self._fd)
1874
+
1875
+ @property
1876
+ def closefd(self):
1877
+ """True if the file descriptor will be closed by close()."""
1878
+ return self._closefd
1879
+
1880
+ @property
1881
+ def mode(self):
1882
+ """String giving the file mode"""
1883
+ if self._created:
1884
+ if self._readable:
1885
+ return 'xb+'
1886
+ else:
1887
+ return 'xb'
1888
+ elif self._appending:
1889
+ if self._readable:
1890
+ return 'ab+'
1891
+ else:
1892
+ return 'ab'
1893
+ elif self._readable:
1894
+ if self._writable:
1895
+ if self._truncate:
1896
+ return 'wb+'
1897
+ else:
1898
+ return 'rb+'
1899
+ else:
1900
+ return 'rb'
1901
+ else:
1902
+ return 'wb'
1903
+
1904
+
1905
+ class TextIOBase(IOBase):
1906
+
1907
+ """Base class for text I/O.
1908
+
1909
+ This class provides a character and line based interface to stream
1910
+ I/O.
1911
+ """
1912
+
1913
+ def read(self, size=-1):
1914
+ """Read at most size characters from stream, where size is an int.
1915
+
1916
+ Read from underlying buffer until we have size characters or we hit
1917
+ EOF. If size is negative or omitted, read until EOF.
1918
+
1919
+ Returns a string.
1920
+ """
1921
+ self._unsupported("read")
1922
+
1923
+ def write(self, s):
1924
+ """Write string s to stream and returning an int."""
1925
+ self._unsupported("write")
1926
+
1927
+ def truncate(self, pos=None):
1928
+ """Truncate size to pos, where pos is an int."""
1929
+ self._unsupported("truncate")
1930
+
1931
+ def readline(self, size=-1, /):
1932
+ """Read until newline or EOF.
1933
+
1934
+ Returns an empty string if EOF is hit immediately.
1935
+ """
1936
+ self._unsupported("readline")
1937
+
1938
+ def detach(self):
1939
+ """
1940
+ Separate the underlying buffer from the TextIOBase and return it.
1941
+
1942
+ After the underlying buffer has been detached, the TextIO is in an
1943
+ unusable state.
1944
+ """
1945
+ self._unsupported("detach")
1946
+
1947
+ @property
1948
+ def encoding(self):
1949
+ """Subclasses should override."""
1950
+ return None
1951
+
1952
+ @property
1953
+ def newlines(self):
1954
+ """Line endings translated so far.
1955
+
1956
+ Only line endings translated during reading are considered.
1957
+
1958
+ Subclasses should override.
1959
+ """
1960
+ return None
1961
+
1962
+ @property
1963
+ def errors(self):
1964
+ """Error setting of the decoder or encoder.
1965
+
1966
+ Subclasses should override."""
1967
+ return None
1968
+
1969
+ io.TextIOBase.register(TextIOBase)
1970
+
1971
+
1972
+ class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
1973
+ r"""Codec used when reading a file in universal newlines mode. It wraps
1974
+ another incremental decoder, translating \r\n and \r into \n. It also
1975
+ records the types of newlines encountered. When used with
1976
+ translate=False, it ensures that the newline sequence is returned in
1977
+ one piece.
1978
+ """
1979
+ def __init__(self, decoder, translate, errors='strict'):
1980
+ codecs.IncrementalDecoder.__init__(self, errors=errors)
1981
+ self.translate = translate
1982
+ self.decoder = decoder
1983
+ self.seennl = 0
1984
+ self.pendingcr = False
1985
+
1986
+ def decode(self, input, final=False):
1987
+ # decode input (with the eventual \r from a previous pass)
1988
+ if self.decoder is None:
1989
+ output = input
1990
+ else:
1991
+ output = self.decoder.decode(input, final=final)
1992
+ if self.pendingcr and (output or final):
1993
+ output = "\r" + output
1994
+ self.pendingcr = False
1995
+
1996
+ # retain last \r even when not translating data:
1997
+ # then readline() is sure to get \r\n in one pass
1998
+ if output.endswith("\r") and not final:
1999
+ output = output[:-1]
2000
+ self.pendingcr = True
2001
+
2002
+ # Record which newlines are read
2003
+ crlf = output.count('\r\n')
2004
+ cr = output.count('\r') - crlf
2005
+ lf = output.count('\n') - crlf
2006
+ self.seennl |= (lf and self._LF) | (cr and self._CR) \
2007
+ | (crlf and self._CRLF)
2008
+
2009
+ if self.translate:
2010
+ if crlf:
2011
+ output = output.replace("\r\n", "\n")
2012
+ if cr:
2013
+ output = output.replace("\r", "\n")
2014
+
2015
+ return output
2016
+
2017
+ def getstate(self):
2018
+ if self.decoder is None:
2019
+ buf = b""
2020
+ flag = 0
2021
+ else:
2022
+ buf, flag = self.decoder.getstate()
2023
+ flag <<= 1
2024
+ if self.pendingcr:
2025
+ flag |= 1
2026
+ return buf, flag
2027
+
2028
+ def setstate(self, state):
2029
+ buf, flag = state
2030
+ self.pendingcr = bool(flag & 1)
2031
+ if self.decoder is not None:
2032
+ self.decoder.setstate((buf, flag >> 1))
2033
+
2034
+ def reset(self):
2035
+ self.seennl = 0
2036
+ self.pendingcr = False
2037
+ if self.decoder is not None:
2038
+ self.decoder.reset()
2039
+
2040
+ _LF = 1
2041
+ _CR = 2
2042
+ _CRLF = 4
2043
+
2044
+ @property
2045
+ def newlines(self):
2046
+ return (None,
2047
+ "\n",
2048
+ "\r",
2049
+ ("\r", "\n"),
2050
+ "\r\n",
2051
+ ("\n", "\r\n"),
2052
+ ("\r", "\r\n"),
2053
+ ("\r", "\n", "\r\n")
2054
+ )[self.seennl]
2055
+
2056
+
2057
+ class TextIOWrapper(TextIOBase):
2058
+
2059
+ r"""Character and line based layer over a BufferedIOBase object, buffer.
2060
+
2061
+ encoding gives the name of the encoding that the stream will be
2062
+ decoded or encoded with. It defaults to locale.getencoding().
2063
+
2064
+ errors determines the strictness of encoding and decoding (see the
2065
+ codecs.register) and defaults to "strict".
2066
+
2067
+ newline can be None, '', '\n', '\r', or '\r\n'. It controls the
2068
+ handling of line endings. If it is None, universal newlines is
2069
+ enabled. With this enabled, on input, the lines endings '\n', '\r',
2070
+ or '\r\n' are translated to '\n' before being returned to the
2071
+ caller. Conversely, on output, '\n' is translated to the system
2072
+ default line separator, os.linesep. If newline is any other of its
2073
+ legal values, that newline becomes the newline when the file is read
2074
+ and it is returned untranslated. On output, '\n' is converted to the
2075
+ newline.
2076
+
2077
+ If line_buffering is True, a call to flush is implied when a call to
2078
+ write contains a newline character.
2079
+ """
2080
+
2081
+ _CHUNK_SIZE = 2048
2082
+
2083
+ # Initialize _buffer as soon as possible since it's used by __del__()
2084
+ # which calls close()
2085
+ _buffer = None
2086
+
2087
+ # The write_through argument has no effect here since this
2088
+ # implementation always writes through. The argument is present only
2089
+ # so that the signature can match the signature of the C version.
2090
+ def __init__(self, buffer, encoding=None, errors=None, newline=None,
2091
+ line_buffering=False, write_through=False):
2092
+ self._check_newline(newline)
2093
+ encoding = text_encoding(encoding)
2094
+
2095
+ if encoding == "locale":
2096
+ encoding = self._get_locale_encoding()
2097
+
2098
+ if not isinstance(encoding, str):
2099
+ raise ValueError("invalid encoding: %r" % encoding)
2100
+
2101
+ if not codecs.lookup(encoding)._is_text_encoding:
2102
+ msg = "%r is not a text encoding"
2103
+ raise LookupError(msg % encoding)
2104
+
2105
+ if errors is None:
2106
+ errors = "strict"
2107
+ else:
2108
+ if not isinstance(errors, str):
2109
+ raise ValueError("invalid errors: %r" % errors)
2110
+ if _CHECK_ERRORS:
2111
+ codecs.lookup_error(errors)
2112
+
2113
+ self._buffer = buffer
2114
+ self._decoded_chars = '' # buffer for text returned from decoder
2115
+ self._decoded_chars_used = 0 # offset into _decoded_chars for read()
2116
+ self._snapshot = None # info for reconstructing decoder state
2117
+ self._seekable = self._telling = self.buffer.seekable()
2118
+ self._has_read1 = hasattr(self.buffer, 'read1')
2119
+ self._configure(encoding, errors, newline,
2120
+ line_buffering, write_through)
2121
+
2122
+ def _check_newline(self, newline):
2123
+ if newline is not None and not isinstance(newline, str):
2124
+ raise TypeError("illegal newline type: %r" % (type(newline),))
2125
+ if newline not in (None, "", "\n", "\r", "\r\n"):
2126
+ raise ValueError("illegal newline value: %r" % (newline,))
2127
+
2128
+ def _configure(self, encoding=None, errors=None, newline=None,
2129
+ line_buffering=False, write_through=False):
2130
+ self._encoding = encoding
2131
+ self._errors = errors
2132
+ self._encoder = None
2133
+ self._decoder = None
2134
+ self._b2cratio = 0.0
2135
+
2136
+ self._readuniversal = not newline
2137
+ self._readtranslate = newline is None
2138
+ self._readnl = newline
2139
+ self._writetranslate = newline != ''
2140
+ self._writenl = newline or os.linesep
2141
+
2142
+ self._line_buffering = line_buffering
2143
+ self._write_through = write_through
2144
+
2145
+ # don't write a BOM in the middle of a file
2146
+ if self._seekable and self.writable():
2147
+ position = self.buffer.tell()
2148
+ if position != 0:
2149
+ try:
2150
+ self._get_encoder().setstate(0)
2151
+ except LookupError:
2152
+ # Sometimes the encoder doesn't exist
2153
+ pass
2154
+
2155
+ # self._snapshot is either None, or a tuple (dec_flags, next_input)
2156
+ # where dec_flags is the second (integer) item of the decoder state
2157
+ # and next_input is the chunk of input bytes that comes next after the
2158
+ # snapshot point. We use this to reconstruct decoder states in tell().
2159
+
2160
+ # Naming convention:
2161
+ # - "bytes_..." for integer variables that count input bytes
2162
+ # - "chars_..." for integer variables that count decoded characters
2163
+
2164
+ def __repr__(self):
2165
+ result = "<{}.{}".format(self.__class__.__module__,
2166
+ self.__class__.__qualname__)
2167
+ try:
2168
+ name = self.name
2169
+ except AttributeError:
2170
+ pass
2171
+ else:
2172
+ result += " name={0!r}".format(name)
2173
+ try:
2174
+ mode = self.mode
2175
+ except AttributeError:
2176
+ pass
2177
+ else:
2178
+ result += " mode={0!r}".format(mode)
2179
+ return result + " encoding={0!r}>".format(self.encoding)
2180
+
2181
+ @property
2182
+ def encoding(self):
2183
+ return self._encoding
2184
+
2185
+ @property
2186
+ def errors(self):
2187
+ return self._errors
2188
+
2189
+ @property
2190
+ def line_buffering(self):
2191
+ return self._line_buffering
2192
+
2193
+ @property
2194
+ def write_through(self):
2195
+ return self._write_through
2196
+
2197
+ @property
2198
+ def buffer(self):
2199
+ return self._buffer
2200
+
2201
+ def reconfigure(self, *,
2202
+ encoding=None, errors=None, newline=Ellipsis,
2203
+ line_buffering=None, write_through=None):
2204
+ """Reconfigure the text stream with new parameters.
2205
+
2206
+ This also flushes the stream.
2207
+ """
2208
+ if (self._decoder is not None
2209
+ and (encoding is not None or errors is not None
2210
+ or newline is not Ellipsis)):
2211
+ raise UnsupportedOperation(
2212
+ "It is not possible to set the encoding or newline of stream "
2213
+ "after the first read")
2214
+
2215
+ if errors is None:
2216
+ if encoding is None:
2217
+ errors = self._errors
2218
+ else:
2219
+ errors = 'strict'
2220
+ elif not isinstance(errors, str):
2221
+ raise TypeError("invalid errors: %r" % errors)
2222
+
2223
+ if encoding is None:
2224
+ encoding = self._encoding
2225
+ else:
2226
+ if not isinstance(encoding, str):
2227
+ raise TypeError("invalid encoding: %r" % encoding)
2228
+ if encoding == "locale":
2229
+ encoding = self._get_locale_encoding()
2230
+
2231
+ if newline is Ellipsis:
2232
+ newline = self._readnl
2233
+ self._check_newline(newline)
2234
+
2235
+ if line_buffering is None:
2236
+ line_buffering = self.line_buffering
2237
+ if write_through is None:
2238
+ write_through = self.write_through
2239
+
2240
+ self.flush()
2241
+ self._configure(encoding, errors, newline,
2242
+ line_buffering, write_through)
2243
+
2244
+ def seekable(self):
2245
+ if self.closed:
2246
+ raise ValueError("I/O operation on closed file.")
2247
+ return self._seekable
2248
+
2249
+ def readable(self):
2250
+ return self.buffer.readable()
2251
+
2252
+ def writable(self):
2253
+ return self.buffer.writable()
2254
+
2255
+ def flush(self):
2256
+ self.buffer.flush()
2257
+ self._telling = self._seekable
2258
+
2259
+ def close(self):
2260
+ if self.buffer is not None and not self.closed:
2261
+ try:
2262
+ self.flush()
2263
+ finally:
2264
+ self.buffer.close()
2265
+
2266
+ @property
2267
+ def closed(self):
2268
+ return self.buffer.closed
2269
+
2270
+ @property
2271
+ def name(self):
2272
+ return self.buffer.name
2273
+
2274
+ def fileno(self):
2275
+ return self.buffer.fileno()
2276
+
2277
+ def isatty(self):
2278
+ return self.buffer.isatty()
2279
+
2280
+ def write(self, s):
2281
+ 'Write data, where s is a str'
2282
+ if self.closed:
2283
+ raise ValueError("write to closed file")
2284
+ if not isinstance(s, str):
2285
+ raise TypeError("can't write %s to text stream" %
2286
+ s.__class__.__name__)
2287
+ length = len(s)
2288
+ haslf = (self._writetranslate or self._line_buffering) and "\n" in s
2289
+ if haslf and self._writetranslate and self._writenl != "\n":
2290
+ s = s.replace("\n", self._writenl)
2291
+ encoder = self._encoder or self._get_encoder()
2292
+ # XXX What if we were just reading?
2293
+ b = encoder.encode(s)
2294
+ self.buffer.write(b)
2295
+ if self._line_buffering and (haslf or "\r" in s):
2296
+ self.flush()
2297
+ if self._snapshot is not None:
2298
+ self._set_decoded_chars('')
2299
+ self._snapshot = None
2300
+ if self._decoder:
2301
+ self._decoder.reset()
2302
+ return length
2303
+
2304
+ def _get_encoder(self):
2305
+ make_encoder = codecs.getincrementalencoder(self._encoding)
2306
+ self._encoder = make_encoder(self._errors)
2307
+ return self._encoder
2308
+
2309
+ def _get_decoder(self):
2310
+ make_decoder = codecs.getincrementaldecoder(self._encoding)
2311
+ decoder = make_decoder(self._errors)
2312
+ if self._readuniversal:
2313
+ decoder = IncrementalNewlineDecoder(decoder, self._readtranslate)
2314
+ self._decoder = decoder
2315
+ return decoder
2316
+
2317
+ # The following three methods implement an ADT for _decoded_chars.
2318
+ # Text returned from the decoder is buffered here until the client
2319
+ # requests it by calling our read() or readline() method.
2320
+ def _set_decoded_chars(self, chars):
2321
+ """Set the _decoded_chars buffer."""
2322
+ self._decoded_chars = chars
2323
+ self._decoded_chars_used = 0
2324
+
2325
+ def _get_decoded_chars(self, n=None):
2326
+ """Advance into the _decoded_chars buffer."""
2327
+ offset = self._decoded_chars_used
2328
+ if n is None:
2329
+ chars = self._decoded_chars[offset:]
2330
+ else:
2331
+ chars = self._decoded_chars[offset:offset + n]
2332
+ self._decoded_chars_used += len(chars)
2333
+ return chars
2334
+
2335
+ def _get_locale_encoding(self):
2336
+ try:
2337
+ import locale
2338
+ except ImportError:
2339
+ # Importing locale may fail if Python is being built
2340
+ return "utf-8"
2341
+ else:
2342
+ return locale.getencoding()
2343
+
2344
+ def _rewind_decoded_chars(self, n):
2345
+ """Rewind the _decoded_chars buffer."""
2346
+ if self._decoded_chars_used < n:
2347
+ raise AssertionError("rewind decoded_chars out of bounds")
2348
+ self._decoded_chars_used -= n
2349
+
2350
+ def _read_chunk(self):
2351
+ """
2352
+ Read and decode the next chunk of data from the BufferedReader.
2353
+ """
2354
+
2355
+ # The return value is True unless EOF was reached. The decoded
2356
+ # string is placed in self._decoded_chars (replacing its previous
2357
+ # value). The entire input chunk is sent to the decoder, though
2358
+ # some of it may remain buffered in the decoder, yet to be
2359
+ # converted.
2360
+
2361
+ if self._decoder is None:
2362
+ raise ValueError("no decoder")
2363
+
2364
+ if self._telling:
2365
+ # To prepare for tell(), we need to snapshot a point in the
2366
+ # file where the decoder's input buffer is empty.
2367
+
2368
+ dec_buffer, dec_flags = self._decoder.getstate()
2369
+ # Given this, we know there was a valid snapshot point
2370
+ # len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
2371
+
2372
+ # Read a chunk, decode it, and put the result in self._decoded_chars.
2373
+ if self._has_read1:
2374
+ input_chunk = self.buffer.read1(self._CHUNK_SIZE)
2375
+ else:
2376
+ input_chunk = self.buffer.read(self._CHUNK_SIZE)
2377
+ eof = not input_chunk
2378
+ decoded_chars = self._decoder.decode(input_chunk, eof)
2379
+ self._set_decoded_chars(decoded_chars)
2380
+ if decoded_chars:
2381
+ self._b2cratio = len(input_chunk) / len(self._decoded_chars)
2382
+ else:
2383
+ self._b2cratio = 0.0
2384
+
2385
+ if self._telling:
2386
+ # At the snapshot point, len(dec_buffer) bytes before the read,
2387
+ # the next input to be decoded is dec_buffer + input_chunk.
2388
+ self._snapshot = (dec_flags, dec_buffer + input_chunk)
2389
+
2390
+ return not eof
2391
+
2392
+ def _pack_cookie(self, position, dec_flags=0,
2393
+ bytes_to_feed=0, need_eof=False, chars_to_skip=0):
2394
+ # The meaning of a tell() cookie is: seek to position, set the
2395
+ # decoder flags to dec_flags, read bytes_to_feed bytes, feed them
2396
+ # into the decoder with need_eof as the EOF flag, then skip
2397
+ # chars_to_skip characters of the decoded result. For most simple
2398
+ # decoders, tell() will often just give a byte offset in the file.
2399
+ return (position | (dec_flags<<64) | (bytes_to_feed<<128) |
2400
+ (chars_to_skip<<192) | bool(need_eof)<<256)
2401
+
2402
+ def _unpack_cookie(self, bigint):
2403
+ rest, position = divmod(bigint, 1<<64)
2404
+ rest, dec_flags = divmod(rest, 1<<64)
2405
+ rest, bytes_to_feed = divmod(rest, 1<<64)
2406
+ need_eof, chars_to_skip = divmod(rest, 1<<64)
2407
+ return position, dec_flags, bytes_to_feed, bool(need_eof), chars_to_skip
2408
+
2409
+ def tell(self):
2410
+ if not self._seekable:
2411
+ raise UnsupportedOperation("underlying stream is not seekable")
2412
+ if not self._telling:
2413
+ raise OSError("telling position disabled by next() call")
2414
+ self.flush()
2415
+ position = self.buffer.tell()
2416
+ decoder = self._decoder
2417
+ if decoder is None or self._snapshot is None:
2418
+ if self._decoded_chars:
2419
+ # This should never happen.
2420
+ raise AssertionError("pending decoded text")
2421
+ return position
2422
+
2423
+ # Skip backward to the snapshot point (see _read_chunk).
2424
+ dec_flags, next_input = self._snapshot
2425
+ position -= len(next_input)
2426
+
2427
+ # How many decoded characters have been used up since the snapshot?
2428
+ chars_to_skip = self._decoded_chars_used
2429
+ if chars_to_skip == 0:
2430
+ # We haven't moved from the snapshot point.
2431
+ return self._pack_cookie(position, dec_flags)
2432
+
2433
+ # Starting from the snapshot position, we will walk the decoder
2434
+ # forward until it gives us enough decoded characters.
2435
+ saved_state = decoder.getstate()
2436
+ try:
2437
+ # Fast search for an acceptable start point, close to our
2438
+ # current pos.
2439
+ # Rationale: calling decoder.decode() has a large overhead
2440
+ # regardless of chunk size; we want the number of such calls to
2441
+ # be O(1) in most situations (common decoders, sensible input).
2442
+ # Actually, it will be exactly 1 for fixed-size codecs (all
2443
+ # 8-bit codecs, also UTF-16 and UTF-32).
2444
+ skip_bytes = int(self._b2cratio * chars_to_skip)
2445
+ skip_back = 1
2446
+ assert skip_bytes <= len(next_input)
2447
+ while skip_bytes > 0:
2448
+ decoder.setstate((b'', dec_flags))
2449
+ # Decode up to temptative start point
2450
+ n = len(decoder.decode(next_input[:skip_bytes]))
2451
+ if n <= chars_to_skip:
2452
+ b, d = decoder.getstate()
2453
+ if not b:
2454
+ # Before pos and no bytes buffered in decoder => OK
2455
+ dec_flags = d
2456
+ chars_to_skip -= n
2457
+ break
2458
+ # Skip back by buffered amount and reset heuristic
2459
+ skip_bytes -= len(b)
2460
+ skip_back = 1
2461
+ else:
2462
+ # We're too far ahead, skip back a bit
2463
+ skip_bytes -= skip_back
2464
+ skip_back = skip_back * 2
2465
+ else:
2466
+ skip_bytes = 0
2467
+ decoder.setstate((b'', dec_flags))
2468
+
2469
+ # Note our initial start point.
2470
+ start_pos = position + skip_bytes
2471
+ start_flags = dec_flags
2472
+ if chars_to_skip == 0:
2473
+ # We haven't moved from the start point.
2474
+ return self._pack_cookie(start_pos, start_flags)
2475
+
2476
+ # Feed the decoder one byte at a time. As we go, note the
2477
+ # nearest "safe start point" before the current location
2478
+ # (a point where the decoder has nothing buffered, so seek()
2479
+ # can safely start from there and advance to this location).
2480
+ bytes_fed = 0
2481
+ need_eof = False
2482
+ # Chars decoded since `start_pos`
2483
+ chars_decoded = 0
2484
+ for i in range(skip_bytes, len(next_input)):
2485
+ bytes_fed += 1
2486
+ chars_decoded += len(decoder.decode(next_input[i:i+1]))
2487
+ dec_buffer, dec_flags = decoder.getstate()
2488
+ if not dec_buffer and chars_decoded <= chars_to_skip:
2489
+ # Decoder buffer is empty, so this is a safe start point.
2490
+ start_pos += bytes_fed
2491
+ chars_to_skip -= chars_decoded
2492
+ start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
2493
+ if chars_decoded >= chars_to_skip:
2494
+ break
2495
+ else:
2496
+ # We didn't get enough decoded data; signal EOF to get more.
2497
+ chars_decoded += len(decoder.decode(b'', final=True))
2498
+ need_eof = True
2499
+ if chars_decoded < chars_to_skip:
2500
+ raise OSError("can't reconstruct logical file position")
2501
+
2502
+ # The returned cookie corresponds to the last safe start point.
2503
+ return self._pack_cookie(
2504
+ start_pos, start_flags, bytes_fed, need_eof, chars_to_skip)
2505
+ finally:
2506
+ decoder.setstate(saved_state)
2507
+
2508
+ def truncate(self, pos=None):
2509
+ self.flush()
2510
+ if pos is None:
2511
+ pos = self.tell()
2512
+ return self.buffer.truncate(pos)
2513
+
2514
+ def detach(self):
2515
+ if self.buffer is None:
2516
+ raise ValueError("buffer is already detached")
2517
+ self.flush()
2518
+ buffer = self._buffer
2519
+ self._buffer = None
2520
+ return buffer
2521
+
2522
+ def seek(self, cookie, whence=0):
2523
+ def _reset_encoder(position):
2524
+ """Reset the encoder (merely useful for proper BOM handling)"""
2525
+ try:
2526
+ encoder = self._encoder or self._get_encoder()
2527
+ except LookupError:
2528
+ # Sometimes the encoder doesn't exist
2529
+ pass
2530
+ else:
2531
+ if position != 0:
2532
+ encoder.setstate(0)
2533
+ else:
2534
+ encoder.reset()
2535
+
2536
+ if self.closed:
2537
+ raise ValueError("tell on closed file")
2538
+ if not self._seekable:
2539
+ raise UnsupportedOperation("underlying stream is not seekable")
2540
+ if whence == SEEK_CUR:
2541
+ if cookie != 0:
2542
+ raise UnsupportedOperation("can't do nonzero cur-relative seeks")
2543
+ # Seeking to the current position should attempt to
2544
+ # sync the underlying buffer with the current position.
2545
+ whence = 0
2546
+ cookie = self.tell()
2547
+ elif whence == SEEK_END:
2548
+ if cookie != 0:
2549
+ raise UnsupportedOperation("can't do nonzero end-relative seeks")
2550
+ self.flush()
2551
+ position = self.buffer.seek(0, whence)
2552
+ self._set_decoded_chars('')
2553
+ self._snapshot = None
2554
+ if self._decoder:
2555
+ self._decoder.reset()
2556
+ _reset_encoder(position)
2557
+ return position
2558
+ if whence != 0:
2559
+ raise ValueError("unsupported whence (%r)" % (whence,))
2560
+ if cookie < 0:
2561
+ raise ValueError("negative seek position %r" % (cookie,))
2562
+ self.flush()
2563
+
2564
+ # The strategy of seek() is to go back to the safe start point
2565
+ # and replay the effect of read(chars_to_skip) from there.
2566
+ start_pos, dec_flags, bytes_to_feed, need_eof, chars_to_skip = \
2567
+ self._unpack_cookie(cookie)
2568
+
2569
+ # Seek back to the safe start point.
2570
+ self.buffer.seek(start_pos)
2571
+ self._set_decoded_chars('')
2572
+ self._snapshot = None
2573
+
2574
+ # Restore the decoder to its state from the safe start point.
2575
+ if cookie == 0 and self._decoder:
2576
+ self._decoder.reset()
2577
+ elif self._decoder or dec_flags or chars_to_skip:
2578
+ self._decoder = self._decoder or self._get_decoder()
2579
+ self._decoder.setstate((b'', dec_flags))
2580
+ self._snapshot = (dec_flags, b'')
2581
+
2582
+ if chars_to_skip:
2583
+ # Just like _read_chunk, feed the decoder and save a snapshot.
2584
+ input_chunk = self.buffer.read(bytes_to_feed)
2585
+ self._set_decoded_chars(
2586
+ self._decoder.decode(input_chunk, need_eof))
2587
+ self._snapshot = (dec_flags, input_chunk)
2588
+
2589
+ # Skip chars_to_skip of the decoded characters.
2590
+ if len(self._decoded_chars) < chars_to_skip:
2591
+ raise OSError("can't restore logical file position")
2592
+ self._decoded_chars_used = chars_to_skip
2593
+
2594
+ _reset_encoder(cookie)
2595
+ return cookie
2596
+
2597
+ def read(self, size=None):
2598
+ self._checkReadable()
2599
+ if size is None:
2600
+ size = -1
2601
+ else:
2602
+ try:
2603
+ size_index = size.__index__
2604
+ except AttributeError:
2605
+ raise TypeError(f"{size!r} is not an integer")
2606
+ else:
2607
+ size = size_index()
2608
+ decoder = self._decoder or self._get_decoder()
2609
+ if size < 0:
2610
+ chunk = self.buffer.read()
2611
+ if chunk is None:
2612
+ raise BlockingIOError("Read returned None.")
2613
+ # Read everything.
2614
+ result = (self._get_decoded_chars() +
2615
+ decoder.decode(chunk, final=True))
2616
+ if self._snapshot is not None:
2617
+ self._set_decoded_chars('')
2618
+ self._snapshot = None
2619
+ return result
2620
+ else:
2621
+ # Keep reading chunks until we have size characters to return.
2622
+ eof = False
2623
+ result = self._get_decoded_chars(size)
2624
+ while len(result) < size and not eof:
2625
+ eof = not self._read_chunk()
2626
+ result += self._get_decoded_chars(size - len(result))
2627
+ return result
2628
+
2629
+ def __next__(self):
2630
+ self._telling = False
2631
+ line = self.readline()
2632
+ if not line:
2633
+ self._snapshot = None
2634
+ self._telling = self._seekable
2635
+ raise StopIteration
2636
+ return line
2637
+
2638
+ def readline(self, size=None):
2639
+ if self.closed:
2640
+ raise ValueError("read from closed file")
2641
+ if size is None:
2642
+ size = -1
2643
+ else:
2644
+ try:
2645
+ size_index = size.__index__
2646
+ except AttributeError:
2647
+ raise TypeError(f"{size!r} is not an integer")
2648
+ else:
2649
+ size = size_index()
2650
+
2651
+ # Grab all the decoded text (we will rewind any extra bits later).
2652
+ line = self._get_decoded_chars()
2653
+
2654
+ start = 0
2655
+ # Make the decoder if it doesn't already exist.
2656
+ if not self._decoder:
2657
+ self._get_decoder()
2658
+
2659
+ pos = endpos = None
2660
+ while True:
2661
+ if self._readtranslate:
2662
+ # Newlines are already translated, only search for \n
2663
+ pos = line.find('\n', start)
2664
+ if pos >= 0:
2665
+ endpos = pos + 1
2666
+ break
2667
+ else:
2668
+ start = len(line)
2669
+
2670
+ elif self._readuniversal:
2671
+ # Universal newline search. Find any of \r, \r\n, \n
2672
+ # The decoder ensures that \r\n are not split in two pieces
2673
+
2674
+ # In C we'd look for these in parallel of course.
2675
+ nlpos = line.find("\n", start)
2676
+ crpos = line.find("\r", start)
2677
+ if crpos == -1:
2678
+ if nlpos == -1:
2679
+ # Nothing found
2680
+ start = len(line)
2681
+ else:
2682
+ # Found \n
2683
+ endpos = nlpos + 1
2684
+ break
2685
+ elif nlpos == -1:
2686
+ # Found lone \r
2687
+ endpos = crpos + 1
2688
+ break
2689
+ elif nlpos < crpos:
2690
+ # Found \n
2691
+ endpos = nlpos + 1
2692
+ break
2693
+ elif nlpos == crpos + 1:
2694
+ # Found \r\n
2695
+ endpos = crpos + 2
2696
+ break
2697
+ else:
2698
+ # Found \r
2699
+ endpos = crpos + 1
2700
+ break
2701
+ else:
2702
+ # non-universal
2703
+ pos = line.find(self._readnl)
2704
+ if pos >= 0:
2705
+ endpos = pos + len(self._readnl)
2706
+ break
2707
+
2708
+ if size >= 0 and len(line) >= size:
2709
+ endpos = size # reached length size
2710
+ break
2711
+
2712
+ # No line ending seen yet - get more data'
2713
+ while self._read_chunk():
2714
+ if self._decoded_chars:
2715
+ break
2716
+ if self._decoded_chars:
2717
+ line += self._get_decoded_chars()
2718
+ else:
2719
+ # end of file
2720
+ self._set_decoded_chars('')
2721
+ self._snapshot = None
2722
+ return line
2723
+
2724
+ if size >= 0 and endpos > size:
2725
+ endpos = size # don't exceed size
2726
+
2727
+ # Rewind _decoded_chars to just after the line ending we found.
2728
+ self._rewind_decoded_chars(len(line) - endpos)
2729
+ return line[:endpos]
2730
+
2731
+ @property
2732
+ def newlines(self):
2733
+ return self._decoder.newlines if self._decoder else None
2734
+
2735
+ def _dealloc_warn(self, source):
2736
+ if dealloc_warn := getattr(self.buffer, "_dealloc_warn", None):
2737
+ dealloc_warn(source)
2738
+
2739
+
2740
+ class StringIO(TextIOWrapper):
2741
+ """Text I/O implementation using an in-memory buffer.
2742
+
2743
+ The initial_value argument sets the value of object. The newline
2744
+ argument is like the one of TextIOWrapper's constructor.
2745
+ """
2746
+
2747
+ def __init__(self, initial_value="", newline="\n"):
2748
+ super(StringIO, self).__init__(BytesIO(),
2749
+ encoding="utf-8",
2750
+ errors="surrogatepass",
2751
+ newline=newline)
2752
+ # Issue #5645: make universal newlines semantics the same as in the
2753
+ # C version, even under Windows.
2754
+ if newline is None:
2755
+ self._writetranslate = False
2756
+ if initial_value is not None:
2757
+ if not isinstance(initial_value, str):
2758
+ raise TypeError("initial_value must be str or None, not {0}"
2759
+ .format(type(initial_value).__name__))
2760
+ self.write(initial_value)
2761
+ self.seek(0)
2762
+
2763
+ def getvalue(self):
2764
+ self.flush()
2765
+ decoder = self._decoder or self._get_decoder()
2766
+ old_state = decoder.getstate()
2767
+ decoder.reset()
2768
+ try:
2769
+ return decoder.decode(self.buffer.getvalue(), final=True)
2770
+ finally:
2771
+ decoder.setstate(old_state)
2772
+
2773
+ def __repr__(self):
2774
+ # TextIOWrapper tells the encoding in its repr. In StringIO,
2775
+ # that's an implementation detail.
2776
+ return object.__repr__(self)
2777
+
2778
+ @property
2779
+ def errors(self):
2780
+ return None
2781
+
2782
+ @property
2783
+ def encoding(self):
2784
+ return None
2785
+
2786
+ def detach(self):
2787
+ # This doesn't make sense on StringIO.
2788
+ self._unsupported("detach")