(data)
| 51 | |
| 52 | |
| 53 | def 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 | |
| 64 | class TSConfVar(std.Target): |