summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/edit-morph8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/edit-morph b/scripts/edit-morph
index 244bbd61..a4932e75 100755
--- a/scripts/edit-morph
+++ b/scripts/edit-morph
@@ -70,8 +70,8 @@ class EditMorph(cliapp.Application):
with morphlib.savefile.SaveFile(file_name, 'w') as f:
morphology.write_to_file(f)
- print "Removed: %i chunk(s) and %i build depend(s)." % \
- (component_count, build_depends_count)
+ self.output.write("Removed: %i chunk(s) and %i build depend(s).\n" %
+ (component_count, build_depends_count))
def cmd_sort(self, args):
"""Sort STRATUM"""
@@ -112,7 +112,7 @@ class EditMorph(cliapp.Application):
with morphlib.savefile.SaveFile(out_file_name, 'w') as f:
morphology.update_text(text, f, convert_to='json')
except Exception as e:
- print '%s: %s' % (file_name, e)
+ self.output.write('%s: %s\n' % (file_name, e))
def cmd_to_yaml(self, args):
"""Convert one or more FILES to YAML.
@@ -130,7 +130,7 @@ class EditMorph(cliapp.Application):
with morphlib.savefile.SaveFile(file_name + '.yaml', 'w') as f:
morphology.update_text(text, f, convert_to='yaml')
except Exception as e:
- print '%s: %s' % (file_name, e)
+ self.output.write('%s: %s\n' % (file_name, e))
def sort_chunks(self, chunks_list):
"""Sort stratum chunks