summaryrefslogtreecommitdiff
path: root/morphlib/artifactresolver.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-17 15:26:02 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-18 18:29:25 +0100
commit214c3f223c889199ae783e1cab555c09fcd64b4d (patch)
tree106857729672748c26b38d8be4641013c1acd66d /morphlib/artifactresolver.py
parent469dde8a618c918b345745e885e0e7da5122e972 (diff)
downloadmorph-214c3f223c889199ae783e1cab555c09fcd64b4d.tar.gz
Have a default 'chunks' field in a chunk morphology
Diffstat (limited to 'morphlib/artifactresolver.py')
-rw-r--r--morphlib/artifactresolver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/artifactresolver.py b/morphlib/artifactresolver.py
index 25836b41..a458f52a 100644
--- a/morphlib/artifactresolver.py
+++ b/morphlib/artifactresolver.py
@@ -243,7 +243,7 @@ class ArtifactResolver(object):
return artifacts
def _chunk_artifact_names(self, source):
- if 'chunks' in source.morphology:
+ if len(source.morphology['chunks']) > 0:
return sorted(source.morphology['chunks'].keys())
else:
return [source.morphology['name']]