py312-et_xmlfile-2.0.0 2.0.0
Python comment contains a URLPython file opened for write or append
SHA-2565567998b54ed71db4fa0c6d4b56d2c251a144104c10560d32b454d3ae2be489e
MaleculeH₂(CmF)
Evidence
5:58… --------------
6# Licensed to PSF under a Contributor Agreement.
7# See https://www.python.org/psf/license for licensing details.
8#
9# ElementTree
10# Copyright (c) 1999-2008 by Fredrik Lundh. All rights reserved.
11#
13# http://www.pythonware.com
14# --------------------------------------------------------------------
15# The ElementTree toolkit is
16#
17# Copyr …
434:6… else:
435 is_nsmap_scope_changed = False
436 new_namespace_prefixes = set()
437
438 if uri_to_prefix is None:
439 if None in nsmap_scope:
440 raise ValueError(
441 'Found No …
644:23… :
645 """Iterate through all the qualified names in elem"""
646 seen_el_qnames = set()
647 seen_other_qnames = set()
648 for this_elem in elem.iter():
649 tag = this_elem.tag
650 if isinstance(tag, str):
651 if tag not in seen_el_qnames:
652 seen_el_qnames.add(tag)
653 yield tag, True
654 elif isinstance(tag, ET.QName):
655 tag …
876:23… wer() == "unicode":
877 encoding = "utf-8"
878 with open(file_or_filename, "w", encoding=encoding,
879 errors="xmlcharrefreplace") as file:
880 yield file.write, encoding
881 else:
882 # file_or_filename is a file-like object
883 # encoding d …
884:42…
885 # use a text writer as is
886 yield write, getattr(file_or_filename, "encoding", None) or "utf-8"
887 else:
888 # wrap a binary writer with TextIOWrapper
889 …
No evidence locations were recorded for this file. Raw result