From eedd308ff46fb9d0529f4480d2d4ae17e435795d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 8 Dec 2009 03:58:36 -0500 Subject: [PATCH] Use mapfile to only create & parse mapfile strings, not files --- libbe/storage/{vcs => }/util/mapfile.py | 10 ---------- 1 file changed, 10 deletions(-) rename libbe/storage/{vcs => }/util/mapfile.py (90%) diff --git a/libbe/storage/vcs/util/mapfile.py b/libbe/storage/util/mapfile.py similarity index 90% rename from libbe/storage/vcs/util/mapfile.py rename to 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() -- 2.26.2