summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-06 16:41:23 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-06 16:41:23 +0000
commit8f47d014bd8946acc67e6fd291a91028ba6c6a08 (patch)
tree00235a3e6eb9b38627960e51103392f0f5c5ec24 /morphlib/app.py
parent6779e46e880eec757a6923441accef2442007677 (diff)
downloadmorph-8f47d014bd8946acc67e6fd291a91028ba6c6a08.tar.gz
Remove one place where we pass the Application instance around
The MorphologyFactory class only uses the status() function of the morphlib.Application instance that it gets passed. So make it require only a status callback.
Diffstat (limited to 'morphlib/app.py')
-rw-r--r--morphlib/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index c3c9c970..c4d45aae 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -350,8 +350,8 @@ class Morph(cliapp.Application):
system_filenames, lrc, rrc, update=True,
visit=lambda rn, rf, fn, arf, m: None,
definitions_original_ref=None):
- morph_factory = morphlib.morphologyfactory.MorphologyFactory(lrc, rrc,
- self)
+ morph_factory = morphlib.morphologyfactory.MorphologyFactory(
+ lrc, rrc, self.status)
definitions_queue = collections.deque(system_filenames)
chunk_in_definitions_repo_queue = []
chunk_in_source_repo_queue = []