MCPcopy Create free account
hub / github.com/apache/trafficserver / get_code

Function get_code

doc/ext/traffic-server.py:53–61  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

51
52
53def get_code(data):
54
55 # if needed we can add a type representer,
56 # def float_representer(dumper, value):
57 # return dumper.represent_scalar(u'tag:yaml.org,2002:float', str(value), style="'")
58
59 # yaml.add_representer(float, float_representer)
60
61 return yaml.dump(data)
62
63
64class TSConfVar(std.Target):

Callers 1

__generate_codeMethod · 0.70

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected