aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
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
--------