Dump a representation of self to a .yml data_file in YAML block format.
(self, check_exists=False)
| 115 | return saneyaml.dump(self.to_dict()) |
| 116 | |
| 117 | def dump(self, check_exists=False): |
| 118 | """ |
| 119 | Dump a representation of self to a .yml data_file in YAML block format. |
| 120 | """ |
| 121 | if check_exists and path.exists(self.data_file): |
| 122 | raise Exception(self.data_file) |
| 123 | with io.open(self.data_file, 'w', encoding='utf-8') as df: |
| 124 | df.write(self.dumps()) |
| 125 | |
| 126 | |
| 127 | COPYRIGHT_TEST_TEMPLATE ="""what: |
no test coverage detected