martin f. krafft | f37f068 | 2013-06-14 16:36:20 +0200 | [diff] [blame] | 1 | # |
2 | # -*- coding: utf-8 -*- | ||||
3 | # | ||||
4 | # This file is part of reclass (http://github.com/madduck/reclass) | ||||
5 | # | ||||
6 | # Copyright © 2007–13 martin f. krafft <madduck@madduck.net> | ||||
7 | # Released under the terms of the Artistic Licence 2.0 | ||||
8 | # | ||||
9 | from output import OutputterBase | ||||
10 | import yaml | ||||
11 | |||||
12 | class Outputter(OutputterBase): | ||||
13 | |||||
14 | def dump(self, data, pretty_print=False): | ||||
15 | return yaml.dump(data, default_flow_style=not pretty_print) |