From cf2dccfb50ccddb1d0a308f8f15f0a9362c57e2b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 27 Oct 2012 12:27:16 -0400 Subject: [PATCH] storage:util:upgrade: use YAML parser to get BE Tree 1 0 settings This fixes the "Bugs Everywhere Tree 1 0" -> "Bugs Everywhere Directory v1.1" upgrade broken by the switch to JSON in: commit a95915c6c7d6a4e29c1e5547580e0c1fed2467e1 Author: W. Trevor King Date: Mon Sep 17 08:14:21 2012 -0400 storage:util:mapfile: convert YAML settings to JSON. --- libbe/storage/util/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbe/storage/util/upgrade.py b/libbe/storage/util/upgrade.py index 98091f2..ddc434a 100644 --- a/libbe/storage/util/upgrade.py +++ b/libbe/storage/util/upgrade.py @@ -214,7 +214,7 @@ class Upgrade_1_0_to_1_1 (Upgrader): path_list = c_path + [comment_uuid, 'values'] path = self.get_path(*path_list) self._upgrade_mapfile(path) - settings = mapfile.parse( + settings = parse_yaml_mapfile( encoding.get_file_contents(path)) if 'From' in settings: settings['Author'] = settings.pop('From') -- 2.26.2