Function open

Synopsis

def open(self)

Description

No description yet.

Mentioned in

Source

Lines 27-35 in lib3/yaml/serializer.py.

def open(self):
    if self.closed is None:
        self.emit(StreamStartEvent(encoding=self.use_encoding))
        self.closed = False
    elif self.closed:
        raise SerializerError("serializer is closed")
    else:
        raise SerializerError("serializer is already opened")





Add Discussion as Guest

Log in