Function close

Synopsis

def close(self)

Description

No description yet.

Mentioned in

Source

Lines 36-42 in lib3/yaml/serializer.py.

def close(self):
    if self.closed is None:
        raise SerializerError("serializer is not opened")
    elif not self.closed:
        self.emit(StreamEndEvent())
        self.closed = True





Add Discussion as Guest

Log in