Function represent_scalar

Synopsis

def represent_scalar(self, tag, value, style=None)

Description

No description yet.

Mentioned in

Source

Lines 77-84 in lib3/yaml/representer.py.

def represent_scalar(self, tag, value, style=None):
    if style is None:
        style = self.default_style
    node = ScalarNode(tag, value, style=style)
    if self.alias_key is not None:
        self.represented_objects[self.alias_key] = node
    return node





Add Discussion as Guest

Log in