This should have been done back in:
commit
a95915c6c7d6a4e29c1e5547580e0c1fed2467e1
Author: W. Trevor King <wking@tremily.us>
Date: Mon Sep 17 08:14:21 2012 -0400
storage:util:mapfile: convert YAML settings to JSON.
I also add an empty-settings generation as a sanity check.
def generate(map):
- """Generate a YAML mapfile content string.
+ """Generate a JSON mapfile content string.
Examples
--------
>>> import sys
+ >>> sys.stdout.write(generate({}))
+ {}
>>> sys.stdout.write(generate({'q':'p'}))
{
<BLANKLINE>
return '\n\n\n\n\n\n\n'.join(lines) + '\n'
def parse(contents):
- """Parse a YAML mapfile string.
+ """Parse a JSON mapfile string.
Examples
--------