aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-08 03:58:36 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-08 03:58:36 -0500
commiteedd308ff46fb9d0529f4480d2d4ae17e435795d (patch)
treec5cc3d7760ba787c7a6e7e562fe8024bfe7dc5bc /libbe
parentd64b6336f75078445f2b730b31598817ac1cdb7a (diff)
downloadbugseverywhere-eedd308ff46fb9d0529f4480d2d4ae17e435795d.tar.gz
Use mapfile to only create & parse mapfile strings, not files
Diffstat (limited to 'libbe')
-rw-r--r--libbe/storage/util/mapfile.py (renamed from libbe/storage/vcs/util/mapfile.py)10
1 files changed, 0 insertions, 10 deletions
diff --git a/libbe/storage/vcs/util/mapfile.py b/libbe/storage/util/mapfile.py
index 8e1e279..a8d5516 100644
--- a/libbe/storage/vcs/util/mapfile.py
+++ b/libbe/storage/util/mapfile.py
@@ -112,15 +112,5 @@ def parse(contents):
"""
return yaml.load(contents) or {}
-def map_save(vcs, path, map, allow_no_vcs=False):
- """Save the map as a mapfile to the specified path"""
- contents = generate(map)
- vcs.set_file_contents(path, contents, allow_no_vcs, binary=True)
-
-def map_load(vcs, path, allow_no_vcs=False):
- contents = vcs.get_file_contents(path, allow_no_vcs=allow_no_vcs,
- binary=True)
- return parse(contents)
-
if libbe.TESTING == True:
suite = doctest.DocTestSuite()