MCPcopy Index your code
hub / github.com/python/cpython / handle_entity_decl

Method handle_entity_decl

Lib/plistlib.py:191–195  ·  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

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected