From c521d6fa5a8a18ce3ed420d475ef0a3cc7b51ee5 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 30 Jul 2015 18:47:43 +0100 Subject: Change how MorphologyLoader instances are created Loading .morph files is becoming a bit more complicated, as we need to deal with the VERSION file, and possibly soon with a DEFAULTS file as well. The logic of loading and parsing .morph files is done either in the sourceresolver module, or the morphloader module. This change means that all users of the latter module can use the get hold of a MorphologyLoader instance with VERSION already parsed. If DEFAULTS is added then it is also simple to parse DEFAULTS. Change-Id: Ib33756e9dbd078e38f12dd7f776c89584b178959 --- morphlib/definitions_version.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'morphlib/definitions_version.py') diff --git a/morphlib/definitions_version.py b/morphlib/definitions_version.py index 3ed5d19a..bc72d2ad 100644 --- a/morphlib/definitions_version.py +++ b/morphlib/definitions_version.py @@ -77,3 +77,5 @@ def check_version_file(version_text): # pragma: no cover if version not in SUPPORTED_VERSIONS: raise UnknownVersionError(version) + + return version -- cgit v1.2.1