Home
last modified time | relevance | path

Searched refs:represent_scalar (Results 1 – 2 of 2) sorted by relevance

/third_party/PyYAML/lib/yaml/
Drepresenter.py77 def represent_scalar(self, tag, value, style=None): member in BaseRepresenter
145 return self.represent_scalar('tag:yaml.org,2002:null', 'null')
148 return self.represent_scalar('tag:yaml.org,2002:str', data)
155 return self.represent_scalar('tag:yaml.org,2002:binary', data, style='|')
162 return self.represent_scalar('tag:yaml.org,2002:bool', value)
165 return self.represent_scalar('tag:yaml.org,2002:int', str(data))
189 return self.represent_scalar('tag:yaml.org,2002:float', value)
217 return self.represent_scalar('tag:yaml.org,2002:timestamp', value)
221 return self.represent_scalar('tag:yaml.org,2002:timestamp', value)
283 return self.represent_scalar('tag:yaml.org,2002:python/complex', data)
[all …]
/third_party/PyYAML/tests/lib/
Dtest_constructor.py67 return representer.represent_scalar(cls.yaml_tag, str(native.x))