MCPcopy Create free account
hub / github.com/GStreamer/gst-python / __enter__

Method __enter__

gi/overrides/Gst.py:615–619  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

613 yield i
614
615 def __enter__(self):
616 if not self.__parent__:
617 raise MapError('MappingError', 'Mapping was not successful')
618
619 return self
620
621 def __exit__(self, type, value, tb):
622 if not self.__parent__.unmap(self):

Callers

nothing calls this directly

Calls 1

MapErrorClass · 0.85

Tested by

no test coverage detected