MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / ensure_metadata

Method ensure_metadata

lib/matplotlib/backends/backend_svg.py:419–429  ·  view source on GitHub ↗
(mid)

Source from the content-addressed store, hash-verified

417
418 mid = None
419 def ensure_metadata(mid):
420 if mid is not None:
421 return mid
422 mid = writer.start('metadata')
423 writer.start('rdf:RDF', attrib={
424 'xmlns:dc': "http://purl.org/dc/elements/1.1/",
425 'xmlns:cc': "http://creativecommons.org/ns#",
426 'xmlns:rdf': "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
427 })
428 writer.start('cc:Work')
429 return mid
430
431 uri = metadata.pop('Type', None)
432 if uri is not None:

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected