@djlint/linux-arm64-musl 0.0.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +675 -0
- package/README.md +3 -1
- package/package.json +20 -3
- package/python/bin/python3 +0 -0
- package/python/lib/python3.14/LICENSE.txt +277 -0
- package/python/lib/python3.14/__future__.py +147 -0
- package/python/lib/python3.14/__hello__.py +16 -0
- package/python/lib/python3.14/__phello__/__init__.py +7 -0
- package/python/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__phello__/spam.py +7 -0
- package/python/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_sysconfigdata__linux_aarch64-linux-musl.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
- package/python/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_aix_support.py +108 -0
- package/python/lib/python3.14/_android_support.py +192 -0
- package/python/lib/python3.14/_apple_support.py +66 -0
- package/python/lib/python3.14/_ast_unparse.py +1161 -0
- package/python/lib/python3.14/_collections_abc.py +1172 -0
- package/python/lib/python3.14/_colorize.py +355 -0
- package/python/lib/python3.14/_compat_pickle.py +251 -0
- package/python/lib/python3.14/_ios_support.py +74 -0
- package/python/lib/python3.14/_markupbase.py +396 -0
- package/python/lib/python3.14/_opcode_metadata.py +371 -0
- package/python/lib/python3.14/_osx_support.py +579 -0
- package/python/lib/python3.14/_py_abc.py +152 -0
- package/python/lib/python3.14/_py_warnings.py +869 -0
- package/python/lib/python3.14/_pydatetime.py +2734 -0
- package/python/lib/python3.14/_pydecimal.py +6503 -0
- package/python/lib/python3.14/_pyio.py +2764 -0
- package/python/lib/python3.14/_pylong.py +729 -0
- package/python/lib/python3.14/_pyrepl/__init__.py +19 -0
- package/python/lib/python3.14/_pyrepl/__main__.py +10 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
- package/python/lib/python3.14/_pyrepl/_module_completer.py +426 -0
- package/python/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
- package/python/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
- package/python/lib/python3.14/_pyrepl/commands.py +505 -0
- package/python/lib/python3.14/_pyrepl/completing_reader.py +299 -0
- package/python/lib/python3.14/_pyrepl/console.py +229 -0
- package/python/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
- package/python/lib/python3.14/_pyrepl/historical_reader.py +424 -0
- package/python/lib/python3.14/_pyrepl/input.py +114 -0
- package/python/lib/python3.14/_pyrepl/keymap.py +213 -0
- package/python/lib/python3.14/_pyrepl/main.py +58 -0
- package/python/lib/python3.14/_pyrepl/mypy.ini +25 -0
- package/python/lib/python3.14/_pyrepl/pager.py +175 -0
- package/python/lib/python3.14/_pyrepl/reader.py +773 -0
- package/python/lib/python3.14/_pyrepl/readline.py +621 -0
- package/python/lib/python3.14/_pyrepl/simple_interact.py +186 -0
- package/python/lib/python3.14/_pyrepl/terminfo.py +488 -0
- package/python/lib/python3.14/_pyrepl/trace.py +34 -0
- package/python/lib/python3.14/_pyrepl/types.py +10 -0
- package/python/lib/python3.14/_pyrepl/unix_console.py +860 -0
- package/python/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
- package/python/lib/python3.14/_pyrepl/utils.py +391 -0
- package/python/lib/python3.14/_pyrepl/windows_console.py +735 -0
- package/python/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
- package/python/lib/python3.14/_sitebuiltins.py +91 -0
- package/python/lib/python3.14/_strptime.py +822 -0
- package/python/lib/python3.14/_sysconfig_vars__linux_aarch64-linux-musl.json +1166 -0
- package/python/lib/python3.14/_sysconfigdata__linux_aarch64-linux-musl.py +1152 -0
- package/python/lib/python3.14/_threading_local.py +120 -0
- package/python/lib/python3.14/_weakrefset.py +147 -0
- package/python/lib/python3.14/abc.py +188 -0
- package/python/lib/python3.14/annotationlib.py +1205 -0
- package/python/lib/python3.14/antigravity.py +17 -0
- package/python/lib/python3.14/argparse.py +2789 -0
- package/python/lib/python3.14/ast.py +680 -0
- package/python/lib/python3.14/asyncio/__init__.py +74 -0
- package/python/lib/python3.14/asyncio/__main__.py +248 -0
- package/python/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/asyncio/base_events.py +2089 -0
- package/python/lib/python3.14/asyncio/base_futures.py +67 -0
- package/python/lib/python3.14/asyncio/base_subprocess.py +327 -0
- package/python/lib/python3.14/asyncio/base_tasks.py +94 -0
- package/python/lib/python3.14/asyncio/constants.py +41 -0
- package/python/lib/python3.14/asyncio/coroutines.py +118 -0
- package/python/lib/python3.14/asyncio/events.py +881 -0
- package/python/lib/python3.14/asyncio/exceptions.py +62 -0
- package/python/lib/python3.14/asyncio/format_helpers.py +84 -0
- package/python/lib/python3.14/asyncio/futures.py +481 -0
- package/python/lib/python3.14/asyncio/graph.py +279 -0
- package/python/lib/python3.14/asyncio/locks.py +617 -0
- package/python/lib/python3.14/asyncio/log.py +7 -0
- package/python/lib/python3.14/asyncio/mixins.py +21 -0
- package/python/lib/python3.14/asyncio/proactor_events.py +923 -0
- package/python/lib/python3.14/asyncio/protocols.py +216 -0
- package/python/lib/python3.14/asyncio/queues.py +309 -0
- package/python/lib/python3.14/asyncio/runners.py +226 -0
- package/python/lib/python3.14/asyncio/selector_events.py +1337 -0
- package/python/lib/python3.14/asyncio/sslproto.py +937 -0
- package/python/lib/python3.14/asyncio/staggered.py +179 -0
- package/python/lib/python3.14/asyncio/streams.py +804 -0
- package/python/lib/python3.14/asyncio/subprocess.py +229 -0
- package/python/lib/python3.14/asyncio/taskgroups.py +280 -0
- package/python/lib/python3.14/asyncio/tasks.py +1145 -0
- package/python/lib/python3.14/asyncio/threads.py +26 -0
- package/python/lib/python3.14/asyncio/timeouts.py +183 -0
- package/python/lib/python3.14/asyncio/tools.py +278 -0
- package/python/lib/python3.14/asyncio/transports.py +337 -0
- package/python/lib/python3.14/asyncio/trsock.py +98 -0
- package/python/lib/python3.14/asyncio/unix_events.py +1031 -0
- package/python/lib/python3.14/asyncio/windows_events.py +906 -0
- package/python/lib/python3.14/asyncio/windows_utils.py +181 -0
- package/python/lib/python3.14/base64.py +625 -0
- package/python/lib/python3.14/bdb.py +1214 -0
- package/python/lib/python3.14/bisect.py +118 -0
- package/python/lib/python3.14/build-details.json +58 -0
- package/python/lib/python3.14/bz2.py +352 -0
- package/python/lib/python3.14/cProfile.py +207 -0
- package/python/lib/python3.14/calendar.py +926 -0
- package/python/lib/python3.14/cmd.py +414 -0
- package/python/lib/python3.14/code.py +396 -0
- package/python/lib/python3.14/codecs.py +1125 -0
- package/python/lib/python3.14/codeop.py +154 -0
- package/python/lib/python3.14/collections/__init__.py +1612 -0
- package/python/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/colorsys.py +166 -0
- package/python/lib/python3.14/compileall.py +472 -0
- package/python/lib/python3.14/compression/__init__.py +0 -0
- package/python/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/_common/__init__.py +0 -0
- package/python/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/_common/_streams.py +162 -0
- package/python/lib/python3.14/compression/bz2.py +5 -0
- package/python/lib/python3.14/compression/gzip.py +5 -0
- package/python/lib/python3.14/compression/lzma.py +5 -0
- package/python/lib/python3.14/compression/zlib.py +5 -0
- package/python/lib/python3.14/compression/zstd/__init__.py +244 -0
- package/python/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
- package/python/lib/python3.14/compression/zstd/_zstdfile.py +347 -0
- package/python/lib/python3.14/concurrent/__init__.py +1 -0
- package/python/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/__init__.py +65 -0
- package/python/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/futures/_base.py +680 -0
- package/python/lib/python3.14/concurrent/futures/interpreter.py +123 -0
- package/python/lib/python3.14/concurrent/futures/process.py +1047 -0
- package/python/lib/python3.14/concurrent/futures/thread.py +274 -0
- package/python/lib/python3.14/concurrent/interpreters/__init__.py +253 -0
- package/python/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
- package/python/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
- package/python/lib/python3.14/concurrent/interpreters/_queues.py +290 -0
- package/python/lib/python3.14/configparser.py +1426 -0
- package/python/lib/python3.14/contextlib.py +814 -0
- package/python/lib/python3.14/contextvars.py +8 -0
- package/python/lib/python3.14/copy.py +286 -0
- package/python/lib/python3.14/copyreg.py +222 -0
- package/python/lib/python3.14/csv.py +527 -0
- package/python/lib/python3.14/ctypes/__init__.py +686 -0
- package/python/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/_aix.py +327 -0
- package/python/lib/python3.14/ctypes/_endian.py +78 -0
- package/python/lib/python3.14/ctypes/_layout.py +330 -0
- package/python/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
- package/python/lib/python3.14/ctypes/macholib/__init__.py +9 -0
- package/python/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
- package/python/lib/python3.14/ctypes/macholib/dyld.py +165 -0
- package/python/lib/python3.14/ctypes/macholib/dylib.py +42 -0
- package/python/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
- package/python/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
- package/python/lib/python3.14/ctypes/macholib/framework.py +42 -0
- package/python/lib/python3.14/ctypes/util.py +502 -0
- package/python/lib/python3.14/ctypes/wintypes.py +210 -0
- package/python/lib/python3.14/curses/__init__.py +101 -0
- package/python/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
- package/python/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
- package/python/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
- package/python/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
- package/python/lib/python3.14/curses/ascii.py +99 -0
- package/python/lib/python3.14/curses/has_key.py +192 -0
- package/python/lib/python3.14/curses/panel.py +6 -0
- package/python/lib/python3.14/curses/textpad.py +236 -0
- package/python/lib/python3.14/dataclasses.py +1813 -0
- package/python/lib/python3.14/datetime.py +13 -0
- package/python/lib/python3.14/dbm/__init__.py +194 -0
- package/python/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
- package/python/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
- package/python/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
- package/python/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
- package/python/lib/python3.14/dbm/dumb.py +319 -0
- package/python/lib/python3.14/dbm/gnu.py +3 -0
- package/python/lib/python3.14/dbm/ndbm.py +3 -0
- package/python/lib/python3.14/dbm/sqlite3.py +144 -0
- package/python/lib/python3.14/decimal.py +109 -0
- package/python/lib/python3.14/difflib.py +2066 -0
- package/python/lib/python3.14/dis.py +1157 -0
- package/python/lib/python3.14/doctest.py +2922 -0
- package/python/lib/python3.14/email/__init__.py +61 -0
- package/python/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/_encoded_words.py +233 -0
- package/python/lib/python3.14/email/_header_value_parser.py +3164 -0
- package/python/lib/python3.14/email/_parseaddr.py +563 -0
- package/python/lib/python3.14/email/_policybase.py +392 -0
- package/python/lib/python3.14/email/architecture.rst +216 -0
- package/python/lib/python3.14/email/base64mime.py +115 -0
- package/python/lib/python3.14/email/charset.py +396 -0
- package/python/lib/python3.14/email/contentmanager.py +254 -0
- package/python/lib/python3.14/email/encoders.py +65 -0
- package/python/lib/python3.14/email/errors.py +117 -0
- package/python/lib/python3.14/email/feedparser.py +536 -0
- package/python/lib/python3.14/email/generator.py +530 -0
- package/python/lib/python3.14/email/header.py +582 -0
- package/python/lib/python3.14/email/headerregistry.py +618 -0
- package/python/lib/python3.14/email/iterators.py +68 -0
- package/python/lib/python3.14/email/message.py +1217 -0
- package/python/lib/python3.14/email/mime/__init__.py +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
- package/python/lib/python3.14/email/mime/application.py +37 -0
- package/python/lib/python3.14/email/mime/audio.py +97 -0
- package/python/lib/python3.14/email/mime/base.py +29 -0
- package/python/lib/python3.14/email/mime/image.py +152 -0
- package/python/lib/python3.14/email/mime/message.py +33 -0
- package/python/lib/python3.14/email/mime/multipart.py +47 -0
- package/python/lib/python3.14/email/mime/nonmultipart.py +21 -0
- package/python/lib/python3.14/email/mime/text.py +40 -0
- package/python/lib/python3.14/email/parser.py +127 -0
- package/python/lib/python3.14/email/policy.py +239 -0
- package/python/lib/python3.14/email/quoprimime.py +300 -0
- package/python/lib/python3.14/email/utils.py +489 -0
- package/python/lib/python3.14/encodings/__init__.py +182 -0
- package/python/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
- package/python/lib/python3.14/encodings/aliases.py +568 -0
- package/python/lib/python3.14/encodings/ascii.py +50 -0
- package/python/lib/python3.14/encodings/base64_codec.py +55 -0
- package/python/lib/python3.14/encodings/big5.py +39 -0
- package/python/lib/python3.14/encodings/big5hkscs.py +39 -0
- package/python/lib/python3.14/encodings/bz2_codec.py +78 -0
- package/python/lib/python3.14/encodings/charmap.py +69 -0
- package/python/lib/python3.14/encodings/cp037.py +307 -0
- package/python/lib/python3.14/encodings/cp1006.py +307 -0
- package/python/lib/python3.14/encodings/cp1026.py +307 -0
- package/python/lib/python3.14/encodings/cp1125.py +698 -0
- package/python/lib/python3.14/encodings/cp1140.py +307 -0
- package/python/lib/python3.14/encodings/cp1250.py +307 -0
- package/python/lib/python3.14/encodings/cp1251.py +307 -0
- package/python/lib/python3.14/encodings/cp1252.py +307 -0
- package/python/lib/python3.14/encodings/cp1253.py +307 -0
- package/python/lib/python3.14/encodings/cp1254.py +307 -0
- package/python/lib/python3.14/encodings/cp1255.py +307 -0
- package/python/lib/python3.14/encodings/cp1256.py +307 -0
- package/python/lib/python3.14/encodings/cp1257.py +307 -0
- package/python/lib/python3.14/encodings/cp1258.py +307 -0
- package/python/lib/python3.14/encodings/cp273.py +307 -0
- package/python/lib/python3.14/encodings/cp424.py +307 -0
- package/python/lib/python3.14/encodings/cp437.py +698 -0
- package/python/lib/python3.14/encodings/cp500.py +307 -0
- package/python/lib/python3.14/encodings/cp720.py +309 -0
- package/python/lib/python3.14/encodings/cp737.py +698 -0
- package/python/lib/python3.14/encodings/cp775.py +697 -0
- package/python/lib/python3.14/encodings/cp850.py +698 -0
- package/python/lib/python3.14/encodings/cp852.py +698 -0
- package/python/lib/python3.14/encodings/cp855.py +698 -0
- package/python/lib/python3.14/encodings/cp856.py +307 -0
- package/python/lib/python3.14/encodings/cp857.py +694 -0
- package/python/lib/python3.14/encodings/cp858.py +698 -0
- package/python/lib/python3.14/encodings/cp860.py +698 -0
- package/python/lib/python3.14/encodings/cp861.py +698 -0
- package/python/lib/python3.14/encodings/cp862.py +698 -0
- package/python/lib/python3.14/encodings/cp863.py +698 -0
- package/python/lib/python3.14/encodings/cp864.py +690 -0
- package/python/lib/python3.14/encodings/cp865.py +698 -0
- package/python/lib/python3.14/encodings/cp866.py +698 -0
- package/python/lib/python3.14/encodings/cp869.py +689 -0
- package/python/lib/python3.14/encodings/cp874.py +307 -0
- package/python/lib/python3.14/encodings/cp875.py +307 -0
- package/python/lib/python3.14/encodings/cp932.py +39 -0
- package/python/lib/python3.14/encodings/cp949.py +39 -0
- package/python/lib/python3.14/encodings/cp950.py +39 -0
- package/python/lib/python3.14/encodings/euc_jis_2004.py +39 -0
- package/python/lib/python3.14/encodings/euc_jisx0213.py +39 -0
- package/python/lib/python3.14/encodings/euc_jp.py +39 -0
- package/python/lib/python3.14/encodings/euc_kr.py +39 -0
- package/python/lib/python3.14/encodings/gb18030.py +39 -0
- package/python/lib/python3.14/encodings/gb2312.py +39 -0
- package/python/lib/python3.14/encodings/gbk.py +39 -0
- package/python/lib/python3.14/encodings/hex_codec.py +55 -0
- package/python/lib/python3.14/encodings/hp_roman8.py +314 -0
- package/python/lib/python3.14/encodings/hz.py +39 -0
- package/python/lib/python3.14/encodings/idna.py +387 -0
- package/python/lib/python3.14/encodings/iso2022_jp.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
- package/python/lib/python3.14/encodings/iso2022_kr.py +39 -0
- package/python/lib/python3.14/encodings/iso8859_1.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_10.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_11.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_13.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_14.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_15.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_16.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_2.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_3.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_4.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_5.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_6.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_7.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_8.py +307 -0
- package/python/lib/python3.14/encodings/iso8859_9.py +307 -0
- package/python/lib/python3.14/encodings/johab.py +39 -0
- package/python/lib/python3.14/encodings/koi8_r.py +307 -0
- package/python/lib/python3.14/encodings/koi8_t.py +308 -0
- package/python/lib/python3.14/encodings/koi8_u.py +307 -0
- package/python/lib/python3.14/encodings/kz1048.py +307 -0
- package/python/lib/python3.14/encodings/latin_1.py +50 -0
- package/python/lib/python3.14/encodings/mac_arabic.py +698 -0
- package/python/lib/python3.14/encodings/mac_croatian.py +307 -0
- package/python/lib/python3.14/encodings/mac_cyrillic.py +307 -0
- package/python/lib/python3.14/encodings/mac_farsi.py +307 -0
- package/python/lib/python3.14/encodings/mac_greek.py +307 -0
- package/python/lib/python3.14/encodings/mac_iceland.py +307 -0
- package/python/lib/python3.14/encodings/mac_latin2.py +312 -0
- package/python/lib/python3.14/encodings/mac_roman.py +307 -0
- package/python/lib/python3.14/encodings/mac_romanian.py +307 -0
- package/python/lib/python3.14/encodings/mac_turkish.py +307 -0
- package/python/lib/python3.14/encodings/mbcs.py +47 -0
- package/python/lib/python3.14/encodings/oem.py +41 -0
- package/python/lib/python3.14/encodings/palmos.py +308 -0
- package/python/lib/python3.14/encodings/ptcp154.py +312 -0
- package/python/lib/python3.14/encodings/punycode.py +253 -0
- package/python/lib/python3.14/encodings/quopri_codec.py +56 -0
- package/python/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
- package/python/lib/python3.14/encodings/rot_13.py +113 -0
- package/python/lib/python3.14/encodings/shift_jis.py +39 -0
- package/python/lib/python3.14/encodings/shift_jis_2004.py +39 -0
- package/python/lib/python3.14/encodings/shift_jisx0213.py +39 -0
- package/python/lib/python3.14/encodings/tis_620.py +307 -0
- package/python/lib/python3.14/encodings/undefined.py +49 -0
- package/python/lib/python3.14/encodings/unicode_escape.py +46 -0
- package/python/lib/python3.14/encodings/utf_16.py +155 -0
- package/python/lib/python3.14/encodings/utf_16_be.py +42 -0
- package/python/lib/python3.14/encodings/utf_16_le.py +42 -0
- package/python/lib/python3.14/encodings/utf_32.py +150 -0
- package/python/lib/python3.14/encodings/utf_32_be.py +37 -0
- package/python/lib/python3.14/encodings/utf_32_le.py +37 -0
- package/python/lib/python3.14/encodings/utf_7.py +38 -0
- package/python/lib/python3.14/encodings/utf_8.py +42 -0
- package/python/lib/python3.14/encodings/utf_8_sig.py +130 -0
- package/python/lib/python3.14/encodings/uu_codec.py +103 -0
- package/python/lib/python3.14/encodings/zlib_codec.py +77 -0
- package/python/lib/python3.14/enum.py +2169 -0
- package/python/lib/python3.14/filecmp.py +320 -0
- package/python/lib/python3.14/fileinput.py +442 -0
- package/python/lib/python3.14/fnmatch.py +209 -0
- package/python/lib/python3.14/fractions.py +1078 -0
- package/python/lib/python3.14/ftplib.py +975 -0
- package/python/lib/python3.14/functools.py +1165 -0
- package/python/lib/python3.14/genericpath.py +200 -0
- package/python/lib/python3.14/getopt.py +232 -0
- package/python/lib/python3.14/getpass.py +256 -0
- package/python/lib/python3.14/gettext.py +660 -0
- package/python/lib/python3.14/glob.py +574 -0
- package/python/lib/python3.14/graphlib.py +254 -0
- package/python/lib/python3.14/gzip.py +724 -0
- package/python/lib/python3.14/hashlib.py +255 -0
- package/python/lib/python3.14/heapq.py +611 -0
- package/python/lib/python3.14/hmac.py +279 -0
- package/python/lib/python3.14/html/__init__.py +132 -0
- package/python/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
- package/python/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/html/entities.py +2513 -0
- package/python/lib/python3.14/html/parser.py +583 -0
- package/python/lib/python3.14/http/__init__.py +213 -0
- package/python/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
- package/python/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
- package/python/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
- package/python/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
- package/python/lib/python3.14/http/client.py +1598 -0
- package/python/lib/python3.14/http/cookiejar.py +2135 -0
- package/python/lib/python3.14/http/cookies.py +637 -0
- package/python/lib/python3.14/http/server.py +1445 -0
- package/python/lib/python3.14/imaplib.py +2090 -0
- package/python/lib/python3.14/importlib/__init__.py +136 -0
- package/python/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/_abc.py +39 -0
- package/python/lib/python3.14/importlib/_bootstrap.py +1570 -0
- package/python/lib/python3.14/importlib/_bootstrap_external.py +1566 -0
- package/python/lib/python3.14/importlib/abc.py +234 -0
- package/python/lib/python3.14/importlib/machinery.py +50 -0
- package/python/lib/python3.14/importlib/metadata/__init__.py +1093 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/metadata/_adapters.py +89 -0
- package/python/lib/python3.14/importlib/metadata/_collections.py +30 -0
- package/python/lib/python3.14/importlib/metadata/_functools.py +104 -0
- package/python/lib/python3.14/importlib/metadata/_itertools.py +73 -0
- package/python/lib/python3.14/importlib/metadata/_meta.py +67 -0
- package/python/lib/python3.14/importlib/metadata/_text.py +99 -0
- package/python/lib/python3.14/importlib/metadata/diagnose.py +21 -0
- package/python/lib/python3.14/importlib/readers.py +12 -0
- package/python/lib/python3.14/importlib/resources/__init__.py +43 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
- package/python/lib/python3.14/importlib/resources/_adapters.py +168 -0
- package/python/lib/python3.14/importlib/resources/_common.py +211 -0
- package/python/lib/python3.14/importlib/resources/_functional.py +81 -0
- package/python/lib/python3.14/importlib/resources/_itertools.py +38 -0
- package/python/lib/python3.14/importlib/resources/abc.py +173 -0
- package/python/lib/python3.14/importlib/resources/readers.py +203 -0
- package/python/lib/python3.14/importlib/resources/simple.py +106 -0
- package/python/lib/python3.14/importlib/simple.py +14 -0
- package/python/lib/python3.14/importlib/util.py +279 -0
- package/python/lib/python3.14/inspect.py +3425 -0
- package/python/lib/python3.14/io.py +150 -0
- package/python/lib/python3.14/ipaddress.py +2421 -0
- package/python/lib/python3.14/json/__init__.py +365 -0
- package/python/lib/python3.14/json/__main__.py +20 -0
- package/python/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
- package/python/lib/python3.14/json/decoder.py +364 -0
- package/python/lib/python3.14/json/encoder.py +461 -0
- package/python/lib/python3.14/json/scanner.py +73 -0
- package/python/lib/python3.14/json/tool.py +122 -0
- package/python/lib/python3.14/keyword.py +64 -0
- package/python/lib/python3.14/lib-dynload/.empty +0 -0
- package/python/lib/python3.14/lib-dynload/_dbm.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/linecache.py +302 -0
- package/python/lib/python3.14/locale.py +1992 -0
- package/python/lib/python3.14/logging/__init__.py +2335 -0
- package/python/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
- package/python/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/logging/config.py +1093 -0
- package/python/lib/python3.14/logging/handlers.py +1654 -0
- package/python/lib/python3.14/lzma.py +364 -0
- package/python/lib/python3.14/mailbox.py +2220 -0
- package/python/lib/python3.14/mimetypes.py +755 -0
- package/python/lib/python3.14/modulefinder.py +671 -0
- package/python/lib/python3.14/multiprocessing/__init__.py +37 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/connection.py +1233 -0
- package/python/lib/python3.14/multiprocessing/context.py +405 -0
- package/python/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
- package/python/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
- package/python/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
- package/python/lib/python3.14/multiprocessing/forkserver.py +429 -0
- package/python/lib/python3.14/multiprocessing/heap.py +337 -0
- package/python/lib/python3.14/multiprocessing/managers.py +1438 -0
- package/python/lib/python3.14/multiprocessing/pool.py +957 -0
- package/python/lib/python3.14/multiprocessing/popen_fork.py +100 -0
- package/python/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
- package/python/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
- package/python/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
- package/python/lib/python3.14/multiprocessing/process.py +443 -0
- package/python/lib/python3.14/multiprocessing/queues.py +399 -0
- package/python/lib/python3.14/multiprocessing/reduction.py +281 -0
- package/python/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
- package/python/lib/python3.14/multiprocessing/resource_tracker.py +495 -0
- package/python/lib/python3.14/multiprocessing/shared_memory.py +544 -0
- package/python/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
- package/python/lib/python3.14/multiprocessing/spawn.py +307 -0
- package/python/lib/python3.14/multiprocessing/synchronize.py +411 -0
- package/python/lib/python3.14/multiprocessing/util.py +619 -0
- package/python/lib/python3.14/netrc.py +200 -0
- package/python/lib/python3.14/ntpath.py +889 -0
- package/python/lib/python3.14/nturl2path.py +82 -0
- package/python/lib/python3.14/numbers.py +427 -0
- package/python/lib/python3.14/opcode.py +122 -0
- package/python/lib/python3.14/operator.py +475 -0
- package/python/lib/python3.14/optparse.py +1664 -0
- package/python/lib/python3.14/os.py +1191 -0
- package/python/lib/python3.14/pathlib/__init__.py +1307 -0
- package/python/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
- package/python/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
- package/python/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/pathlib/_local.py +12 -0
- package/python/lib/python3.14/pathlib/_os.py +530 -0
- package/python/lib/python3.14/pathlib/types.py +430 -0
- package/python/lib/python3.14/pdb.py +3682 -0
- package/python/lib/python3.14/pickle.py +1925 -0
- package/python/lib/python3.14/pickletools.py +2887 -0
- package/python/lib/python3.14/pkgutil.py +474 -0
- package/python/lib/python3.14/platform.py +1515 -0
- package/python/lib/python3.14/plistlib.py +956 -0
- package/python/lib/python3.14/poplib.py +477 -0
- package/python/lib/python3.14/posixpath.py +592 -0
- package/python/lib/python3.14/pprint.py +675 -0
- package/python/lib/python3.14/profile.py +615 -0
- package/python/lib/python3.14/pstats.py +777 -0
- package/python/lib/python3.14/pty.py +182 -0
- package/python/lib/python3.14/py_compile.py +212 -0
- package/python/lib/python3.14/pyclbr.py +314 -0
- package/python/lib/python3.14/pydoc.py +2890 -0
- package/python/lib/python3.14/queue.py +385 -0
- package/python/lib/python3.14/quopri.py +235 -0
- package/python/lib/python3.14/random.py +1087 -0
- package/python/lib/python3.14/re/__init__.py +428 -0
- package/python/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
- package/python/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
- package/python/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
- package/python/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/re/_casefix.py +106 -0
- package/python/lib/python3.14/re/_compiler.py +782 -0
- package/python/lib/python3.14/re/_constants.py +224 -0
- package/python/lib/python3.14/re/_parser.py +1066 -0
- package/python/lib/python3.14/reprlib.py +230 -0
- package/python/lib/python3.14/rlcompleter.py +222 -0
- package/python/lib/python3.14/runpy.py +326 -0
- package/python/lib/python3.14/sched.py +167 -0
- package/python/lib/python3.14/secrets.py +71 -0
- package/python/lib/python3.14/selectors.py +603 -0
- package/python/lib/python3.14/shelve.py +250 -0
- package/python/lib/python3.14/shlex.py +351 -0
- package/python/lib/python3.14/shutil.py +1660 -0
- package/python/lib/python3.14/signal.py +94 -0
- package/python/lib/python3.14/site-packages/_yaml/__init__.py +33 -0
- package/python/lib/python3.14/site-packages/_yaml/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__init__.py +144 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/_compat.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/_termui_impl.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/_textwrap.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/_winconsole.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/core.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/decorators.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/formatting.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/globals.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/shell_completion.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/termui.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/testing.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/click/_compat.py +590 -0
- package/python/lib/python3.14/site-packages/click/_termui_impl.py +970 -0
- package/python/lib/python3.14/site-packages/click/_textwrap.py +188 -0
- package/python/lib/python3.14/site-packages/click/_utils.py +45 -0
- package/python/lib/python3.14/site-packages/click/_winconsole.py +292 -0
- package/python/lib/python3.14/site-packages/click/core.py +3825 -0
- package/python/lib/python3.14/site-packages/click/decorators.py +625 -0
- package/python/lib/python3.14/site-packages/click/exceptions.py +378 -0
- package/python/lib/python3.14/site-packages/click/formatting.py +320 -0
- package/python/lib/python3.14/site-packages/click/globals.py +67 -0
- package/python/lib/python3.14/site-packages/click/parser.py +533 -0
- package/python/lib/python3.14/site-packages/click/py.typed +0 -0
- package/python/lib/python3.14/site-packages/click/shell_completion.py +796 -0
- package/python/lib/python3.14/site-packages/click/termui.py +1024 -0
- package/python/lib/python3.14/site-packages/click/testing.py +796 -0
- package/python/lib/python3.14/site-packages/click/types.py +1437 -0
- package/python/lib/python3.14/site-packages/click/utils.py +676 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/METADATA +83 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/RECORD +24 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
- package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/__init__.py +51 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/_main.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/__version__.py +1 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/_main.py +208 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/options.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/beautifier.py +559 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/css/options.py +60 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.14/site-packages/djlint/__init__.py +27 -0
- package/python/lib/python3.14/site-packages/djlint/__main__.py +8 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/_cli.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/api.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/const.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/github_output.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/helpers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/lint.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/output.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/reformat.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/sarif_output.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/server.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/settings.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/__pycache__/src.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/_cli.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/_cli.py +1006 -0
- package/python/lib/python3.14/site-packages/djlint/api.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/api.py +106 -0
- package/python/lib/python3.14/site-packages/djlint/const.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/const.py +506 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__init__.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__init__.py +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attributes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/beautifier.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/compress.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/condense.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/css.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/endblocks.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/entities.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/expand.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/indent.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/js.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/load_tags.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/mako.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/attribute_values.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/attribute_values.py +152 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/attributes.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/attributes.py +580 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/beautifier.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/beautifier.py +144 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/class_attributes.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/class_attributes.py +318 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/compress.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/compress.py +158 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/condense.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/condense.py +503 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/css.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/css.py +28 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/endblocks.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/endblocks.py +68 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/entities.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/entities.py +39 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/expand.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/expand.py +576 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/indent.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/indent.py +1239 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/js.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/js.py +82 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/load_tags.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/load_tags.py +60 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/mako.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/mako.py +501 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/tokenizer.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/formatter/tokenizer.py +359 -0
- package/python/lib/python3.14/site-packages/djlint/github_output.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/github_output.py +117 -0
- package/python/lib/python3.14/site-packages/djlint/helpers.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/helpers.py +979 -0
- package/python/lib/python3.14/site-packages/djlint/lint.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/lint.py +246 -0
- package/python/lib/python3.14/site-packages/djlint/output.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/output.py +250 -0
- package/python/lib/python3.14/site-packages/djlint/py.typed +0 -0
- package/python/lib/python3.14/site-packages/djlint/reformat.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/reformat.py +130 -0
- package/python/lib/python3.14/site-packages/djlint/rules/D058.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/D058.py +78 -0
- package/python/lib/python3.14/site-packages/djlint/rules/D059.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/D059.py +139 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H009.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H009.py +54 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H012.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H012.py +240 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H014.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H014.py +68 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H016.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H016.py +83 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H022.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H022.py +161 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H025.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H025.py +141 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H036.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H036.py +183 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H037.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H037.py +138 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H041.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H041.py +113 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H042.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H042.py +199 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H044.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H044.py +119 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H047.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H047.py +118 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H048.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H048.py +82 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H051.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H051.py +98 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H053.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H053.py +361 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H054.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H054.py +264 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H057.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/H057.py +235 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T001.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T001.py +103 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T002.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T002.py +75 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T003.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T003.py +93 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T027.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T027.py +183 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T038.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T038.py +152 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T039.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T039.py +167 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T041.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T041.py +307 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T042.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T042.py +219 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T043.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T043.py +154 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T044.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T044.py +189 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T045.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/T045.py +281 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__init__.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__init__.py +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D058.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D059.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H009.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H012.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H014.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H016.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H022.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H025.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H036.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H037.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H041.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H042.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H044.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H047.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H048.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H051.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H053.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H054.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H057.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T001.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T002.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T003.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T027.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T038.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T039.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T041.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T042.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T043.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T044.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T045.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/djlint/rules.yaml +482 -0
- package/python/lib/python3.14/site-packages/djlint/sarif_output.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/sarif_output.py +171 -0
- package/python/lib/python3.14/site-packages/djlint/server.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/server.py +983 -0
- package/python/lib/python3.14/site-packages/djlint/settings.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/settings.py +2381 -0
- package/python/lib/python3.14/site-packages/djlint/src.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/djlint/src.py +192 -0
- package/python/lib/python3.14/site-packages/djlint/types.pyi +20 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/METADATA +236 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/RECORD +133 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE +675 -0
- package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
- package/python/lib/python3.14/site-packages/ed0510dfe26979f3c42b__mypyc.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__init__.py +20 -0
- package/python/lib/python3.14/site-packages/editorconfig/__main__.py +83 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/fnmatch.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/handler.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/ini.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/version.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/__pycache__/versiontools.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/exceptions.py +24 -0
- package/python/lib/python3.14/site-packages/editorconfig/fnmatch.py +224 -0
- package/python/lib/python3.14/site-packages/editorconfig/handler.py +128 -0
- package/python/lib/python3.14/site-packages/editorconfig/ini.py +173 -0
- package/python/lib/python3.14/site-packages/editorconfig/py.typed +0 -0
- package/python/lib/python3.14/site-packages/editorconfig/version.py +1 -0
- package/python/lib/python3.14/site-packages/editorconfig/versiontools.py +36 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
- package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/__init__.py +309 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/__version__.py +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/cli/__init__.py +210 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/directives.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/options.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/output.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/token.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/directives.py +55 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/inputscanner.py +139 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/options.py +230 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/output.py +352 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/pattern.py +83 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/token.py +38 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenizer.py +138 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenstream.py +74 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/acorn.py +81 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/options.py +102 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/tests/testindentation.py +49 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/packer.py +158 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
- package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.14/site-packages/json5/__init__.py +30 -0
- package/python/lib/python3.14/site-packages/json5/__main__.py +22 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/host.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/lib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/tool.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/__pycache__/version.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/json5/host.py +53 -0
- package/python/lib/python3.14/site-packages/json5/lib.py +1007 -0
- package/python/lib/python3.14/site-packages/json5/parser.py +1376 -0
- package/python/lib/python3.14/site-packages/json5/py.typed +0 -0
- package/python/lib/python3.14/site-packages/json5/tool.py +198 -0
- package/python/lib/python3.14/site-packages/json5/version.py +18 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
- package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.14/site-packages/pathspec/__init__.py +68 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/_meta.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/_typing.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/_version.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/backend.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/gitignore.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/pathspec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/pattern.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/__init__.py +4 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/agg.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/_utils.py +45 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/agg.py +104 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__init__.py +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/_base.py +95 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/base.py +18 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__init__.py +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
- package/python/lib/python3.14/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
- package/python/lib/python3.14/site-packages/pathspec/_meta.py +70 -0
- package/python/lib/python3.14/site-packages/pathspec/_typing.py +64 -0
- package/python/lib/python3.14/site-packages/pathspec/_version.py +5 -0
- package/python/lib/python3.14/site-packages/pathspec/backend.py +51 -0
- package/python/lib/python3.14/site-packages/pathspec/gitignore.py +172 -0
- package/python/lib/python3.14/site-packages/pathspec/pathspec.py +527 -0
- package/python/lib/python3.14/site-packages/pathspec/pattern.py +259 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/__init__.py +12 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/base.py +210 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
- package/python/lib/python3.14/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
- package/python/lib/python3.14/site-packages/pathspec/py.typed +1 -0
- package/python/lib/python3.14/site-packages/pathspec/util.py +864 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
- package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/METADATA +59 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/RECORD +26 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
- package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/top_level.txt +2 -0
- package/python/lib/python3.14/site-packages/regex/__init__.py +3 -0
- package/python/lib/python3.14/site-packages/regex/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/regex/__pycache__/_main.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/regex/__pycache__/_regex_core.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/regex/_main.py +759 -0
- package/python/lib/python3.14/site-packages/regex/_regex.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/regex/_regex_core.py +4689 -0
- package/python/lib/python3.14/site-packages/regex/tests/__pycache__/test_regex.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/regex/tests/test_regex.py +4557 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/INSTALLER +1 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/METADATA +1060 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/RECORD +12 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/REQUESTED +0 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/WHEEL +5 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/licenses/LICENSE.txt +208 -0
- package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/top_level.txt +1 -0
- package/python/lib/python3.14/site-packages/yaml/__init__.py +390 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/composer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/constructor.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/cyaml.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/dumper.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/emitter.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/error.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/events.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/loader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/nodes.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/reader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/representer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/resolver.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/scanner.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/serializer.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/__pycache__/tokens.cpython-314.pyc +0 -0
- package/python/lib/python3.14/site-packages/yaml/_yaml.cpython-314-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.14/site-packages/yaml/composer.py +139 -0
- package/python/lib/python3.14/site-packages/yaml/constructor.py +748 -0
- package/python/lib/python3.14/site-packages/yaml/cyaml.py +101 -0
- package/python/lib/python3.14/site-packages/yaml/dumper.py +62 -0
- package/python/lib/python3.14/site-packages/yaml/emitter.py +1137 -0
- package/python/lib/python3.14/site-packages/yaml/error.py +75 -0
- package/python/lib/python3.14/site-packages/yaml/events.py +86 -0
- package/python/lib/python3.14/site-packages/yaml/loader.py +63 -0
- package/python/lib/python3.14/site-packages/yaml/nodes.py +49 -0
- package/python/lib/python3.14/site-packages/yaml/parser.py +589 -0
- package/python/lib/python3.14/site-packages/yaml/reader.py +185 -0
- package/python/lib/python3.14/site-packages/yaml/representer.py +389 -0
- package/python/lib/python3.14/site-packages/yaml/resolver.py +227 -0
- package/python/lib/python3.14/site-packages/yaml/scanner.py +1435 -0
- package/python/lib/python3.14/site-packages/yaml/serializer.py +111 -0
- package/python/lib/python3.14/site-packages/yaml/tokens.py +104 -0
- package/python/lib/python3.14/site.py +779 -0
- package/python/lib/python3.14/smtplib.py +1121 -0
- package/python/lib/python3.14/socket.py +994 -0
- package/python/lib/python3.14/socketserver.py +863 -0
- package/python/lib/python3.14/sqlite3/__init__.py +57 -0
- package/python/lib/python3.14/sqlite3/__main__.py +139 -0
- package/python/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
- package/python/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
- package/python/lib/python3.14/sqlite3/dbapi2.py +96 -0
- package/python/lib/python3.14/sqlite3/dump.py +118 -0
- package/python/lib/python3.14/sre_compile.py +7 -0
- package/python/lib/python3.14/sre_constants.py +7 -0
- package/python/lib/python3.14/sre_parse.py +7 -0
- package/python/lib/python3.14/ssl.py +1552 -0
- package/python/lib/python3.14/stat.py +212 -0
- package/python/lib/python3.14/statistics.py +1879 -0
- package/python/lib/python3.14/string/__init__.py +332 -0
- package/python/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
- package/python/lib/python3.14/string/templatelib.py +33 -0
- package/python/lib/python3.14/stringprep.py +456 -0
- package/python/lib/python3.14/struct.py +15 -0
- package/python/lib/python3.14/subprocess.py +2257 -0
- package/python/lib/python3.14/symtable.py +451 -0
- package/python/lib/python3.14/sysconfig/__init__.py +798 -0
- package/python/lib/python3.14/sysconfig/__main__.py +276 -0
- package/python/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/tabnanny.py +338 -0
- package/python/lib/python3.14/tarfile.py +3228 -0
- package/python/lib/python3.14/tempfile.py +1057 -0
- package/python/lib/python3.14/textwrap.py +475 -0
- package/python/lib/python3.14/this.py +28 -0
- package/python/lib/python3.14/threading.py +1643 -0
- package/python/lib/python3.14/timeit.py +378 -0
- package/python/lib/python3.14/token.py +144 -0
- package/python/lib/python3.14/tokenize.py +598 -0
- package/python/lib/python3.14/tomllib/__init__.py +10 -0
- package/python/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
- package/python/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/tomllib/_parser.py +765 -0
- package/python/lib/python3.14/tomllib/_re.py +113 -0
- package/python/lib/python3.14/tomllib/_types.py +10 -0
- package/python/lib/python3.14/tomllib/mypy.ini +15 -0
- package/python/lib/python3.14/trace.py +751 -0
- package/python/lib/python3.14/traceback.py +1751 -0
- package/python/lib/python3.14/tracemalloc.py +560 -0
- package/python/lib/python3.14/tty.py +73 -0
- package/python/lib/python3.14/types.py +345 -0
- package/python/lib/python3.14/typing.py +3866 -0
- package/python/lib/python3.14/unittest/__init__.py +80 -0
- package/python/lib/python3.14/unittest/__main__.py +18 -0
- package/python/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/unittest/_log.py +86 -0
- package/python/lib/python3.14/unittest/async_case.py +158 -0
- package/python/lib/python3.14/unittest/case.py +1628 -0
- package/python/lib/python3.14/unittest/loader.py +491 -0
- package/python/lib/python3.14/unittest/main.py +280 -0
- package/python/lib/python3.14/unittest/mock.py +3208 -0
- package/python/lib/python3.14/unittest/result.py +259 -0
- package/python/lib/python3.14/unittest/runner.py +313 -0
- package/python/lib/python3.14/unittest/signals.py +71 -0
- package/python/lib/python3.14/unittest/suite.py +379 -0
- package/python/lib/python3.14/unittest/util.py +170 -0
- package/python/lib/python3.14/urllib/__init__.py +0 -0
- package/python/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
- package/python/lib/python3.14/urllib/error.py +74 -0
- package/python/lib/python3.14/urllib/parse.py +1289 -0
- package/python/lib/python3.14/urllib/request.py +2175 -0
- package/python/lib/python3.14/urllib/response.py +84 -0
- package/python/lib/python3.14/urllib/robotparser.py +363 -0
- package/python/lib/python3.14/uuid.py +1013 -0
- package/python/lib/python3.14/venv/__init__.py +700 -0
- package/python/lib/python3.14/venv/__main__.py +10 -0
- package/python/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
- package/python/lib/python3.14/venv/scripts/common/activate +76 -0
- package/python/lib/python3.14/venv/scripts/common/activate.fish +69 -0
- package/python/lib/python3.14/venv/scripts/posix/activate.csh +29 -0
- package/python/lib/python3.14/warnings.py +99 -0
- package/python/lib/python3.14/wave.py +665 -0
- package/python/lib/python3.14/weakref.py +574 -0
- package/python/lib/python3.14/webbrowser.py +763 -0
- package/python/lib/python3.14/wsgiref/__init__.py +25 -0
- package/python/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
- package/python/lib/python3.14/wsgiref/handlers.py +575 -0
- package/python/lib/python3.14/wsgiref/headers.py +192 -0
- package/python/lib/python3.14/wsgiref/simple_server.py +161 -0
- package/python/lib/python3.14/wsgiref/types.py +54 -0
- package/python/lib/python3.14/wsgiref/util.py +159 -0
- package/python/lib/python3.14/wsgiref/validate.py +438 -0
- package/python/lib/python3.14/xml/__init__.py +20 -0
- package/python/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/NodeFilter.py +27 -0
- package/python/lib/python3.14/xml/dom/__init__.py +140 -0
- package/python/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/dom/domreg.py +99 -0
- package/python/lib/python3.14/xml/dom/expatbuilder.py +964 -0
- package/python/lib/python3.14/xml/dom/minicompat.py +109 -0
- package/python/lib/python3.14/xml/dom/minidom.py +2027 -0
- package/python/lib/python3.14/xml/dom/pulldom.py +350 -0
- package/python/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
- package/python/lib/python3.14/xml/etree/ElementInclude.py +186 -0
- package/python/lib/python3.14/xml/etree/ElementPath.py +430 -0
- package/python/lib/python3.14/xml/etree/ElementTree.py +2093 -0
- package/python/lib/python3.14/xml/etree/__init__.py +33 -0
- package/python/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/etree/cElementTree.py +3 -0
- package/python/lib/python3.14/xml/parsers/__init__.py +8 -0
- package/python/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/parsers/expat.py +8 -0
- package/python/lib/python3.14/xml/sax/__init__.py +109 -0
- package/python/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xml/sax/_exceptions.py +127 -0
- package/python/lib/python3.14/xml/sax/expatreader.py +454 -0
- package/python/lib/python3.14/xml/sax/handler.py +387 -0
- package/python/lib/python3.14/xml/sax/saxutils.py +370 -0
- package/python/lib/python3.14/xml/sax/xmlreader.py +379 -0
- package/python/lib/python3.14/xmlrpc/__init__.py +1 -0
- package/python/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
- package/python/lib/python3.14/xmlrpc/client.py +1503 -0
- package/python/lib/python3.14/xmlrpc/server.py +1003 -0
- package/python/lib/python3.14/zipapp.py +231 -0
- package/python/lib/python3.14/zipfile/__init__.py +2488 -0
- package/python/lib/python3.14/zipfile/__main__.py +4 -0
- package/python/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zipfile/_path/__init__.py +455 -0
- package/python/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zipfile/_path/glob.py +113 -0
- package/python/lib/python3.14/zipimport.py +827 -0
- package/python/lib/python3.14/zoneinfo/__init__.py +34 -0
- package/python/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
- package/python/lib/python3.14/zoneinfo/_common.py +172 -0
- package/python/lib/python3.14/zoneinfo/_tzpath.py +189 -0
- package/python/lib/python3.14/zoneinfo/_zoneinfo.py +779 -0
- package/python/licenses/LICENSE.bdb.txt +126 -0
- package/python/licenses/LICENSE.bzip2.txt +37 -0
- package/python/licenses/LICENSE.cpython.txt +771 -0
- package/python/licenses/LICENSE.expat.txt +21 -0
- package/python/licenses/LICENSE.libX11.txt +942 -0
- package/python/licenses/LICENSE.libXau.txt +21 -0
- package/python/licenses/LICENSE.libedit.txt +29 -0
- package/python/licenses/LICENSE.libffi.txt +21 -0
- package/python/licenses/LICENSE.liblzma.txt +13 -0
- package/python/licenses/LICENSE.libuuid.txt +27 -0
- package/python/licenses/LICENSE.libxcb.txt +30 -0
- package/python/licenses/LICENSE.mpdecimal.txt +24 -0
- package/python/licenses/LICENSE.ncurses.txt +29 -0
- package/python/licenses/LICENSE.openssl-3.txt +177 -0
- package/python/licenses/LICENSE.sqlite.txt +23 -0
- package/python/licenses/LICENSE.tcl.txt +40 -0
- package/python/licenses/LICENSE.tix.txt +54 -0
- package/python/licenses/LICENSE.zlib-ng.txt +19 -0
- package/python/licenses/LICENSE.zlib.txt +22 -0
- package/python/licenses/LICENSE.zstd.txt +30 -0
|
@@ -0,0 +1,2027 @@
|
|
|
1
|
+
"""Simple implementation of the Level 1 DOM.
|
|
2
|
+
|
|
3
|
+
Namespaces and other minor Level 2 features are also supported.
|
|
4
|
+
|
|
5
|
+
parse("foo.xml")
|
|
6
|
+
|
|
7
|
+
parseString("<foo><bar/></foo>")
|
|
8
|
+
|
|
9
|
+
Todo:
|
|
10
|
+
=====
|
|
11
|
+
* convenience methods for getting elements and text.
|
|
12
|
+
* more testing
|
|
13
|
+
* bring some of the writer and linearizer code into conformance with this
|
|
14
|
+
interface
|
|
15
|
+
* SAX 2 namespaces
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
import io
|
|
19
|
+
import xml.dom
|
|
20
|
+
|
|
21
|
+
from xml.dom import EMPTY_NAMESPACE, EMPTY_PREFIX, XMLNS_NAMESPACE, domreg
|
|
22
|
+
from xml.dom.minicompat import *
|
|
23
|
+
from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS
|
|
24
|
+
|
|
25
|
+
# This is used by the ID-cache invalidation checks; the list isn't
|
|
26
|
+
# actually complete, since the nodes being checked will never be the
|
|
27
|
+
# DOCUMENT_NODE or DOCUMENT_FRAGMENT_NODE. (The node being checked is
|
|
28
|
+
# the node being added or removed, not the node being modified.)
|
|
29
|
+
#
|
|
30
|
+
_nodeTypes_with_children = (xml.dom.Node.ELEMENT_NODE,
|
|
31
|
+
xml.dom.Node.ENTITY_REFERENCE_NODE)
|
|
32
|
+
|
|
33
|
+
# The white space characters of the XML specification (see XML 1.0, 2.3).
|
|
34
|
+
_XML_WHITESPACE = " \t\r\n"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Node(xml.dom.Node):
|
|
38
|
+
namespaceURI = None # this is non-null only for elements and attributes
|
|
39
|
+
parentNode = None
|
|
40
|
+
ownerDocument = None
|
|
41
|
+
nextSibling = None
|
|
42
|
+
previousSibling = None
|
|
43
|
+
|
|
44
|
+
prefix = EMPTY_PREFIX # non-null only for NS elements and attributes
|
|
45
|
+
|
|
46
|
+
def __bool__(self):
|
|
47
|
+
return True
|
|
48
|
+
|
|
49
|
+
def toxml(self, encoding=None, standalone=None):
|
|
50
|
+
return self.toprettyxml("", "", encoding, standalone)
|
|
51
|
+
|
|
52
|
+
def toprettyxml(self, indent="\t", newl="\n", encoding=None,
|
|
53
|
+
standalone=None):
|
|
54
|
+
if encoding is None:
|
|
55
|
+
writer = io.StringIO()
|
|
56
|
+
else:
|
|
57
|
+
writer = io.TextIOWrapper(io.BytesIO(),
|
|
58
|
+
encoding=encoding,
|
|
59
|
+
errors="xmlcharrefreplace",
|
|
60
|
+
newline='\n')
|
|
61
|
+
if self.nodeType == Node.DOCUMENT_NODE:
|
|
62
|
+
# Can pass encoding only to document, to put it into XML header
|
|
63
|
+
self.writexml(writer, "", indent, newl, encoding, standalone)
|
|
64
|
+
else:
|
|
65
|
+
self.writexml(writer, "", indent, newl)
|
|
66
|
+
if encoding is None:
|
|
67
|
+
return writer.getvalue()
|
|
68
|
+
else:
|
|
69
|
+
return writer.detach().getvalue()
|
|
70
|
+
|
|
71
|
+
def hasChildNodes(self):
|
|
72
|
+
return bool(self.childNodes)
|
|
73
|
+
|
|
74
|
+
def _get_childNodes(self):
|
|
75
|
+
return self.childNodes
|
|
76
|
+
|
|
77
|
+
def _get_firstChild(self):
|
|
78
|
+
if self.childNodes:
|
|
79
|
+
return self.childNodes[0]
|
|
80
|
+
|
|
81
|
+
def _get_lastChild(self):
|
|
82
|
+
if self.childNodes:
|
|
83
|
+
return self.childNodes[-1]
|
|
84
|
+
|
|
85
|
+
def insertBefore(self, newChild, refChild):
|
|
86
|
+
if newChild.nodeType == self.DOCUMENT_FRAGMENT_NODE:
|
|
87
|
+
for c in tuple(newChild.childNodes):
|
|
88
|
+
self.insertBefore(c, refChild)
|
|
89
|
+
### The DOM does not clearly specify what to return in this case
|
|
90
|
+
return newChild
|
|
91
|
+
if newChild.nodeType not in self._child_node_types:
|
|
92
|
+
raise xml.dom.HierarchyRequestErr(
|
|
93
|
+
"%s cannot be child of %s" % (repr(newChild), repr(self)))
|
|
94
|
+
if newChild.parentNode is not None:
|
|
95
|
+
newChild.parentNode.removeChild(newChild)
|
|
96
|
+
if refChild is None:
|
|
97
|
+
self.appendChild(newChild)
|
|
98
|
+
else:
|
|
99
|
+
try:
|
|
100
|
+
index = self.childNodes.index(refChild)
|
|
101
|
+
except ValueError:
|
|
102
|
+
raise xml.dom.NotFoundErr()
|
|
103
|
+
if newChild.nodeType in _nodeTypes_with_children:
|
|
104
|
+
_clear_id_cache(self)
|
|
105
|
+
self.childNodes.insert(index, newChild)
|
|
106
|
+
newChild.nextSibling = refChild
|
|
107
|
+
refChild.previousSibling = newChild
|
|
108
|
+
if index:
|
|
109
|
+
node = self.childNodes[index-1]
|
|
110
|
+
node.nextSibling = newChild
|
|
111
|
+
newChild.previousSibling = node
|
|
112
|
+
else:
|
|
113
|
+
newChild.previousSibling = None
|
|
114
|
+
newChild.parentNode = self
|
|
115
|
+
return newChild
|
|
116
|
+
|
|
117
|
+
def appendChild(self, node):
|
|
118
|
+
if node.nodeType == self.DOCUMENT_FRAGMENT_NODE:
|
|
119
|
+
for c in tuple(node.childNodes):
|
|
120
|
+
self.appendChild(c)
|
|
121
|
+
### The DOM does not clearly specify what to return in this case
|
|
122
|
+
return node
|
|
123
|
+
if node.nodeType not in self._child_node_types:
|
|
124
|
+
raise xml.dom.HierarchyRequestErr(
|
|
125
|
+
"%s cannot be child of %s" % (repr(node), repr(self)))
|
|
126
|
+
elif node.nodeType in _nodeTypes_with_children:
|
|
127
|
+
_clear_id_cache(self)
|
|
128
|
+
if node.parentNode is not None:
|
|
129
|
+
node.parentNode.removeChild(node)
|
|
130
|
+
_append_child(self, node)
|
|
131
|
+
node.nextSibling = None
|
|
132
|
+
return node
|
|
133
|
+
|
|
134
|
+
def replaceChild(self, newChild, oldChild):
|
|
135
|
+
if newChild.nodeType == self.DOCUMENT_FRAGMENT_NODE:
|
|
136
|
+
refChild = oldChild.nextSibling
|
|
137
|
+
self.removeChild(oldChild)
|
|
138
|
+
return self.insertBefore(newChild, refChild)
|
|
139
|
+
if newChild.nodeType not in self._child_node_types:
|
|
140
|
+
raise xml.dom.HierarchyRequestErr(
|
|
141
|
+
"%s cannot be child of %s" % (repr(newChild), repr(self)))
|
|
142
|
+
if newChild is oldChild:
|
|
143
|
+
return
|
|
144
|
+
if newChild.parentNode is not None:
|
|
145
|
+
newChild.parentNode.removeChild(newChild)
|
|
146
|
+
try:
|
|
147
|
+
index = self.childNodes.index(oldChild)
|
|
148
|
+
except ValueError:
|
|
149
|
+
raise xml.dom.NotFoundErr()
|
|
150
|
+
self.childNodes[index] = newChild
|
|
151
|
+
newChild.parentNode = self
|
|
152
|
+
oldChild.parentNode = None
|
|
153
|
+
if (newChild.nodeType in _nodeTypes_with_children
|
|
154
|
+
or oldChild.nodeType in _nodeTypes_with_children):
|
|
155
|
+
_clear_id_cache(self)
|
|
156
|
+
newChild.nextSibling = oldChild.nextSibling
|
|
157
|
+
newChild.previousSibling = oldChild.previousSibling
|
|
158
|
+
oldChild.nextSibling = None
|
|
159
|
+
oldChild.previousSibling = None
|
|
160
|
+
if newChild.previousSibling:
|
|
161
|
+
newChild.previousSibling.nextSibling = newChild
|
|
162
|
+
if newChild.nextSibling:
|
|
163
|
+
newChild.nextSibling.previousSibling = newChild
|
|
164
|
+
return oldChild
|
|
165
|
+
|
|
166
|
+
def removeChild(self, oldChild):
|
|
167
|
+
try:
|
|
168
|
+
self.childNodes.remove(oldChild)
|
|
169
|
+
except ValueError:
|
|
170
|
+
raise xml.dom.NotFoundErr()
|
|
171
|
+
if oldChild.nextSibling is not None:
|
|
172
|
+
oldChild.nextSibling.previousSibling = oldChild.previousSibling
|
|
173
|
+
if oldChild.previousSibling is not None:
|
|
174
|
+
oldChild.previousSibling.nextSibling = oldChild.nextSibling
|
|
175
|
+
oldChild.nextSibling = oldChild.previousSibling = None
|
|
176
|
+
if oldChild.nodeType in _nodeTypes_with_children:
|
|
177
|
+
_clear_id_cache(self)
|
|
178
|
+
|
|
179
|
+
oldChild.parentNode = None
|
|
180
|
+
return oldChild
|
|
181
|
+
|
|
182
|
+
def normalize(self):
|
|
183
|
+
L = []
|
|
184
|
+
for child in self.childNodes:
|
|
185
|
+
if child.nodeType == Node.TEXT_NODE:
|
|
186
|
+
if not child.data:
|
|
187
|
+
# empty text node; discard
|
|
188
|
+
if L:
|
|
189
|
+
L[-1].nextSibling = child.nextSibling
|
|
190
|
+
if child.nextSibling:
|
|
191
|
+
child.nextSibling.previousSibling = child.previousSibling
|
|
192
|
+
child.unlink()
|
|
193
|
+
elif L and L[-1].nodeType == child.nodeType:
|
|
194
|
+
# collapse text node
|
|
195
|
+
node = L[-1]
|
|
196
|
+
node.data = node.data + child.data
|
|
197
|
+
node.nextSibling = child.nextSibling
|
|
198
|
+
if child.nextSibling:
|
|
199
|
+
child.nextSibling.previousSibling = node
|
|
200
|
+
child.unlink()
|
|
201
|
+
else:
|
|
202
|
+
L.append(child)
|
|
203
|
+
else:
|
|
204
|
+
L.append(child)
|
|
205
|
+
if child.nodeType == Node.ELEMENT_NODE:
|
|
206
|
+
child.normalize()
|
|
207
|
+
self.childNodes[:] = L
|
|
208
|
+
|
|
209
|
+
def cloneNode(self, deep):
|
|
210
|
+
return _clone_node(self, deep, self.ownerDocument or self)
|
|
211
|
+
|
|
212
|
+
def isSupported(self, feature, version):
|
|
213
|
+
return self.ownerDocument.implementation.hasFeature(feature, version)
|
|
214
|
+
|
|
215
|
+
def _get_localName(self):
|
|
216
|
+
# Overridden in Element and Attr where localName can be Non-Null
|
|
217
|
+
return None
|
|
218
|
+
|
|
219
|
+
# Node interfaces from Level 3 (WD 9 April 2002)
|
|
220
|
+
|
|
221
|
+
def isSameNode(self, other):
|
|
222
|
+
return self is other
|
|
223
|
+
|
|
224
|
+
def getInterface(self, feature):
|
|
225
|
+
if self.isSupported(feature, None):
|
|
226
|
+
return self
|
|
227
|
+
else:
|
|
228
|
+
return None
|
|
229
|
+
|
|
230
|
+
# The "user data" functions use a dictionary that is only present
|
|
231
|
+
# if some user data has been set, so be careful not to assume it
|
|
232
|
+
# exists.
|
|
233
|
+
|
|
234
|
+
def getUserData(self, key):
|
|
235
|
+
try:
|
|
236
|
+
return self._user_data[key][0]
|
|
237
|
+
except (AttributeError, KeyError):
|
|
238
|
+
return None
|
|
239
|
+
|
|
240
|
+
def setUserData(self, key, data, handler):
|
|
241
|
+
old = None
|
|
242
|
+
try:
|
|
243
|
+
d = self._user_data
|
|
244
|
+
except AttributeError:
|
|
245
|
+
d = {}
|
|
246
|
+
self._user_data = d
|
|
247
|
+
if key in d:
|
|
248
|
+
old = d[key][0]
|
|
249
|
+
if data is None:
|
|
250
|
+
# ignore handlers passed for None
|
|
251
|
+
handler = None
|
|
252
|
+
if old is not None:
|
|
253
|
+
del d[key]
|
|
254
|
+
else:
|
|
255
|
+
d[key] = (data, handler)
|
|
256
|
+
return old
|
|
257
|
+
|
|
258
|
+
def _call_user_data_handler(self, operation, src, dst):
|
|
259
|
+
if hasattr(self, "_user_data"):
|
|
260
|
+
for key, (data, handler) in list(self._user_data.items()):
|
|
261
|
+
if handler is not None:
|
|
262
|
+
handler.handle(operation, key, data, src, dst)
|
|
263
|
+
|
|
264
|
+
# minidom-specific API:
|
|
265
|
+
|
|
266
|
+
def unlink(self):
|
|
267
|
+
self.parentNode = self.ownerDocument = None
|
|
268
|
+
if self.childNodes:
|
|
269
|
+
for child in self.childNodes:
|
|
270
|
+
child.unlink()
|
|
271
|
+
self.childNodes = NodeList()
|
|
272
|
+
self.previousSibling = None
|
|
273
|
+
self.nextSibling = None
|
|
274
|
+
|
|
275
|
+
# A Node is its own context manager, to ensure that an unlink() call occurs.
|
|
276
|
+
# This is similar to how a file object works.
|
|
277
|
+
def __enter__(self):
|
|
278
|
+
return self
|
|
279
|
+
|
|
280
|
+
def __exit__(self, et, ev, tb):
|
|
281
|
+
self.unlink()
|
|
282
|
+
|
|
283
|
+
defproperty(Node, "firstChild", doc="First child node, or None.")
|
|
284
|
+
defproperty(Node, "lastChild", doc="Last child node, or None.")
|
|
285
|
+
defproperty(Node, "localName", doc="Namespace-local name of this node.")
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def _append_child(self, node):
|
|
289
|
+
# fast path with less checks; usable by DOM builders if careful
|
|
290
|
+
childNodes = self.childNodes
|
|
291
|
+
if childNodes:
|
|
292
|
+
last = childNodes[-1]
|
|
293
|
+
node.previousSibling = last
|
|
294
|
+
last.nextSibling = node
|
|
295
|
+
childNodes.append(node)
|
|
296
|
+
node.parentNode = self
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
def _write_data(writer, text, attr):
|
|
300
|
+
"Writes datachars to writer."
|
|
301
|
+
if not text:
|
|
302
|
+
return
|
|
303
|
+
# See the comments in ElementTree.py for behavior and
|
|
304
|
+
# implementation details.
|
|
305
|
+
if "&" in text:
|
|
306
|
+
text = text.replace("&", "&")
|
|
307
|
+
if "<" in text:
|
|
308
|
+
text = text.replace("<", "<")
|
|
309
|
+
if ">" in text:
|
|
310
|
+
text = text.replace(">", ">")
|
|
311
|
+
if attr:
|
|
312
|
+
if '"' in text:
|
|
313
|
+
text = text.replace('"', """)
|
|
314
|
+
if "\r" in text:
|
|
315
|
+
text = text.replace("\r", " ")
|
|
316
|
+
if "\n" in text:
|
|
317
|
+
text = text.replace("\n", " ")
|
|
318
|
+
if "\t" in text:
|
|
319
|
+
text = text.replace("\t", "	")
|
|
320
|
+
writer.write(text)
|
|
321
|
+
|
|
322
|
+
def _get_elements_by_tagName_helper(parent, name, rc):
|
|
323
|
+
for node in parent.childNodes:
|
|
324
|
+
if node.nodeType == Node.ELEMENT_NODE and \
|
|
325
|
+
(name == "*" or node.tagName == name):
|
|
326
|
+
rc.append(node)
|
|
327
|
+
_get_elements_by_tagName_helper(node, name, rc)
|
|
328
|
+
return rc
|
|
329
|
+
|
|
330
|
+
def _get_elements_by_tagName_ns_helper(parent, nsURI, localName, rc):
|
|
331
|
+
for node in parent.childNodes:
|
|
332
|
+
if node.nodeType == Node.ELEMENT_NODE:
|
|
333
|
+
if ((localName == "*" or node.localName == localName) and
|
|
334
|
+
(nsURI == "*" or node.namespaceURI == nsURI)):
|
|
335
|
+
rc.append(node)
|
|
336
|
+
_get_elements_by_tagName_ns_helper(node, nsURI, localName, rc)
|
|
337
|
+
return rc
|
|
338
|
+
|
|
339
|
+
class DocumentFragment(Node):
|
|
340
|
+
nodeType = Node.DOCUMENT_FRAGMENT_NODE
|
|
341
|
+
nodeName = "#document-fragment"
|
|
342
|
+
nodeValue = None
|
|
343
|
+
attributes = None
|
|
344
|
+
parentNode = None
|
|
345
|
+
_child_node_types = (Node.ELEMENT_NODE,
|
|
346
|
+
Node.TEXT_NODE,
|
|
347
|
+
Node.CDATA_SECTION_NODE,
|
|
348
|
+
Node.ENTITY_REFERENCE_NODE,
|
|
349
|
+
Node.PROCESSING_INSTRUCTION_NODE,
|
|
350
|
+
Node.COMMENT_NODE,
|
|
351
|
+
Node.NOTATION_NODE)
|
|
352
|
+
|
|
353
|
+
def __init__(self):
|
|
354
|
+
self.childNodes = NodeList()
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
class Attr(Node):
|
|
358
|
+
__slots__=('_name', '_value', 'namespaceURI',
|
|
359
|
+
'_prefix', 'childNodes', '_localName', 'ownerDocument', 'ownerElement')
|
|
360
|
+
nodeType = Node.ATTRIBUTE_NODE
|
|
361
|
+
attributes = None
|
|
362
|
+
specified = False
|
|
363
|
+
_is_id = False
|
|
364
|
+
|
|
365
|
+
_child_node_types = (Node.TEXT_NODE, Node.ENTITY_REFERENCE_NODE)
|
|
366
|
+
|
|
367
|
+
def __init__(self, qName, namespaceURI=EMPTY_NAMESPACE, localName=None,
|
|
368
|
+
prefix=None):
|
|
369
|
+
self.ownerElement = None
|
|
370
|
+
self.ownerDocument = None
|
|
371
|
+
self._name = qName
|
|
372
|
+
self.namespaceURI = namespaceURI
|
|
373
|
+
self._prefix = prefix
|
|
374
|
+
if localName is not None:
|
|
375
|
+
self._localName = localName
|
|
376
|
+
self.childNodes = NodeList()
|
|
377
|
+
|
|
378
|
+
# Add the single child node that represents the value of the attr
|
|
379
|
+
self.childNodes.append(Text())
|
|
380
|
+
|
|
381
|
+
# nodeValue and value are set elsewhere
|
|
382
|
+
|
|
383
|
+
def _get_localName(self):
|
|
384
|
+
try:
|
|
385
|
+
return self._localName
|
|
386
|
+
except AttributeError:
|
|
387
|
+
return self.nodeName.split(":", 1)[-1]
|
|
388
|
+
|
|
389
|
+
def _get_specified(self):
|
|
390
|
+
return self.specified
|
|
391
|
+
|
|
392
|
+
def _get_name(self):
|
|
393
|
+
return self._name
|
|
394
|
+
|
|
395
|
+
def _set_name(self, value):
|
|
396
|
+
self._name = value
|
|
397
|
+
if self.ownerElement is not None:
|
|
398
|
+
_clear_id_cache(self.ownerElement)
|
|
399
|
+
|
|
400
|
+
nodeName = name = property(_get_name, _set_name)
|
|
401
|
+
|
|
402
|
+
def _get_value(self):
|
|
403
|
+
return self._value
|
|
404
|
+
|
|
405
|
+
def _set_value(self, value):
|
|
406
|
+
self._value = value
|
|
407
|
+
self.childNodes[0].data = value
|
|
408
|
+
if self.ownerElement is not None:
|
|
409
|
+
_clear_id_cache(self.ownerElement)
|
|
410
|
+
self.childNodes[0].data = value
|
|
411
|
+
|
|
412
|
+
nodeValue = value = property(_get_value, _set_value)
|
|
413
|
+
|
|
414
|
+
def _get_prefix(self):
|
|
415
|
+
return self._prefix
|
|
416
|
+
|
|
417
|
+
def _set_prefix(self, prefix):
|
|
418
|
+
nsuri = self.namespaceURI
|
|
419
|
+
if prefix == "xmlns":
|
|
420
|
+
if nsuri and nsuri != XMLNS_NAMESPACE:
|
|
421
|
+
raise xml.dom.NamespaceErr(
|
|
422
|
+
"illegal use of 'xmlns' prefix for the wrong namespace")
|
|
423
|
+
self._prefix = prefix
|
|
424
|
+
if prefix is None:
|
|
425
|
+
newName = self.localName
|
|
426
|
+
else:
|
|
427
|
+
newName = "%s:%s" % (prefix, self.localName)
|
|
428
|
+
if self.ownerElement:
|
|
429
|
+
_clear_id_cache(self.ownerElement)
|
|
430
|
+
self.name = newName
|
|
431
|
+
|
|
432
|
+
prefix = property(_get_prefix, _set_prefix)
|
|
433
|
+
|
|
434
|
+
def unlink(self):
|
|
435
|
+
# This implementation does not call the base implementation
|
|
436
|
+
# since most of that is not needed, and the expense of the
|
|
437
|
+
# method call is not warranted. We duplicate the removal of
|
|
438
|
+
# children, but that's all we needed from the base class.
|
|
439
|
+
elem = self.ownerElement
|
|
440
|
+
if elem is not None:
|
|
441
|
+
del elem._attrs[self.nodeName]
|
|
442
|
+
del elem._attrsNS[(self.namespaceURI, self.localName)]
|
|
443
|
+
if self._is_id:
|
|
444
|
+
self._is_id = False
|
|
445
|
+
elem._magic_id_nodes -= 1
|
|
446
|
+
self.ownerDocument._magic_id_count -= 1
|
|
447
|
+
for child in self.childNodes:
|
|
448
|
+
child.unlink()
|
|
449
|
+
del self.childNodes[:]
|
|
450
|
+
|
|
451
|
+
def _get_isId(self):
|
|
452
|
+
if self._is_id:
|
|
453
|
+
return True
|
|
454
|
+
doc = self.ownerDocument
|
|
455
|
+
elem = self.ownerElement
|
|
456
|
+
if doc is None or elem is None:
|
|
457
|
+
return False
|
|
458
|
+
|
|
459
|
+
info = doc._get_elem_info(elem)
|
|
460
|
+
if info is None:
|
|
461
|
+
return False
|
|
462
|
+
if self.namespaceURI:
|
|
463
|
+
return info.isIdNS(self.namespaceURI, self.localName)
|
|
464
|
+
else:
|
|
465
|
+
return info.isId(self.nodeName)
|
|
466
|
+
|
|
467
|
+
def _get_schemaType(self):
|
|
468
|
+
doc = self.ownerDocument
|
|
469
|
+
elem = self.ownerElement
|
|
470
|
+
if doc is None or elem is None:
|
|
471
|
+
return _no_type
|
|
472
|
+
|
|
473
|
+
info = doc._get_elem_info(elem)
|
|
474
|
+
if info is None:
|
|
475
|
+
return _no_type
|
|
476
|
+
if self.namespaceURI:
|
|
477
|
+
return info.getAttributeTypeNS(self.namespaceURI, self.localName)
|
|
478
|
+
else:
|
|
479
|
+
return info.getAttributeType(self.nodeName)
|
|
480
|
+
|
|
481
|
+
defproperty(Attr, "isId", doc="True if this attribute is an ID.")
|
|
482
|
+
defproperty(Attr, "localName", doc="Namespace-local name of this attribute.")
|
|
483
|
+
defproperty(Attr, "schemaType", doc="Schema type for this attribute.")
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
class NamedNodeMap(object):
|
|
487
|
+
"""The attribute list is a transient interface to the underlying
|
|
488
|
+
dictionaries. Mutations here will change the underlying element's
|
|
489
|
+
dictionary.
|
|
490
|
+
|
|
491
|
+
Ordering is imposed artificially and does not reflect the order of
|
|
492
|
+
attributes as found in an input document.
|
|
493
|
+
"""
|
|
494
|
+
|
|
495
|
+
__slots__ = ('_attrs', '_attrsNS', '_ownerElement')
|
|
496
|
+
|
|
497
|
+
def __init__(self, attrs, attrsNS, ownerElement):
|
|
498
|
+
self._attrs = attrs
|
|
499
|
+
self._attrsNS = attrsNS
|
|
500
|
+
self._ownerElement = ownerElement
|
|
501
|
+
|
|
502
|
+
def _get_length(self):
|
|
503
|
+
return len(self._attrs)
|
|
504
|
+
|
|
505
|
+
def item(self, index):
|
|
506
|
+
try:
|
|
507
|
+
return self[list(self._attrs.keys())[index]]
|
|
508
|
+
except IndexError:
|
|
509
|
+
return None
|
|
510
|
+
|
|
511
|
+
def items(self):
|
|
512
|
+
L = []
|
|
513
|
+
for node in self._attrs.values():
|
|
514
|
+
L.append((node.nodeName, node.value))
|
|
515
|
+
return L
|
|
516
|
+
|
|
517
|
+
def itemsNS(self):
|
|
518
|
+
L = []
|
|
519
|
+
for node in self._attrs.values():
|
|
520
|
+
L.append(((node.namespaceURI, node.localName), node.value))
|
|
521
|
+
return L
|
|
522
|
+
|
|
523
|
+
def __contains__(self, key):
|
|
524
|
+
if isinstance(key, str):
|
|
525
|
+
return key in self._attrs
|
|
526
|
+
else:
|
|
527
|
+
return key in self._attrsNS
|
|
528
|
+
|
|
529
|
+
def keys(self):
|
|
530
|
+
return self._attrs.keys()
|
|
531
|
+
|
|
532
|
+
def keysNS(self):
|
|
533
|
+
return self._attrsNS.keys()
|
|
534
|
+
|
|
535
|
+
def values(self):
|
|
536
|
+
return self._attrs.values()
|
|
537
|
+
|
|
538
|
+
def get(self, name, value=None):
|
|
539
|
+
return self._attrs.get(name, value)
|
|
540
|
+
|
|
541
|
+
__len__ = _get_length
|
|
542
|
+
|
|
543
|
+
def _cmp(self, other):
|
|
544
|
+
if self._attrs is getattr(other, "_attrs", None):
|
|
545
|
+
return 0
|
|
546
|
+
else:
|
|
547
|
+
return (id(self) > id(other)) - (id(self) < id(other))
|
|
548
|
+
|
|
549
|
+
def __eq__(self, other):
|
|
550
|
+
return self._cmp(other) == 0
|
|
551
|
+
|
|
552
|
+
def __ge__(self, other):
|
|
553
|
+
return self._cmp(other) >= 0
|
|
554
|
+
|
|
555
|
+
def __gt__(self, other):
|
|
556
|
+
return self._cmp(other) > 0
|
|
557
|
+
|
|
558
|
+
def __le__(self, other):
|
|
559
|
+
return self._cmp(other) <= 0
|
|
560
|
+
|
|
561
|
+
def __lt__(self, other):
|
|
562
|
+
return self._cmp(other) < 0
|
|
563
|
+
|
|
564
|
+
def __getitem__(self, attname_or_tuple):
|
|
565
|
+
if isinstance(attname_or_tuple, tuple):
|
|
566
|
+
return self._attrsNS[attname_or_tuple]
|
|
567
|
+
else:
|
|
568
|
+
return self._attrs[attname_or_tuple]
|
|
569
|
+
|
|
570
|
+
# same as set
|
|
571
|
+
def __setitem__(self, attname, value):
|
|
572
|
+
if isinstance(value, str):
|
|
573
|
+
try:
|
|
574
|
+
node = self._attrs[attname]
|
|
575
|
+
except KeyError:
|
|
576
|
+
node = Attr(attname)
|
|
577
|
+
node.ownerDocument = self._ownerElement.ownerDocument
|
|
578
|
+
self.setNamedItem(node)
|
|
579
|
+
node.value = value
|
|
580
|
+
else:
|
|
581
|
+
if not isinstance(value, Attr):
|
|
582
|
+
raise TypeError("value must be a string or Attr object")
|
|
583
|
+
node = value
|
|
584
|
+
self.setNamedItem(node)
|
|
585
|
+
|
|
586
|
+
def getNamedItem(self, name):
|
|
587
|
+
try:
|
|
588
|
+
return self._attrs[name]
|
|
589
|
+
except KeyError:
|
|
590
|
+
return None
|
|
591
|
+
|
|
592
|
+
def getNamedItemNS(self, namespaceURI, localName):
|
|
593
|
+
try:
|
|
594
|
+
return self._attrsNS[(namespaceURI, localName)]
|
|
595
|
+
except KeyError:
|
|
596
|
+
return None
|
|
597
|
+
|
|
598
|
+
def removeNamedItem(self, name):
|
|
599
|
+
n = self.getNamedItem(name)
|
|
600
|
+
if n is not None:
|
|
601
|
+
_clear_id_cache(self._ownerElement)
|
|
602
|
+
del self._attrs[n.nodeName]
|
|
603
|
+
del self._attrsNS[(n.namespaceURI, n.localName)]
|
|
604
|
+
if hasattr(n, 'ownerElement'):
|
|
605
|
+
n.ownerElement = None
|
|
606
|
+
return n
|
|
607
|
+
else:
|
|
608
|
+
raise xml.dom.NotFoundErr()
|
|
609
|
+
|
|
610
|
+
def removeNamedItemNS(self, namespaceURI, localName):
|
|
611
|
+
n = self.getNamedItemNS(namespaceURI, localName)
|
|
612
|
+
if n is not None:
|
|
613
|
+
_clear_id_cache(self._ownerElement)
|
|
614
|
+
del self._attrsNS[(n.namespaceURI, n.localName)]
|
|
615
|
+
del self._attrs[n.nodeName]
|
|
616
|
+
if hasattr(n, 'ownerElement'):
|
|
617
|
+
n.ownerElement = None
|
|
618
|
+
return n
|
|
619
|
+
else:
|
|
620
|
+
raise xml.dom.NotFoundErr()
|
|
621
|
+
|
|
622
|
+
def setNamedItem(self, node):
|
|
623
|
+
if not isinstance(node, Attr):
|
|
624
|
+
raise xml.dom.HierarchyRequestErr(
|
|
625
|
+
"%s cannot be child of %s" % (repr(node), repr(self)))
|
|
626
|
+
old = self._attrs.get(node.name)
|
|
627
|
+
if old:
|
|
628
|
+
old.unlink()
|
|
629
|
+
self._attrs[node.name] = node
|
|
630
|
+
self._attrsNS[(node.namespaceURI, node.localName)] = node
|
|
631
|
+
node.ownerElement = self._ownerElement
|
|
632
|
+
_clear_id_cache(node.ownerElement)
|
|
633
|
+
return old
|
|
634
|
+
|
|
635
|
+
def setNamedItemNS(self, node):
|
|
636
|
+
return self.setNamedItem(node)
|
|
637
|
+
|
|
638
|
+
def __delitem__(self, attname_or_tuple):
|
|
639
|
+
node = self[attname_or_tuple]
|
|
640
|
+
_clear_id_cache(node.ownerElement)
|
|
641
|
+
node.unlink()
|
|
642
|
+
|
|
643
|
+
def __getstate__(self):
|
|
644
|
+
return self._attrs, self._attrsNS, self._ownerElement
|
|
645
|
+
|
|
646
|
+
def __setstate__(self, state):
|
|
647
|
+
self._attrs, self._attrsNS, self._ownerElement = state
|
|
648
|
+
|
|
649
|
+
defproperty(NamedNodeMap, "length",
|
|
650
|
+
doc="Number of nodes in the NamedNodeMap.")
|
|
651
|
+
|
|
652
|
+
AttributeList = NamedNodeMap
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
class TypeInfo(object):
|
|
656
|
+
__slots__ = 'namespace', 'name'
|
|
657
|
+
|
|
658
|
+
def __init__(self, namespace, name):
|
|
659
|
+
self.namespace = namespace
|
|
660
|
+
self.name = name
|
|
661
|
+
|
|
662
|
+
def __repr__(self):
|
|
663
|
+
if self.namespace:
|
|
664
|
+
return "<%s %r (from %r)>" % (self.__class__.__name__, self.name,
|
|
665
|
+
self.namespace)
|
|
666
|
+
else:
|
|
667
|
+
return "<%s %r>" % (self.__class__.__name__, self.name)
|
|
668
|
+
|
|
669
|
+
def _get_name(self):
|
|
670
|
+
return self.name
|
|
671
|
+
|
|
672
|
+
def _get_namespace(self):
|
|
673
|
+
return self.namespace
|
|
674
|
+
|
|
675
|
+
_no_type = TypeInfo(None, None)
|
|
676
|
+
|
|
677
|
+
class Element(Node):
|
|
678
|
+
__slots__=('ownerDocument', 'parentNode', 'tagName', 'nodeName', 'prefix',
|
|
679
|
+
'namespaceURI', '_localName', 'childNodes', '_attrs', '_attrsNS',
|
|
680
|
+
'nextSibling', 'previousSibling')
|
|
681
|
+
nodeType = Node.ELEMENT_NODE
|
|
682
|
+
nodeValue = None
|
|
683
|
+
schemaType = _no_type
|
|
684
|
+
|
|
685
|
+
_magic_id_nodes = 0
|
|
686
|
+
|
|
687
|
+
_child_node_types = (Node.ELEMENT_NODE,
|
|
688
|
+
Node.PROCESSING_INSTRUCTION_NODE,
|
|
689
|
+
Node.COMMENT_NODE,
|
|
690
|
+
Node.TEXT_NODE,
|
|
691
|
+
Node.CDATA_SECTION_NODE,
|
|
692
|
+
Node.ENTITY_REFERENCE_NODE)
|
|
693
|
+
|
|
694
|
+
def __init__(self, tagName, namespaceURI=EMPTY_NAMESPACE, prefix=None,
|
|
695
|
+
localName=None):
|
|
696
|
+
self.ownerDocument = None
|
|
697
|
+
self.parentNode = None
|
|
698
|
+
self.tagName = self.nodeName = tagName
|
|
699
|
+
self.prefix = prefix
|
|
700
|
+
self.namespaceURI = namespaceURI
|
|
701
|
+
self.childNodes = NodeList()
|
|
702
|
+
self.nextSibling = self.previousSibling = None
|
|
703
|
+
|
|
704
|
+
# Attribute dictionaries are lazily created
|
|
705
|
+
# attributes are double-indexed:
|
|
706
|
+
# tagName -> Attribute
|
|
707
|
+
# URI,localName -> Attribute
|
|
708
|
+
# in the future: consider lazy generation
|
|
709
|
+
# of attribute objects this is too tricky
|
|
710
|
+
# for now because of headaches with
|
|
711
|
+
# namespaces.
|
|
712
|
+
self._attrs = None
|
|
713
|
+
self._attrsNS = None
|
|
714
|
+
|
|
715
|
+
def _ensure_attributes(self):
|
|
716
|
+
if self._attrs is None:
|
|
717
|
+
self._attrs = {}
|
|
718
|
+
self._attrsNS = {}
|
|
719
|
+
|
|
720
|
+
def _get_localName(self):
|
|
721
|
+
try:
|
|
722
|
+
return self._localName
|
|
723
|
+
except AttributeError:
|
|
724
|
+
return self.tagName.split(":", 1)[-1]
|
|
725
|
+
|
|
726
|
+
def _get_tagName(self):
|
|
727
|
+
return self.tagName
|
|
728
|
+
|
|
729
|
+
def unlink(self):
|
|
730
|
+
if self._attrs is not None:
|
|
731
|
+
for attr in list(self._attrs.values()):
|
|
732
|
+
attr.unlink()
|
|
733
|
+
self._attrs = None
|
|
734
|
+
self._attrsNS = None
|
|
735
|
+
Node.unlink(self)
|
|
736
|
+
|
|
737
|
+
def getAttribute(self, attname):
|
|
738
|
+
"""Returns the value of the specified attribute.
|
|
739
|
+
|
|
740
|
+
Returns the value of the element's attribute named attname as
|
|
741
|
+
a string. An empty string is returned if the element does not
|
|
742
|
+
have such an attribute. Note that an empty string may also be
|
|
743
|
+
returned as an explicitly given attribute value, use the
|
|
744
|
+
hasAttribute method to distinguish these two cases.
|
|
745
|
+
"""
|
|
746
|
+
if self._attrs is None:
|
|
747
|
+
return ""
|
|
748
|
+
try:
|
|
749
|
+
return self._attrs[attname].value
|
|
750
|
+
except KeyError:
|
|
751
|
+
return ""
|
|
752
|
+
|
|
753
|
+
def getAttributeNS(self, namespaceURI, localName):
|
|
754
|
+
if self._attrsNS is None:
|
|
755
|
+
return ""
|
|
756
|
+
try:
|
|
757
|
+
return self._attrsNS[(namespaceURI, localName)].value
|
|
758
|
+
except KeyError:
|
|
759
|
+
return ""
|
|
760
|
+
|
|
761
|
+
def setAttribute(self, attname, value):
|
|
762
|
+
attr = self.getAttributeNode(attname)
|
|
763
|
+
if attr is None:
|
|
764
|
+
attr = Attr(attname)
|
|
765
|
+
attr.value = value # also sets nodeValue
|
|
766
|
+
attr.ownerDocument = self.ownerDocument
|
|
767
|
+
self.setAttributeNode(attr)
|
|
768
|
+
elif value != attr.value:
|
|
769
|
+
attr.value = value
|
|
770
|
+
if attr.isId:
|
|
771
|
+
_clear_id_cache(self)
|
|
772
|
+
|
|
773
|
+
def setAttributeNS(self, namespaceURI, qualifiedName, value):
|
|
774
|
+
prefix, localname = _nssplit(qualifiedName)
|
|
775
|
+
attr = self.getAttributeNodeNS(namespaceURI, localname)
|
|
776
|
+
if attr is None:
|
|
777
|
+
attr = Attr(qualifiedName, namespaceURI, localname, prefix)
|
|
778
|
+
attr.value = value
|
|
779
|
+
attr.ownerDocument = self.ownerDocument
|
|
780
|
+
self.setAttributeNode(attr)
|
|
781
|
+
else:
|
|
782
|
+
if value != attr.value:
|
|
783
|
+
attr.value = value
|
|
784
|
+
if attr.isId:
|
|
785
|
+
_clear_id_cache(self)
|
|
786
|
+
if attr.prefix != prefix:
|
|
787
|
+
attr.prefix = prefix
|
|
788
|
+
attr.nodeName = qualifiedName
|
|
789
|
+
|
|
790
|
+
def getAttributeNode(self, attrname):
|
|
791
|
+
if self._attrs is None:
|
|
792
|
+
return None
|
|
793
|
+
return self._attrs.get(attrname)
|
|
794
|
+
|
|
795
|
+
def getAttributeNodeNS(self, namespaceURI, localName):
|
|
796
|
+
if self._attrsNS is None:
|
|
797
|
+
return None
|
|
798
|
+
return self._attrsNS.get((namespaceURI, localName))
|
|
799
|
+
|
|
800
|
+
def setAttributeNode(self, attr):
|
|
801
|
+
if attr.ownerElement not in (None, self):
|
|
802
|
+
raise xml.dom.InuseAttributeErr("attribute node already owned")
|
|
803
|
+
self._ensure_attributes()
|
|
804
|
+
old1 = self._attrs.get(attr.name, None)
|
|
805
|
+
if old1 is not None:
|
|
806
|
+
self.removeAttributeNode(old1)
|
|
807
|
+
old2 = self._attrsNS.get((attr.namespaceURI, attr.localName), None)
|
|
808
|
+
if old2 is not None and old2 is not old1:
|
|
809
|
+
self.removeAttributeNode(old2)
|
|
810
|
+
_set_attribute_node(self, attr)
|
|
811
|
+
|
|
812
|
+
if old1 is not attr:
|
|
813
|
+
# It might have already been part of this node, in which case
|
|
814
|
+
# it doesn't represent a change, and should not be returned.
|
|
815
|
+
return old1
|
|
816
|
+
if old2 is not attr:
|
|
817
|
+
return old2
|
|
818
|
+
|
|
819
|
+
setAttributeNodeNS = setAttributeNode
|
|
820
|
+
|
|
821
|
+
def removeAttribute(self, name):
|
|
822
|
+
if self._attrsNS is None:
|
|
823
|
+
raise xml.dom.NotFoundErr()
|
|
824
|
+
try:
|
|
825
|
+
attr = self._attrs[name]
|
|
826
|
+
except KeyError:
|
|
827
|
+
raise xml.dom.NotFoundErr()
|
|
828
|
+
self.removeAttributeNode(attr)
|
|
829
|
+
|
|
830
|
+
def removeAttributeNS(self, namespaceURI, localName):
|
|
831
|
+
if self._attrsNS is None:
|
|
832
|
+
raise xml.dom.NotFoundErr()
|
|
833
|
+
try:
|
|
834
|
+
attr = self._attrsNS[(namespaceURI, localName)]
|
|
835
|
+
except KeyError:
|
|
836
|
+
raise xml.dom.NotFoundErr()
|
|
837
|
+
self.removeAttributeNode(attr)
|
|
838
|
+
|
|
839
|
+
def removeAttributeNode(self, node):
|
|
840
|
+
if node is None:
|
|
841
|
+
raise xml.dom.NotFoundErr()
|
|
842
|
+
try:
|
|
843
|
+
self._attrs[node.name]
|
|
844
|
+
except KeyError:
|
|
845
|
+
raise xml.dom.NotFoundErr()
|
|
846
|
+
_clear_id_cache(self)
|
|
847
|
+
node.unlink()
|
|
848
|
+
# Restore this since the node is still useful and otherwise
|
|
849
|
+
# unlinked
|
|
850
|
+
node.ownerDocument = self.ownerDocument
|
|
851
|
+
return node
|
|
852
|
+
|
|
853
|
+
removeAttributeNodeNS = removeAttributeNode
|
|
854
|
+
|
|
855
|
+
def hasAttribute(self, name):
|
|
856
|
+
"""Checks whether the element has an attribute with the specified name.
|
|
857
|
+
|
|
858
|
+
Returns True if the element has an attribute with the specified name.
|
|
859
|
+
Otherwise, returns False.
|
|
860
|
+
"""
|
|
861
|
+
if self._attrs is None:
|
|
862
|
+
return False
|
|
863
|
+
return name in self._attrs
|
|
864
|
+
|
|
865
|
+
def hasAttributeNS(self, namespaceURI, localName):
|
|
866
|
+
if self._attrsNS is None:
|
|
867
|
+
return False
|
|
868
|
+
return (namespaceURI, localName) in self._attrsNS
|
|
869
|
+
|
|
870
|
+
def getElementsByTagName(self, name):
|
|
871
|
+
"""Returns all descendant elements with the given tag name.
|
|
872
|
+
|
|
873
|
+
Returns the list of all descendant elements (not direct children
|
|
874
|
+
only) with the specified tag name.
|
|
875
|
+
"""
|
|
876
|
+
return _get_elements_by_tagName_helper(self, name, NodeList())
|
|
877
|
+
|
|
878
|
+
def getElementsByTagNameNS(self, namespaceURI, localName):
|
|
879
|
+
return _get_elements_by_tagName_ns_helper(
|
|
880
|
+
self, namespaceURI, localName, NodeList())
|
|
881
|
+
|
|
882
|
+
def __repr__(self):
|
|
883
|
+
return "<DOM Element: %s at %#x>" % (self.tagName, id(self))
|
|
884
|
+
|
|
885
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
886
|
+
"""Write an XML element to a file-like object
|
|
887
|
+
|
|
888
|
+
Write the element to the writer object that must provide
|
|
889
|
+
a write method (e.g. a file or StringIO object).
|
|
890
|
+
"""
|
|
891
|
+
# indent = current indentation
|
|
892
|
+
# addindent = indentation to add to higher levels
|
|
893
|
+
# newl = newline string
|
|
894
|
+
writer.write(indent+"<" + self.tagName)
|
|
895
|
+
|
|
896
|
+
attrs = self._get_attributes()
|
|
897
|
+
|
|
898
|
+
for a_name in attrs.keys():
|
|
899
|
+
writer.write(" %s=\"" % a_name)
|
|
900
|
+
_write_data(writer, attrs[a_name].value, True)
|
|
901
|
+
writer.write("\"")
|
|
902
|
+
if self.childNodes:
|
|
903
|
+
writer.write(">")
|
|
904
|
+
if (len(self.childNodes) == 1 and
|
|
905
|
+
self.childNodes[0].nodeType in (
|
|
906
|
+
Node.TEXT_NODE, Node.CDATA_SECTION_NODE)):
|
|
907
|
+
self.childNodes[0].writexml(writer, '', '', '')
|
|
908
|
+
else:
|
|
909
|
+
writer.write(newl)
|
|
910
|
+
for node in self.childNodes:
|
|
911
|
+
node.writexml(writer, indent+addindent, addindent, newl)
|
|
912
|
+
writer.write(indent)
|
|
913
|
+
writer.write("</%s>%s" % (self.tagName, newl))
|
|
914
|
+
else:
|
|
915
|
+
writer.write("/>%s"%(newl))
|
|
916
|
+
|
|
917
|
+
def _get_attributes(self):
|
|
918
|
+
self._ensure_attributes()
|
|
919
|
+
return NamedNodeMap(self._attrs, self._attrsNS, self)
|
|
920
|
+
|
|
921
|
+
def hasAttributes(self):
|
|
922
|
+
if self._attrs:
|
|
923
|
+
return True
|
|
924
|
+
else:
|
|
925
|
+
return False
|
|
926
|
+
|
|
927
|
+
# DOM Level 3 attributes, based on the 22 Oct 2002 draft
|
|
928
|
+
|
|
929
|
+
def setIdAttribute(self, name):
|
|
930
|
+
idAttr = self.getAttributeNode(name)
|
|
931
|
+
self.setIdAttributeNode(idAttr)
|
|
932
|
+
|
|
933
|
+
def setIdAttributeNS(self, namespaceURI, localName):
|
|
934
|
+
idAttr = self.getAttributeNodeNS(namespaceURI, localName)
|
|
935
|
+
self.setIdAttributeNode(idAttr)
|
|
936
|
+
|
|
937
|
+
def setIdAttributeNode(self, idAttr):
|
|
938
|
+
if idAttr is None or not self.isSameNode(idAttr.ownerElement):
|
|
939
|
+
raise xml.dom.NotFoundErr()
|
|
940
|
+
if _get_containing_entref(self) is not None:
|
|
941
|
+
raise xml.dom.NoModificationAllowedErr()
|
|
942
|
+
if not idAttr._is_id:
|
|
943
|
+
idAttr._is_id = True
|
|
944
|
+
self._magic_id_nodes += 1
|
|
945
|
+
self.ownerDocument._magic_id_count += 1
|
|
946
|
+
_clear_id_cache(self)
|
|
947
|
+
|
|
948
|
+
defproperty(Element, "attributes",
|
|
949
|
+
doc="NamedNodeMap of attributes on the element.")
|
|
950
|
+
defproperty(Element, "localName",
|
|
951
|
+
doc="Namespace-local name of this element.")
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
def _set_attribute_node(element, attr):
|
|
955
|
+
_clear_id_cache(element)
|
|
956
|
+
element._ensure_attributes()
|
|
957
|
+
element._attrs[attr.name] = attr
|
|
958
|
+
element._attrsNS[(attr.namespaceURI, attr.localName)] = attr
|
|
959
|
+
|
|
960
|
+
# This creates a circular reference, but Element.unlink()
|
|
961
|
+
# breaks the cycle since the references to the attribute
|
|
962
|
+
# dictionaries are tossed.
|
|
963
|
+
attr.ownerElement = element
|
|
964
|
+
|
|
965
|
+
class Childless:
|
|
966
|
+
"""Mixin that makes childless-ness easy to implement and avoids
|
|
967
|
+
the complexity of the Node methods that deal with children.
|
|
968
|
+
"""
|
|
969
|
+
__slots__ = ()
|
|
970
|
+
|
|
971
|
+
attributes = None
|
|
972
|
+
childNodes = EmptyNodeList()
|
|
973
|
+
firstChild = None
|
|
974
|
+
lastChild = None
|
|
975
|
+
|
|
976
|
+
def _get_firstChild(self):
|
|
977
|
+
return None
|
|
978
|
+
|
|
979
|
+
def _get_lastChild(self):
|
|
980
|
+
return None
|
|
981
|
+
|
|
982
|
+
def appendChild(self, node):
|
|
983
|
+
raise xml.dom.HierarchyRequestErr(
|
|
984
|
+
self.nodeName + " nodes cannot have children")
|
|
985
|
+
|
|
986
|
+
def hasChildNodes(self):
|
|
987
|
+
return False
|
|
988
|
+
|
|
989
|
+
def insertBefore(self, newChild, refChild):
|
|
990
|
+
raise xml.dom.HierarchyRequestErr(
|
|
991
|
+
self.nodeName + " nodes do not have children")
|
|
992
|
+
|
|
993
|
+
def removeChild(self, oldChild):
|
|
994
|
+
raise xml.dom.NotFoundErr(
|
|
995
|
+
self.nodeName + " nodes do not have children")
|
|
996
|
+
|
|
997
|
+
def normalize(self):
|
|
998
|
+
# For childless nodes, normalize() has nothing to do.
|
|
999
|
+
pass
|
|
1000
|
+
|
|
1001
|
+
def replaceChild(self, newChild, oldChild):
|
|
1002
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1003
|
+
self.nodeName + " nodes do not have children")
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
class ProcessingInstruction(Childless, Node):
|
|
1007
|
+
nodeType = Node.PROCESSING_INSTRUCTION_NODE
|
|
1008
|
+
__slots__ = ('target', 'data')
|
|
1009
|
+
|
|
1010
|
+
def __init__(self, target, data):
|
|
1011
|
+
self.target = target
|
|
1012
|
+
self.data = data
|
|
1013
|
+
|
|
1014
|
+
# nodeValue is an alias for data
|
|
1015
|
+
def _get_nodeValue(self):
|
|
1016
|
+
return self.data
|
|
1017
|
+
def _set_nodeValue(self, value):
|
|
1018
|
+
self.data = value
|
|
1019
|
+
nodeValue = property(_get_nodeValue, _set_nodeValue)
|
|
1020
|
+
|
|
1021
|
+
# nodeName is an alias for target
|
|
1022
|
+
def _get_nodeName(self):
|
|
1023
|
+
return self.target
|
|
1024
|
+
def _set_nodeName(self, value):
|
|
1025
|
+
self.target = value
|
|
1026
|
+
nodeName = property(_get_nodeName, _set_nodeName)
|
|
1027
|
+
|
|
1028
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
1029
|
+
writer.write("%s<?%s %s?>%s" % (indent,self.target, self.data, newl))
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
class CharacterData(Childless, Node):
|
|
1033
|
+
__slots__=('_data', 'ownerDocument','parentNode', 'previousSibling', 'nextSibling')
|
|
1034
|
+
|
|
1035
|
+
def __init__(self):
|
|
1036
|
+
self.ownerDocument = self.parentNode = None
|
|
1037
|
+
self.previousSibling = self.nextSibling = None
|
|
1038
|
+
self._data = ''
|
|
1039
|
+
Node.__init__(self)
|
|
1040
|
+
|
|
1041
|
+
def _get_length(self):
|
|
1042
|
+
return len(self.data)
|
|
1043
|
+
__len__ = _get_length
|
|
1044
|
+
|
|
1045
|
+
def _get_data(self):
|
|
1046
|
+
return self._data
|
|
1047
|
+
def _set_data(self, data):
|
|
1048
|
+
self._data = data
|
|
1049
|
+
|
|
1050
|
+
data = nodeValue = property(_get_data, _set_data)
|
|
1051
|
+
|
|
1052
|
+
def __repr__(self):
|
|
1053
|
+
data = self.data
|
|
1054
|
+
if len(data) > 10:
|
|
1055
|
+
dotdotdot = "..."
|
|
1056
|
+
else:
|
|
1057
|
+
dotdotdot = ""
|
|
1058
|
+
return '<DOM %s node "%r%s">' % (
|
|
1059
|
+
self.__class__.__name__, data[0:10], dotdotdot)
|
|
1060
|
+
|
|
1061
|
+
def substringData(self, offset, count):
|
|
1062
|
+
if offset < 0:
|
|
1063
|
+
raise xml.dom.IndexSizeErr("offset cannot be negative")
|
|
1064
|
+
if offset >= len(self.data):
|
|
1065
|
+
raise xml.dom.IndexSizeErr("offset cannot be beyond end of data")
|
|
1066
|
+
if count < 0:
|
|
1067
|
+
raise xml.dom.IndexSizeErr("count cannot be negative")
|
|
1068
|
+
return self.data[offset:offset+count]
|
|
1069
|
+
|
|
1070
|
+
def appendData(self, arg):
|
|
1071
|
+
self.data = self.data + arg
|
|
1072
|
+
|
|
1073
|
+
def insertData(self, offset, arg):
|
|
1074
|
+
if offset < 0:
|
|
1075
|
+
raise xml.dom.IndexSizeErr("offset cannot be negative")
|
|
1076
|
+
if offset >= len(self.data):
|
|
1077
|
+
raise xml.dom.IndexSizeErr("offset cannot be beyond end of data")
|
|
1078
|
+
if arg:
|
|
1079
|
+
self.data = "%s%s%s" % (
|
|
1080
|
+
self.data[:offset], arg, self.data[offset:])
|
|
1081
|
+
|
|
1082
|
+
def deleteData(self, offset, count):
|
|
1083
|
+
if offset < 0:
|
|
1084
|
+
raise xml.dom.IndexSizeErr("offset cannot be negative")
|
|
1085
|
+
if offset >= len(self.data):
|
|
1086
|
+
raise xml.dom.IndexSizeErr("offset cannot be beyond end of data")
|
|
1087
|
+
if count < 0:
|
|
1088
|
+
raise xml.dom.IndexSizeErr("count cannot be negative")
|
|
1089
|
+
if count:
|
|
1090
|
+
self.data = self.data[:offset] + self.data[offset+count:]
|
|
1091
|
+
|
|
1092
|
+
def replaceData(self, offset, count, arg):
|
|
1093
|
+
if offset < 0:
|
|
1094
|
+
raise xml.dom.IndexSizeErr("offset cannot be negative")
|
|
1095
|
+
if offset >= len(self.data):
|
|
1096
|
+
raise xml.dom.IndexSizeErr("offset cannot be beyond end of data")
|
|
1097
|
+
if count < 0:
|
|
1098
|
+
raise xml.dom.IndexSizeErr("count cannot be negative")
|
|
1099
|
+
if count:
|
|
1100
|
+
self.data = "%s%s%s" % (
|
|
1101
|
+
self.data[:offset], arg, self.data[offset+count:])
|
|
1102
|
+
|
|
1103
|
+
defproperty(CharacterData, "length", doc="Length of the string data.")
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
class Text(CharacterData):
|
|
1107
|
+
__slots__ = ()
|
|
1108
|
+
|
|
1109
|
+
nodeType = Node.TEXT_NODE
|
|
1110
|
+
nodeName = "#text"
|
|
1111
|
+
attributes = None
|
|
1112
|
+
|
|
1113
|
+
def splitText(self, offset):
|
|
1114
|
+
if offset < 0 or offset > len(self.data):
|
|
1115
|
+
raise xml.dom.IndexSizeErr("illegal offset value")
|
|
1116
|
+
newText = self.__class__()
|
|
1117
|
+
newText.data = self.data[offset:]
|
|
1118
|
+
newText.ownerDocument = self.ownerDocument
|
|
1119
|
+
next = self.nextSibling
|
|
1120
|
+
if self.parentNode and self in self.parentNode.childNodes:
|
|
1121
|
+
if next is None:
|
|
1122
|
+
self.parentNode.appendChild(newText)
|
|
1123
|
+
else:
|
|
1124
|
+
self.parentNode.insertBefore(newText, next)
|
|
1125
|
+
self.data = self.data[:offset]
|
|
1126
|
+
return newText
|
|
1127
|
+
|
|
1128
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
1129
|
+
_write_data(writer, "%s%s%s" % (indent, self.data, newl), False)
|
|
1130
|
+
|
|
1131
|
+
# DOM Level 3 (WD 9 April 2002)
|
|
1132
|
+
|
|
1133
|
+
def _get_wholeText(self):
|
|
1134
|
+
L = [self.data]
|
|
1135
|
+
n = self.previousSibling
|
|
1136
|
+
while n is not None:
|
|
1137
|
+
if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
|
|
1138
|
+
L.insert(0, n.data)
|
|
1139
|
+
n = n.previousSibling
|
|
1140
|
+
else:
|
|
1141
|
+
break
|
|
1142
|
+
n = self.nextSibling
|
|
1143
|
+
while n is not None:
|
|
1144
|
+
if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
|
|
1145
|
+
L.append(n.data)
|
|
1146
|
+
n = n.nextSibling
|
|
1147
|
+
else:
|
|
1148
|
+
break
|
|
1149
|
+
return ''.join(L)
|
|
1150
|
+
|
|
1151
|
+
def replaceWholeText(self, content):
|
|
1152
|
+
# XXX This needs to be seriously changed if minidom ever
|
|
1153
|
+
# supports EntityReference nodes.
|
|
1154
|
+
parent = self.parentNode
|
|
1155
|
+
n = self.previousSibling
|
|
1156
|
+
while n is not None:
|
|
1157
|
+
if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
|
|
1158
|
+
next = n.previousSibling
|
|
1159
|
+
parent.removeChild(n)
|
|
1160
|
+
n = next
|
|
1161
|
+
else:
|
|
1162
|
+
break
|
|
1163
|
+
n = self.nextSibling
|
|
1164
|
+
if not content:
|
|
1165
|
+
parent.removeChild(self)
|
|
1166
|
+
while n is not None:
|
|
1167
|
+
if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
|
|
1168
|
+
next = n.nextSibling
|
|
1169
|
+
parent.removeChild(n)
|
|
1170
|
+
n = next
|
|
1171
|
+
else:
|
|
1172
|
+
break
|
|
1173
|
+
if content:
|
|
1174
|
+
self.data = content
|
|
1175
|
+
return self
|
|
1176
|
+
else:
|
|
1177
|
+
return None
|
|
1178
|
+
|
|
1179
|
+
def _get_isWhitespaceInElementContent(self):
|
|
1180
|
+
if self.data.strip(_XML_WHITESPACE):
|
|
1181
|
+
return False
|
|
1182
|
+
elem = _get_containing_element(self)
|
|
1183
|
+
if elem is None:
|
|
1184
|
+
return False
|
|
1185
|
+
info = self.ownerDocument._get_elem_info(elem)
|
|
1186
|
+
if info is None:
|
|
1187
|
+
return False
|
|
1188
|
+
else:
|
|
1189
|
+
return info.isElementContent()
|
|
1190
|
+
|
|
1191
|
+
defproperty(Text, "isWhitespaceInElementContent",
|
|
1192
|
+
doc="True iff this text node contains only whitespace"
|
|
1193
|
+
" and is in element content.")
|
|
1194
|
+
defproperty(Text, "wholeText",
|
|
1195
|
+
doc="The text of all logically-adjacent text nodes.")
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
def _get_containing_element(node):
|
|
1199
|
+
c = node.parentNode
|
|
1200
|
+
while c is not None:
|
|
1201
|
+
if c.nodeType == Node.ELEMENT_NODE:
|
|
1202
|
+
return c
|
|
1203
|
+
c = c.parentNode
|
|
1204
|
+
return None
|
|
1205
|
+
|
|
1206
|
+
def _get_containing_entref(node):
|
|
1207
|
+
c = node.parentNode
|
|
1208
|
+
while c is not None:
|
|
1209
|
+
if c.nodeType == Node.ENTITY_REFERENCE_NODE:
|
|
1210
|
+
return c
|
|
1211
|
+
c = c.parentNode
|
|
1212
|
+
return None
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
class Comment(CharacterData):
|
|
1216
|
+
nodeType = Node.COMMENT_NODE
|
|
1217
|
+
nodeName = "#comment"
|
|
1218
|
+
|
|
1219
|
+
def __init__(self, data):
|
|
1220
|
+
CharacterData.__init__(self)
|
|
1221
|
+
self._data = data
|
|
1222
|
+
|
|
1223
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
1224
|
+
if "--" in self.data:
|
|
1225
|
+
raise ValueError("'--' is not allowed in a comment node")
|
|
1226
|
+
writer.write("%s<!--%s-->%s" % (indent, self.data, newl))
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
class CDATASection(Text):
|
|
1230
|
+
__slots__ = ()
|
|
1231
|
+
|
|
1232
|
+
nodeType = Node.CDATA_SECTION_NODE
|
|
1233
|
+
nodeName = "#cdata-section"
|
|
1234
|
+
|
|
1235
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
1236
|
+
if self.data.find("]]>") >= 0:
|
|
1237
|
+
raise ValueError("']]>' not allowed in a CDATA section")
|
|
1238
|
+
writer.write("<![CDATA[%s]]>" % self.data)
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
class ReadOnlySequentialNamedNodeMap(object):
|
|
1242
|
+
__slots__ = '_seq',
|
|
1243
|
+
|
|
1244
|
+
def __init__(self, seq=()):
|
|
1245
|
+
# seq should be a list or tuple
|
|
1246
|
+
self._seq = seq
|
|
1247
|
+
|
|
1248
|
+
def __len__(self):
|
|
1249
|
+
return len(self._seq)
|
|
1250
|
+
|
|
1251
|
+
def _get_length(self):
|
|
1252
|
+
return len(self._seq)
|
|
1253
|
+
|
|
1254
|
+
def getNamedItem(self, name):
|
|
1255
|
+
for n in self._seq:
|
|
1256
|
+
if n.nodeName == name:
|
|
1257
|
+
return n
|
|
1258
|
+
|
|
1259
|
+
def getNamedItemNS(self, namespaceURI, localName):
|
|
1260
|
+
for n in self._seq:
|
|
1261
|
+
if n.namespaceURI == namespaceURI and n.localName == localName:
|
|
1262
|
+
return n
|
|
1263
|
+
|
|
1264
|
+
def __getitem__(self, name_or_tuple):
|
|
1265
|
+
if isinstance(name_or_tuple, tuple):
|
|
1266
|
+
node = self.getNamedItemNS(*name_or_tuple)
|
|
1267
|
+
else:
|
|
1268
|
+
node = self.getNamedItem(name_or_tuple)
|
|
1269
|
+
if node is None:
|
|
1270
|
+
raise KeyError(name_or_tuple)
|
|
1271
|
+
return node
|
|
1272
|
+
|
|
1273
|
+
def item(self, index):
|
|
1274
|
+
if index < 0:
|
|
1275
|
+
return None
|
|
1276
|
+
try:
|
|
1277
|
+
return self._seq[index]
|
|
1278
|
+
except IndexError:
|
|
1279
|
+
return None
|
|
1280
|
+
|
|
1281
|
+
def removeNamedItem(self, name):
|
|
1282
|
+
raise xml.dom.NoModificationAllowedErr(
|
|
1283
|
+
"NamedNodeMap instance is read-only")
|
|
1284
|
+
|
|
1285
|
+
def removeNamedItemNS(self, namespaceURI, localName):
|
|
1286
|
+
raise xml.dom.NoModificationAllowedErr(
|
|
1287
|
+
"NamedNodeMap instance is read-only")
|
|
1288
|
+
|
|
1289
|
+
def setNamedItem(self, node):
|
|
1290
|
+
raise xml.dom.NoModificationAllowedErr(
|
|
1291
|
+
"NamedNodeMap instance is read-only")
|
|
1292
|
+
|
|
1293
|
+
def setNamedItemNS(self, node):
|
|
1294
|
+
raise xml.dom.NoModificationAllowedErr(
|
|
1295
|
+
"NamedNodeMap instance is read-only")
|
|
1296
|
+
|
|
1297
|
+
def __getstate__(self):
|
|
1298
|
+
return [self._seq]
|
|
1299
|
+
|
|
1300
|
+
def __setstate__(self, state):
|
|
1301
|
+
self._seq = state[0]
|
|
1302
|
+
|
|
1303
|
+
defproperty(ReadOnlySequentialNamedNodeMap, "length",
|
|
1304
|
+
doc="Number of entries in the NamedNodeMap.")
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
class Identified:
|
|
1308
|
+
"""Mix-in class that supports the publicId and systemId attributes."""
|
|
1309
|
+
|
|
1310
|
+
__slots__ = 'publicId', 'systemId'
|
|
1311
|
+
|
|
1312
|
+
def _identified_mixin_init(self, publicId, systemId):
|
|
1313
|
+
self.publicId = publicId
|
|
1314
|
+
self.systemId = systemId
|
|
1315
|
+
|
|
1316
|
+
def _get_publicId(self):
|
|
1317
|
+
return self.publicId
|
|
1318
|
+
|
|
1319
|
+
def _get_systemId(self):
|
|
1320
|
+
return self.systemId
|
|
1321
|
+
|
|
1322
|
+
class DocumentType(Identified, Childless, Node):
|
|
1323
|
+
nodeType = Node.DOCUMENT_TYPE_NODE
|
|
1324
|
+
nodeValue = None
|
|
1325
|
+
name = None
|
|
1326
|
+
publicId = None
|
|
1327
|
+
systemId = None
|
|
1328
|
+
internalSubset = None
|
|
1329
|
+
|
|
1330
|
+
def __init__(self, qualifiedName):
|
|
1331
|
+
self.entities = ReadOnlySequentialNamedNodeMap()
|
|
1332
|
+
self.notations = ReadOnlySequentialNamedNodeMap()
|
|
1333
|
+
if qualifiedName:
|
|
1334
|
+
prefix, localname = _nssplit(qualifiedName)
|
|
1335
|
+
self.name = localname
|
|
1336
|
+
self.nodeName = self.name
|
|
1337
|
+
|
|
1338
|
+
def _get_internalSubset(self):
|
|
1339
|
+
return self.internalSubset
|
|
1340
|
+
|
|
1341
|
+
def cloneNode(self, deep):
|
|
1342
|
+
if self.ownerDocument is None:
|
|
1343
|
+
# it's ok
|
|
1344
|
+
clone = DocumentType(None)
|
|
1345
|
+
clone.name = self.name
|
|
1346
|
+
clone.nodeName = self.name
|
|
1347
|
+
operation = xml.dom.UserDataHandler.NODE_CLONED
|
|
1348
|
+
if deep:
|
|
1349
|
+
clone.entities._seq = []
|
|
1350
|
+
clone.notations._seq = []
|
|
1351
|
+
for n in self.notations._seq:
|
|
1352
|
+
notation = Notation(n.nodeName, n.publicId, n.systemId)
|
|
1353
|
+
clone.notations._seq.append(notation)
|
|
1354
|
+
n._call_user_data_handler(operation, n, notation)
|
|
1355
|
+
for e in self.entities._seq:
|
|
1356
|
+
entity = Entity(e.nodeName, e.publicId, e.systemId,
|
|
1357
|
+
e.notationName)
|
|
1358
|
+
entity.actualEncoding = e.actualEncoding
|
|
1359
|
+
entity.encoding = e.encoding
|
|
1360
|
+
entity.version = e.version
|
|
1361
|
+
clone.entities._seq.append(entity)
|
|
1362
|
+
e._call_user_data_handler(operation, e, entity)
|
|
1363
|
+
self._call_user_data_handler(operation, self, clone)
|
|
1364
|
+
return clone
|
|
1365
|
+
else:
|
|
1366
|
+
return None
|
|
1367
|
+
|
|
1368
|
+
def writexml(self, writer, indent="", addindent="", newl=""):
|
|
1369
|
+
writer.write("<!DOCTYPE ")
|
|
1370
|
+
writer.write(self.name)
|
|
1371
|
+
if self.publicId:
|
|
1372
|
+
writer.write("%s PUBLIC '%s'%s '%s'"
|
|
1373
|
+
% (newl, self.publicId, newl, self.systemId))
|
|
1374
|
+
elif self.systemId:
|
|
1375
|
+
writer.write("%s SYSTEM '%s'" % (newl, self.systemId))
|
|
1376
|
+
if self.internalSubset is not None:
|
|
1377
|
+
writer.write(" [")
|
|
1378
|
+
writer.write(self.internalSubset)
|
|
1379
|
+
writer.write("]")
|
|
1380
|
+
writer.write(">"+newl)
|
|
1381
|
+
|
|
1382
|
+
class Entity(Identified, Node):
|
|
1383
|
+
attributes = None
|
|
1384
|
+
nodeType = Node.ENTITY_NODE
|
|
1385
|
+
nodeValue = None
|
|
1386
|
+
|
|
1387
|
+
actualEncoding = None
|
|
1388
|
+
encoding = None
|
|
1389
|
+
version = None
|
|
1390
|
+
|
|
1391
|
+
def __init__(self, name, publicId, systemId, notation):
|
|
1392
|
+
self.nodeName = name
|
|
1393
|
+
self.notationName = notation
|
|
1394
|
+
self.childNodes = NodeList()
|
|
1395
|
+
self._identified_mixin_init(publicId, systemId)
|
|
1396
|
+
|
|
1397
|
+
def _get_actualEncoding(self):
|
|
1398
|
+
return self.actualEncoding
|
|
1399
|
+
|
|
1400
|
+
def _get_encoding(self):
|
|
1401
|
+
return self.encoding
|
|
1402
|
+
|
|
1403
|
+
def _get_version(self):
|
|
1404
|
+
return self.version
|
|
1405
|
+
|
|
1406
|
+
def appendChild(self, newChild):
|
|
1407
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1408
|
+
"cannot append children to an entity node")
|
|
1409
|
+
|
|
1410
|
+
def insertBefore(self, newChild, refChild):
|
|
1411
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1412
|
+
"cannot insert children below an entity node")
|
|
1413
|
+
|
|
1414
|
+
def removeChild(self, oldChild):
|
|
1415
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1416
|
+
"cannot remove children from an entity node")
|
|
1417
|
+
|
|
1418
|
+
def replaceChild(self, newChild, oldChild):
|
|
1419
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1420
|
+
"cannot replace children of an entity node")
|
|
1421
|
+
|
|
1422
|
+
class Notation(Identified, Childless, Node):
|
|
1423
|
+
nodeType = Node.NOTATION_NODE
|
|
1424
|
+
nodeValue = None
|
|
1425
|
+
|
|
1426
|
+
def __init__(self, name, publicId, systemId):
|
|
1427
|
+
self.nodeName = name
|
|
1428
|
+
self._identified_mixin_init(publicId, systemId)
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
class DOMImplementation(DOMImplementationLS):
|
|
1432
|
+
_features = [("core", "1.0"),
|
|
1433
|
+
("core", "2.0"),
|
|
1434
|
+
("core", None),
|
|
1435
|
+
("xml", "1.0"),
|
|
1436
|
+
("xml", "2.0"),
|
|
1437
|
+
("xml", None),
|
|
1438
|
+
("ls-load", "3.0"),
|
|
1439
|
+
("ls-load", None),
|
|
1440
|
+
]
|
|
1441
|
+
|
|
1442
|
+
def hasFeature(self, feature, version):
|
|
1443
|
+
if version == "":
|
|
1444
|
+
version = None
|
|
1445
|
+
return (feature.lower(), version) in self._features
|
|
1446
|
+
|
|
1447
|
+
def createDocument(self, namespaceURI, qualifiedName, doctype):
|
|
1448
|
+
if doctype and doctype.parentNode is not None:
|
|
1449
|
+
raise xml.dom.WrongDocumentErr(
|
|
1450
|
+
"doctype object owned by another DOM tree")
|
|
1451
|
+
doc = self._create_document()
|
|
1452
|
+
|
|
1453
|
+
add_root_element = not (namespaceURI is None
|
|
1454
|
+
and qualifiedName is None
|
|
1455
|
+
and doctype is None)
|
|
1456
|
+
|
|
1457
|
+
if not qualifiedName and add_root_element:
|
|
1458
|
+
# The spec is unclear what to raise here; SyntaxErr
|
|
1459
|
+
# would be the other obvious candidate. Since Xerces raises
|
|
1460
|
+
# InvalidCharacterErr, and since SyntaxErr is not listed
|
|
1461
|
+
# for createDocument, that seems to be the better choice.
|
|
1462
|
+
# XXX: need to check for illegal characters here and in
|
|
1463
|
+
# createElement.
|
|
1464
|
+
|
|
1465
|
+
# DOM Level III clears this up when talking about the return value
|
|
1466
|
+
# of this function. If namespaceURI, qName and DocType are
|
|
1467
|
+
# Null the document is returned without a document element
|
|
1468
|
+
# Otherwise if doctype or namespaceURI are not None
|
|
1469
|
+
# Then we go back to the above problem
|
|
1470
|
+
raise xml.dom.InvalidCharacterErr("Element with no name")
|
|
1471
|
+
|
|
1472
|
+
if add_root_element:
|
|
1473
|
+
prefix, localname = _nssplit(qualifiedName)
|
|
1474
|
+
if prefix == "xml" \
|
|
1475
|
+
and namespaceURI != "http://www.w3.org/XML/1998/namespace":
|
|
1476
|
+
raise xml.dom.NamespaceErr("illegal use of 'xml' prefix")
|
|
1477
|
+
if prefix and not namespaceURI:
|
|
1478
|
+
raise xml.dom.NamespaceErr(
|
|
1479
|
+
"illegal use of prefix without namespaces")
|
|
1480
|
+
element = doc.createElementNS(namespaceURI, qualifiedName)
|
|
1481
|
+
if doctype:
|
|
1482
|
+
doc.appendChild(doctype)
|
|
1483
|
+
doc.appendChild(element)
|
|
1484
|
+
|
|
1485
|
+
if doctype:
|
|
1486
|
+
doctype.parentNode = doctype.ownerDocument = doc
|
|
1487
|
+
|
|
1488
|
+
doc.doctype = doctype
|
|
1489
|
+
doc.implementation = self
|
|
1490
|
+
return doc
|
|
1491
|
+
|
|
1492
|
+
def createDocumentType(self, qualifiedName, publicId, systemId):
|
|
1493
|
+
doctype = DocumentType(qualifiedName)
|
|
1494
|
+
doctype.publicId = publicId
|
|
1495
|
+
doctype.systemId = systemId
|
|
1496
|
+
return doctype
|
|
1497
|
+
|
|
1498
|
+
# DOM Level 3 (WD 9 April 2002)
|
|
1499
|
+
|
|
1500
|
+
def getInterface(self, feature):
|
|
1501
|
+
if self.hasFeature(feature, None):
|
|
1502
|
+
return self
|
|
1503
|
+
else:
|
|
1504
|
+
return None
|
|
1505
|
+
|
|
1506
|
+
# internal
|
|
1507
|
+
def _create_document(self):
|
|
1508
|
+
return Document()
|
|
1509
|
+
|
|
1510
|
+
class ElementInfo(object):
|
|
1511
|
+
"""Object that represents content-model information for an element.
|
|
1512
|
+
|
|
1513
|
+
This implementation is not expected to be used in practice; DOM
|
|
1514
|
+
builders should provide implementations which do the right thing
|
|
1515
|
+
using information available to it.
|
|
1516
|
+
|
|
1517
|
+
"""
|
|
1518
|
+
|
|
1519
|
+
__slots__ = 'tagName',
|
|
1520
|
+
|
|
1521
|
+
def __init__(self, name):
|
|
1522
|
+
self.tagName = name
|
|
1523
|
+
|
|
1524
|
+
def getAttributeType(self, aname):
|
|
1525
|
+
return _no_type
|
|
1526
|
+
|
|
1527
|
+
def getAttributeTypeNS(self, namespaceURI, localName):
|
|
1528
|
+
return _no_type
|
|
1529
|
+
|
|
1530
|
+
def isElementContent(self):
|
|
1531
|
+
return False
|
|
1532
|
+
|
|
1533
|
+
def isEmpty(self):
|
|
1534
|
+
"""Returns true iff this element is declared to have an EMPTY
|
|
1535
|
+
content model."""
|
|
1536
|
+
return False
|
|
1537
|
+
|
|
1538
|
+
def isId(self, aname):
|
|
1539
|
+
"""Returns true iff the named attribute is a DTD-style ID."""
|
|
1540
|
+
return False
|
|
1541
|
+
|
|
1542
|
+
def isIdNS(self, namespaceURI, localName):
|
|
1543
|
+
"""Returns true iff the identified attribute is a DTD-style ID."""
|
|
1544
|
+
return False
|
|
1545
|
+
|
|
1546
|
+
def __getstate__(self):
|
|
1547
|
+
return self.tagName
|
|
1548
|
+
|
|
1549
|
+
def __setstate__(self, state):
|
|
1550
|
+
self.tagName = state
|
|
1551
|
+
|
|
1552
|
+
def _clear_id_cache(node):
|
|
1553
|
+
if node.nodeType == Node.DOCUMENT_NODE:
|
|
1554
|
+
node._id_cache.clear()
|
|
1555
|
+
node._id_search_stack = None
|
|
1556
|
+
elif node.ownerDocument:
|
|
1557
|
+
node.ownerDocument._id_cache.clear()
|
|
1558
|
+
node.ownerDocument._id_search_stack= None
|
|
1559
|
+
|
|
1560
|
+
class Document(Node, DocumentLS):
|
|
1561
|
+
__slots__ = ('_elem_info', 'doctype',
|
|
1562
|
+
'_id_search_stack', 'childNodes', '_id_cache')
|
|
1563
|
+
_child_node_types = (Node.ELEMENT_NODE, Node.PROCESSING_INSTRUCTION_NODE,
|
|
1564
|
+
Node.COMMENT_NODE, Node.DOCUMENT_TYPE_NODE)
|
|
1565
|
+
|
|
1566
|
+
implementation = DOMImplementation()
|
|
1567
|
+
nodeType = Node.DOCUMENT_NODE
|
|
1568
|
+
nodeName = "#document"
|
|
1569
|
+
nodeValue = None
|
|
1570
|
+
attributes = None
|
|
1571
|
+
parentNode = None
|
|
1572
|
+
previousSibling = nextSibling = None
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
# Document attributes from Level 3 (WD 9 April 2002)
|
|
1576
|
+
|
|
1577
|
+
actualEncoding = None
|
|
1578
|
+
encoding = None
|
|
1579
|
+
standalone = None
|
|
1580
|
+
version = None
|
|
1581
|
+
strictErrorChecking = False
|
|
1582
|
+
errorHandler = None
|
|
1583
|
+
documentURI = None
|
|
1584
|
+
|
|
1585
|
+
_magic_id_count = 0
|
|
1586
|
+
|
|
1587
|
+
def __init__(self):
|
|
1588
|
+
self.doctype = None
|
|
1589
|
+
self.childNodes = NodeList()
|
|
1590
|
+
# mapping of (namespaceURI, localName) -> ElementInfo
|
|
1591
|
+
# and tagName -> ElementInfo
|
|
1592
|
+
self._elem_info = {}
|
|
1593
|
+
self._id_cache = {}
|
|
1594
|
+
self._id_search_stack = None
|
|
1595
|
+
|
|
1596
|
+
def _get_elem_info(self, element):
|
|
1597
|
+
if element.namespaceURI:
|
|
1598
|
+
key = element.namespaceURI, element.localName
|
|
1599
|
+
else:
|
|
1600
|
+
key = element.tagName
|
|
1601
|
+
return self._elem_info.get(key)
|
|
1602
|
+
|
|
1603
|
+
def _get_actualEncoding(self):
|
|
1604
|
+
return self.actualEncoding
|
|
1605
|
+
|
|
1606
|
+
def _get_doctype(self):
|
|
1607
|
+
return self.doctype
|
|
1608
|
+
|
|
1609
|
+
def _get_documentURI(self):
|
|
1610
|
+
return self.documentURI
|
|
1611
|
+
|
|
1612
|
+
def _get_encoding(self):
|
|
1613
|
+
return self.encoding
|
|
1614
|
+
|
|
1615
|
+
def _get_errorHandler(self):
|
|
1616
|
+
return self.errorHandler
|
|
1617
|
+
|
|
1618
|
+
def _get_standalone(self):
|
|
1619
|
+
return self.standalone
|
|
1620
|
+
|
|
1621
|
+
def _get_strictErrorChecking(self):
|
|
1622
|
+
return self.strictErrorChecking
|
|
1623
|
+
|
|
1624
|
+
def _get_version(self):
|
|
1625
|
+
return self.version
|
|
1626
|
+
|
|
1627
|
+
def appendChild(self, node):
|
|
1628
|
+
if node.nodeType not in self._child_node_types:
|
|
1629
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1630
|
+
"%s cannot be child of %s" % (repr(node), repr(self)))
|
|
1631
|
+
if node.parentNode is not None:
|
|
1632
|
+
# This needs to be done before the next test since this
|
|
1633
|
+
# may *be* the document element, in which case it should
|
|
1634
|
+
# end up re-ordered to the end.
|
|
1635
|
+
node.parentNode.removeChild(node)
|
|
1636
|
+
|
|
1637
|
+
if node.nodeType == Node.ELEMENT_NODE \
|
|
1638
|
+
and self._get_documentElement():
|
|
1639
|
+
raise xml.dom.HierarchyRequestErr(
|
|
1640
|
+
"two document elements disallowed")
|
|
1641
|
+
return Node.appendChild(self, node)
|
|
1642
|
+
|
|
1643
|
+
def removeChild(self, oldChild):
|
|
1644
|
+
try:
|
|
1645
|
+
self.childNodes.remove(oldChild)
|
|
1646
|
+
except ValueError:
|
|
1647
|
+
raise xml.dom.NotFoundErr()
|
|
1648
|
+
oldChild.nextSibling = oldChild.previousSibling = None
|
|
1649
|
+
oldChild.parentNode = None
|
|
1650
|
+
if self.documentElement is oldChild:
|
|
1651
|
+
self.documentElement = None
|
|
1652
|
+
|
|
1653
|
+
return oldChild
|
|
1654
|
+
|
|
1655
|
+
def _get_documentElement(self):
|
|
1656
|
+
for node in self.childNodes:
|
|
1657
|
+
if node.nodeType == Node.ELEMENT_NODE:
|
|
1658
|
+
return node
|
|
1659
|
+
|
|
1660
|
+
def unlink(self):
|
|
1661
|
+
if self.doctype is not None:
|
|
1662
|
+
self.doctype.unlink()
|
|
1663
|
+
self.doctype = None
|
|
1664
|
+
Node.unlink(self)
|
|
1665
|
+
|
|
1666
|
+
def cloneNode(self, deep):
|
|
1667
|
+
if not deep:
|
|
1668
|
+
return None
|
|
1669
|
+
clone = self.implementation.createDocument(None, None, None)
|
|
1670
|
+
clone.encoding = self.encoding
|
|
1671
|
+
clone.standalone = self.standalone
|
|
1672
|
+
clone.version = self.version
|
|
1673
|
+
for n in self.childNodes:
|
|
1674
|
+
childclone = _clone_node(n, deep, clone)
|
|
1675
|
+
assert childclone.ownerDocument.isSameNode(clone)
|
|
1676
|
+
clone.childNodes.append(childclone)
|
|
1677
|
+
if childclone.nodeType == Node.DOCUMENT_NODE:
|
|
1678
|
+
assert clone.documentElement is None
|
|
1679
|
+
elif childclone.nodeType == Node.DOCUMENT_TYPE_NODE:
|
|
1680
|
+
assert clone.doctype is None
|
|
1681
|
+
clone.doctype = childclone
|
|
1682
|
+
childclone.parentNode = clone
|
|
1683
|
+
self._call_user_data_handler(xml.dom.UserDataHandler.NODE_CLONED,
|
|
1684
|
+
self, clone)
|
|
1685
|
+
return clone
|
|
1686
|
+
|
|
1687
|
+
def createDocumentFragment(self):
|
|
1688
|
+
d = DocumentFragment()
|
|
1689
|
+
d.ownerDocument = self
|
|
1690
|
+
return d
|
|
1691
|
+
|
|
1692
|
+
def createElement(self, tagName):
|
|
1693
|
+
e = Element(tagName)
|
|
1694
|
+
e.ownerDocument = self
|
|
1695
|
+
return e
|
|
1696
|
+
|
|
1697
|
+
def createTextNode(self, data):
|
|
1698
|
+
if not isinstance(data, str):
|
|
1699
|
+
raise TypeError("node contents must be a string")
|
|
1700
|
+
t = Text()
|
|
1701
|
+
t.data = data
|
|
1702
|
+
t.ownerDocument = self
|
|
1703
|
+
return t
|
|
1704
|
+
|
|
1705
|
+
def createCDATASection(self, data):
|
|
1706
|
+
if not isinstance(data, str):
|
|
1707
|
+
raise TypeError("node contents must be a string")
|
|
1708
|
+
c = CDATASection()
|
|
1709
|
+
c.data = data
|
|
1710
|
+
c.ownerDocument = self
|
|
1711
|
+
return c
|
|
1712
|
+
|
|
1713
|
+
def createComment(self, data):
|
|
1714
|
+
c = Comment(data)
|
|
1715
|
+
c.ownerDocument = self
|
|
1716
|
+
return c
|
|
1717
|
+
|
|
1718
|
+
def createProcessingInstruction(self, target, data):
|
|
1719
|
+
p = ProcessingInstruction(target, data)
|
|
1720
|
+
p.ownerDocument = self
|
|
1721
|
+
return p
|
|
1722
|
+
|
|
1723
|
+
def createAttribute(self, qName):
|
|
1724
|
+
a = Attr(qName)
|
|
1725
|
+
a.ownerDocument = self
|
|
1726
|
+
a.value = ""
|
|
1727
|
+
return a
|
|
1728
|
+
|
|
1729
|
+
def createElementNS(self, namespaceURI, qualifiedName):
|
|
1730
|
+
prefix, localName = _nssplit(qualifiedName)
|
|
1731
|
+
e = Element(qualifiedName, namespaceURI, prefix)
|
|
1732
|
+
e.ownerDocument = self
|
|
1733
|
+
return e
|
|
1734
|
+
|
|
1735
|
+
def createAttributeNS(self, namespaceURI, qualifiedName):
|
|
1736
|
+
prefix, localName = _nssplit(qualifiedName)
|
|
1737
|
+
a = Attr(qualifiedName, namespaceURI, localName, prefix)
|
|
1738
|
+
a.ownerDocument = self
|
|
1739
|
+
a.value = ""
|
|
1740
|
+
return a
|
|
1741
|
+
|
|
1742
|
+
# A couple of implementation-specific helpers to create node types
|
|
1743
|
+
# not supported by the W3C DOM specs:
|
|
1744
|
+
|
|
1745
|
+
def _create_entity(self, name, publicId, systemId, notationName):
|
|
1746
|
+
e = Entity(name, publicId, systemId, notationName)
|
|
1747
|
+
e.ownerDocument = self
|
|
1748
|
+
return e
|
|
1749
|
+
|
|
1750
|
+
def _create_notation(self, name, publicId, systemId):
|
|
1751
|
+
n = Notation(name, publicId, systemId)
|
|
1752
|
+
n.ownerDocument = self
|
|
1753
|
+
return n
|
|
1754
|
+
|
|
1755
|
+
def getElementById(self, id):
|
|
1756
|
+
if id in self._id_cache:
|
|
1757
|
+
return self._id_cache[id]
|
|
1758
|
+
if not (self._elem_info or self._magic_id_count):
|
|
1759
|
+
return None
|
|
1760
|
+
|
|
1761
|
+
stack = self._id_search_stack
|
|
1762
|
+
if stack is None:
|
|
1763
|
+
# we never searched before, or the cache has been cleared
|
|
1764
|
+
stack = [self.documentElement]
|
|
1765
|
+
self._id_search_stack = stack
|
|
1766
|
+
elif not stack:
|
|
1767
|
+
# Previous search was completed and cache is still valid;
|
|
1768
|
+
# no matching node.
|
|
1769
|
+
return None
|
|
1770
|
+
|
|
1771
|
+
result = None
|
|
1772
|
+
while stack:
|
|
1773
|
+
node = stack.pop()
|
|
1774
|
+
# add child elements to stack for continued searching
|
|
1775
|
+
stack.extend([child for child in node.childNodes
|
|
1776
|
+
if child.nodeType in _nodeTypes_with_children])
|
|
1777
|
+
# check this node
|
|
1778
|
+
info = self._get_elem_info(node)
|
|
1779
|
+
if info:
|
|
1780
|
+
# We have to process all ID attributes before
|
|
1781
|
+
# returning in order to get all the attributes set to
|
|
1782
|
+
# be IDs using Element.setIdAttribute*().
|
|
1783
|
+
for attr in node.attributes.values():
|
|
1784
|
+
if attr.namespaceURI:
|
|
1785
|
+
if info.isIdNS(attr.namespaceURI, attr.localName):
|
|
1786
|
+
self._id_cache[attr.value] = node
|
|
1787
|
+
if attr.value == id:
|
|
1788
|
+
result = node
|
|
1789
|
+
elif not node._magic_id_nodes:
|
|
1790
|
+
break
|
|
1791
|
+
elif info.isId(attr.name):
|
|
1792
|
+
self._id_cache[attr.value] = node
|
|
1793
|
+
if attr.value == id:
|
|
1794
|
+
result = node
|
|
1795
|
+
elif not node._magic_id_nodes:
|
|
1796
|
+
break
|
|
1797
|
+
elif attr._is_id:
|
|
1798
|
+
self._id_cache[attr.value] = node
|
|
1799
|
+
if attr.value == id:
|
|
1800
|
+
result = node
|
|
1801
|
+
elif node._magic_id_nodes == 1:
|
|
1802
|
+
break
|
|
1803
|
+
elif node._magic_id_nodes:
|
|
1804
|
+
for attr in node.attributes.values():
|
|
1805
|
+
if attr._is_id:
|
|
1806
|
+
self._id_cache[attr.value] = node
|
|
1807
|
+
if attr.value == id:
|
|
1808
|
+
result = node
|
|
1809
|
+
if result is not None:
|
|
1810
|
+
break
|
|
1811
|
+
return result
|
|
1812
|
+
|
|
1813
|
+
def getElementsByTagName(self, name):
|
|
1814
|
+
return _get_elements_by_tagName_helper(self, name, NodeList())
|
|
1815
|
+
|
|
1816
|
+
def getElementsByTagNameNS(self, namespaceURI, localName):
|
|
1817
|
+
return _get_elements_by_tagName_ns_helper(
|
|
1818
|
+
self, namespaceURI, localName, NodeList())
|
|
1819
|
+
|
|
1820
|
+
def isSupported(self, feature, version):
|
|
1821
|
+
return self.implementation.hasFeature(feature, version)
|
|
1822
|
+
|
|
1823
|
+
def importNode(self, node, deep):
|
|
1824
|
+
if node.nodeType == Node.DOCUMENT_NODE:
|
|
1825
|
+
raise xml.dom.NotSupportedErr("cannot import document nodes")
|
|
1826
|
+
elif node.nodeType == Node.DOCUMENT_TYPE_NODE:
|
|
1827
|
+
raise xml.dom.NotSupportedErr("cannot import document type nodes")
|
|
1828
|
+
return _clone_node(node, deep, self)
|
|
1829
|
+
|
|
1830
|
+
def writexml(self, writer, indent="", addindent="", newl="", encoding=None,
|
|
1831
|
+
standalone=None):
|
|
1832
|
+
declarations = []
|
|
1833
|
+
|
|
1834
|
+
if encoding:
|
|
1835
|
+
declarations.append(f'encoding="{encoding}"')
|
|
1836
|
+
if standalone is not None:
|
|
1837
|
+
declarations.append(f'standalone="{"yes" if standalone else "no"}"')
|
|
1838
|
+
|
|
1839
|
+
writer.write(f'<?xml version="1.0" {" ".join(declarations)}?>{newl}')
|
|
1840
|
+
|
|
1841
|
+
for node in self.childNodes:
|
|
1842
|
+
node.writexml(writer, indent, addindent, newl)
|
|
1843
|
+
|
|
1844
|
+
# DOM Level 3 (WD 9 April 2002)
|
|
1845
|
+
|
|
1846
|
+
def renameNode(self, n, namespaceURI, name):
|
|
1847
|
+
if n.ownerDocument is not self:
|
|
1848
|
+
raise xml.dom.WrongDocumentErr(
|
|
1849
|
+
"cannot rename nodes from other documents;\n"
|
|
1850
|
+
"expected %s,\nfound %s" % (self, n.ownerDocument))
|
|
1851
|
+
if n.nodeType not in (Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE):
|
|
1852
|
+
raise xml.dom.NotSupportedErr(
|
|
1853
|
+
"renameNode() only applies to element and attribute nodes")
|
|
1854
|
+
if namespaceURI != EMPTY_NAMESPACE:
|
|
1855
|
+
if ':' in name:
|
|
1856
|
+
prefix, localName = name.split(':', 1)
|
|
1857
|
+
if ( prefix == "xmlns"
|
|
1858
|
+
and namespaceURI != xml.dom.XMLNS_NAMESPACE):
|
|
1859
|
+
raise xml.dom.NamespaceErr(
|
|
1860
|
+
"illegal use of 'xmlns' prefix")
|
|
1861
|
+
else:
|
|
1862
|
+
if ( name == "xmlns"
|
|
1863
|
+
and namespaceURI != xml.dom.XMLNS_NAMESPACE
|
|
1864
|
+
and n.nodeType == Node.ATTRIBUTE_NODE):
|
|
1865
|
+
raise xml.dom.NamespaceErr(
|
|
1866
|
+
"illegal use of the 'xmlns' attribute")
|
|
1867
|
+
prefix = None
|
|
1868
|
+
localName = name
|
|
1869
|
+
else:
|
|
1870
|
+
prefix = None
|
|
1871
|
+
localName = None
|
|
1872
|
+
if n.nodeType == Node.ATTRIBUTE_NODE:
|
|
1873
|
+
element = n.ownerElement
|
|
1874
|
+
if element is not None:
|
|
1875
|
+
is_id = n._is_id
|
|
1876
|
+
element.removeAttributeNode(n)
|
|
1877
|
+
else:
|
|
1878
|
+
element = None
|
|
1879
|
+
n.prefix = prefix
|
|
1880
|
+
n._localName = localName
|
|
1881
|
+
n.namespaceURI = namespaceURI
|
|
1882
|
+
n.nodeName = name
|
|
1883
|
+
if n.nodeType == Node.ELEMENT_NODE:
|
|
1884
|
+
n.tagName = name
|
|
1885
|
+
else:
|
|
1886
|
+
# attribute node
|
|
1887
|
+
n.name = name
|
|
1888
|
+
if element is not None:
|
|
1889
|
+
element.setAttributeNode(n)
|
|
1890
|
+
if is_id:
|
|
1891
|
+
element.setIdAttributeNode(n)
|
|
1892
|
+
# It's not clear from a semantic perspective whether we should
|
|
1893
|
+
# call the user data handlers for the NODE_RENAMED event since
|
|
1894
|
+
# we're re-using the existing node. The draft spec has been
|
|
1895
|
+
# interpreted as meaning "no, don't call the handler unless a
|
|
1896
|
+
# new node is created."
|
|
1897
|
+
return n
|
|
1898
|
+
|
|
1899
|
+
defproperty(Document, "documentElement",
|
|
1900
|
+
doc="Top-level element of this document.")
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
def _clone_node(node, deep, newOwnerDocument):
|
|
1904
|
+
"""
|
|
1905
|
+
Clone a node and give it the new owner document.
|
|
1906
|
+
Called by Node.cloneNode and Document.importNode
|
|
1907
|
+
"""
|
|
1908
|
+
if node.ownerDocument.isSameNode(newOwnerDocument):
|
|
1909
|
+
operation = xml.dom.UserDataHandler.NODE_CLONED
|
|
1910
|
+
else:
|
|
1911
|
+
operation = xml.dom.UserDataHandler.NODE_IMPORTED
|
|
1912
|
+
if node.nodeType == Node.ELEMENT_NODE:
|
|
1913
|
+
clone = newOwnerDocument.createElementNS(node.namespaceURI,
|
|
1914
|
+
node.nodeName)
|
|
1915
|
+
for attr in node.attributes.values():
|
|
1916
|
+
clone.setAttributeNS(attr.namespaceURI, attr.nodeName, attr.value)
|
|
1917
|
+
a = clone.getAttributeNodeNS(attr.namespaceURI, attr.localName)
|
|
1918
|
+
a.specified = attr.specified
|
|
1919
|
+
|
|
1920
|
+
if deep:
|
|
1921
|
+
for child in node.childNodes:
|
|
1922
|
+
c = _clone_node(child, deep, newOwnerDocument)
|
|
1923
|
+
clone.appendChild(c)
|
|
1924
|
+
|
|
1925
|
+
elif node.nodeType == Node.DOCUMENT_FRAGMENT_NODE:
|
|
1926
|
+
clone = newOwnerDocument.createDocumentFragment()
|
|
1927
|
+
if deep:
|
|
1928
|
+
for child in node.childNodes:
|
|
1929
|
+
c = _clone_node(child, deep, newOwnerDocument)
|
|
1930
|
+
clone.appendChild(c)
|
|
1931
|
+
|
|
1932
|
+
elif node.nodeType == Node.TEXT_NODE:
|
|
1933
|
+
clone = newOwnerDocument.createTextNode(node.data)
|
|
1934
|
+
elif node.nodeType == Node.CDATA_SECTION_NODE:
|
|
1935
|
+
clone = newOwnerDocument.createCDATASection(node.data)
|
|
1936
|
+
elif node.nodeType == Node.PROCESSING_INSTRUCTION_NODE:
|
|
1937
|
+
clone = newOwnerDocument.createProcessingInstruction(node.target,
|
|
1938
|
+
node.data)
|
|
1939
|
+
elif node.nodeType == Node.COMMENT_NODE:
|
|
1940
|
+
clone = newOwnerDocument.createComment(node.data)
|
|
1941
|
+
elif node.nodeType == Node.ATTRIBUTE_NODE:
|
|
1942
|
+
clone = newOwnerDocument.createAttributeNS(node.namespaceURI,
|
|
1943
|
+
node.nodeName)
|
|
1944
|
+
clone.specified = True
|
|
1945
|
+
clone.value = node.value
|
|
1946
|
+
elif node.nodeType == Node.DOCUMENT_TYPE_NODE:
|
|
1947
|
+
assert node.ownerDocument is not newOwnerDocument
|
|
1948
|
+
operation = xml.dom.UserDataHandler.NODE_IMPORTED
|
|
1949
|
+
clone = newOwnerDocument.implementation.createDocumentType(
|
|
1950
|
+
node.name, node.publicId, node.systemId)
|
|
1951
|
+
clone.ownerDocument = newOwnerDocument
|
|
1952
|
+
if deep:
|
|
1953
|
+
clone.entities._seq = []
|
|
1954
|
+
clone.notations._seq = []
|
|
1955
|
+
for n in node.notations._seq:
|
|
1956
|
+
notation = Notation(n.nodeName, n.publicId, n.systemId)
|
|
1957
|
+
notation.ownerDocument = newOwnerDocument
|
|
1958
|
+
clone.notations._seq.append(notation)
|
|
1959
|
+
if hasattr(n, '_call_user_data_handler'):
|
|
1960
|
+
n._call_user_data_handler(operation, n, notation)
|
|
1961
|
+
for e in node.entities._seq:
|
|
1962
|
+
entity = Entity(e.nodeName, e.publicId, e.systemId,
|
|
1963
|
+
e.notationName)
|
|
1964
|
+
entity.actualEncoding = e.actualEncoding
|
|
1965
|
+
entity.encoding = e.encoding
|
|
1966
|
+
entity.version = e.version
|
|
1967
|
+
entity.ownerDocument = newOwnerDocument
|
|
1968
|
+
clone.entities._seq.append(entity)
|
|
1969
|
+
if hasattr(e, '_call_user_data_handler'):
|
|
1970
|
+
e._call_user_data_handler(operation, e, entity)
|
|
1971
|
+
else:
|
|
1972
|
+
# Note the cloning of Document and DocumentType nodes is
|
|
1973
|
+
# implementation specific. minidom handles those cases
|
|
1974
|
+
# directly in the cloneNode() methods.
|
|
1975
|
+
raise xml.dom.NotSupportedErr("Cannot clone node %s" % repr(node))
|
|
1976
|
+
|
|
1977
|
+
# Check for _call_user_data_handler() since this could conceivably
|
|
1978
|
+
# used with other DOM implementations (one of the FourThought
|
|
1979
|
+
# DOMs, perhaps?).
|
|
1980
|
+
if hasattr(node, '_call_user_data_handler'):
|
|
1981
|
+
node._call_user_data_handler(operation, node, clone)
|
|
1982
|
+
return clone
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
def _nssplit(qualifiedName):
|
|
1986
|
+
fields = qualifiedName.split(':', 1)
|
|
1987
|
+
if len(fields) == 2:
|
|
1988
|
+
return fields
|
|
1989
|
+
else:
|
|
1990
|
+
return (None, fields[0])
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
def _do_pulldom_parse(func, args, kwargs):
|
|
1994
|
+
events = func(*args, **kwargs)
|
|
1995
|
+
toktype, rootNode = events.getEvent()
|
|
1996
|
+
events.expandNode(rootNode)
|
|
1997
|
+
events.clear()
|
|
1998
|
+
return rootNode
|
|
1999
|
+
|
|
2000
|
+
def parse(file, parser=None, bufsize=None):
|
|
2001
|
+
"""Parse a file into a DOM by filename or file object."""
|
|
2002
|
+
if parser is None and not bufsize:
|
|
2003
|
+
from xml.dom import expatbuilder
|
|
2004
|
+
return expatbuilder.parse(file)
|
|
2005
|
+
else:
|
|
2006
|
+
from xml.dom import pulldom
|
|
2007
|
+
return _do_pulldom_parse(pulldom.parse, (file,),
|
|
2008
|
+
{'parser': parser, 'bufsize': bufsize})
|
|
2009
|
+
|
|
2010
|
+
def parseString(string, parser=None):
|
|
2011
|
+
"""Parse a file into a DOM from a string."""
|
|
2012
|
+
if parser is None:
|
|
2013
|
+
from xml.dom import expatbuilder
|
|
2014
|
+
return expatbuilder.parseString(string)
|
|
2015
|
+
else:
|
|
2016
|
+
from xml.dom import pulldom
|
|
2017
|
+
return _do_pulldom_parse(pulldom.parseString, (string,),
|
|
2018
|
+
{'parser': parser})
|
|
2019
|
+
|
|
2020
|
+
def getDOMImplementation(features=None):
|
|
2021
|
+
if features:
|
|
2022
|
+
if isinstance(features, str):
|
|
2023
|
+
features = domreg._parse_feature_string(features)
|
|
2024
|
+
for f, v in features:
|
|
2025
|
+
if not Document.implementation.hasFeature(f, v):
|
|
2026
|
+
return None
|
|
2027
|
+
return Document.implementation
|