diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-08 10:20:25 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-08 15:22:49 +0000 |
commit | f6b4aeaab8320c20e6c5a8f4ca519c0795f88540 (patch) | |
tree | 20a6ac665db409cd2a1588ffe250c5de7a84b888 | |
parent | a31b78e52e85343073802b09c8ef0454ad8c8e9d (diff) | |
download | morph-f6b4aeaab8320c20e6c5a8f4ca519c0795f88540.tar.gz |
buildsystem: Generate morphology text as YAML
-rw-r--r-- | morphlib/buildsystem.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py index 90cc15c2..f11a8215 100644 --- a/morphlib/buildsystem.py +++ b/morphlib/buildsystem.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2013 Codethink Limited +# Copyright (C) 2012-2014 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -53,11 +53,9 @@ class BuildSystem(object): '''Return the text of an autodetected chunk morphology.''' return ''' - { - "name": "%(name)s", - "kind": "chunk", - "build-system": "%(bs)s" - } + name: %(name)s + kind: chunk + build-system: %(bs)s ''' % { 'name': name, 'bs': self.name, |