From 0ee859ada56e13b3c3a5d789372ba8e7e16c05ad Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Thu, 12 Nov 2015 09:37:52 +0000 Subject: morphloader: simplify API Use an optional parameter to control whether the defaults should be set instead of a separate function. Change-Id: Idbbd5a08e8b16d8e01bb9539274092978b64f6f0 --- morphlib/plugins/diff_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'morphlib/plugins') diff --git a/morphlib/plugins/diff_plugin.py b/morphlib/plugins/diff_plugin.py index 24a6d69a..de4ca0b9 100644 --- a/morphlib/plugins/diff_plugin.py +++ b/morphlib/plugins/diff_plugin.py @@ -108,8 +108,8 @@ class DiffPlugin(cliapp.Plugin): definitions = mf.list_morphologies() system_paths = set() for definition in definitions: - m = ml.parse_morphology_text(mf.read_file(definition), - definition) + m = ml.load_from_string(mf.read_file(definition), definition, + False) if m.get('kind') == 'system' or 'strata' in m: system_paths.add(definition) return reponame, ref, system_paths -- cgit v1.2.1