summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/plugins/branch_and_merge_new_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/plugins/branch_and_merge_new_plugin.py b/morphlib/plugins/branch_and_merge_new_plugin.py
index 9594d224..836b9cfe 100644
--- a/morphlib/plugins/branch_and_merge_new_plugin.py
+++ b/morphlib/plugins/branch_and_merge_new_plugin.py
@@ -284,10 +284,10 @@ class SimpleBranchAndMergePlugin(cliapp.Plugin):
@staticmethod
def _checkout_has_systems(gd):
+ loader = morphlib.morphloader.MorphologyLoader()
for filename in glob.iglob(os.path.join(gd.dirname, '*.morph')):
- with open(filename) as mf:
- morphology = morphlib.morph2.Morphology(mf.read())
- if morphology['kind'] == 'system':
- return True
+ m = loader.load_from_file(filename)
+ if m['kind'] == 'system':
+ return True
return False