MCPcopy Index your code
hub / github.com/RustPython/RustPython / handle_entity_decl

Method handle_entity_decl

Lib/plistlib.py:197–201  ·  view source on GitHub ↗
(self, entity_name, is_parameter_entity, value, base, system_id, public_id, notation_name)

Source from the content-addressed store, hash-verified

195 return self.root
196
197 def handle_entity_decl(self, entity_name, is_parameter_entity, value, base, system_id, public_id, notation_name):
198 # Reject plist files with entity declarations to avoid XML vulnerabilities in expat.
199 # Regular plist files don't contain those declarations, and Apple's plutil tool does not
200 # accept them either.
201 raise InvalidFileException("XML entity declarations are not supported in plist files")
202
203 def handle_begin_element(self, element, attrs):
204 self.data = []

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected