aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-25 08:03:30 -0400
committerW. Trevor King <wking@tremily.us>2012-10-25 08:03:30 -0400
commitb4cc4bb4b7b5d3311158fdabd8296284e36aff62 (patch)
treeca87c9ece7e36b4d80c3f745d21629c440191227 /libbe/storage
parenta37b396a4f7e44f82f04fb73efc7e3cc8dd56690 (diff)
downloadbugseverywhere-b4cc4bb4b7b5d3311158fdabd8296284e36aff62.tar.gz
storage:util:mapfile: fix YAML -> JSON in docstrings.
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.
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/util/mapfile.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbe/storage/util/mapfile.py b/libbe/storage/util/mapfile.py
index d17f0d3..71e5b0d 100644
--- a/libbe/storage/util/mapfile.py
+++ b/libbe/storage/util/mapfile.py
@@ -40,12 +40,14 @@ class InvalidMapfileContents (Exception):
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>
@@ -100,7 +102,7 @@ def generate(map):
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
--------