acmc.util

 1import yaml
 2
 3"""
 4util.py module
 5
 6This module provides general utility functions for the acmc modules
 7
 8"""
 9
10
11class QuotedDumper(yaml.Dumper):
12    """Custom Dumper to retain quotes on strings in yaml library"""
13
14    def increase_indent(self, flow=False, indentless=False):
15        return super(QuotedDumper, self).increase_indent(flow, indentless)
class QuotedDumper(yaml.dumper.Dumper):
12class QuotedDumper(yaml.Dumper):
13    """Custom Dumper to retain quotes on strings in yaml library"""
14
15    def increase_indent(self, flow=False, indentless=False):
16        return super(QuotedDumper, self).increase_indent(flow, indentless)

Custom Dumper to retain quotes on strings in yaml library

def increase_indent(self, flow=False, indentless=False):
15    def increase_indent(self, flow=False, indentless=False):
16        return super(QuotedDumper, self).increase_indent(flow, indentless)