CURA-1445: Using .join instead

Says in one line what I wanted to do.
This commit is contained in:
Thomas Karl Pietrowski 2016-09-09 00:24:32 +02:00
parent cf55178a11
commit 8571087f3e

View file

@ -91,12 +91,7 @@ class SliceInfo(Extension):
modelhashes.append(node.getMeshData().getHash()) modelhashes.append(node.getMeshData().getHash())
# Creating md5sums and formatting them as discussed on JIRA # Creating md5sums and formatting them as discussed on JIRA
modelhash_formatted = "" modelhash_formatted = ",".join(modelhashes)
if modelhashes:
modelhash_formatted = str(modelhashes[0])
if len(modelhashes) > 1:
for modelhash in modelhashes[1:]:
modelhash_formatted += ",%s" %(modelhash)
global_container_stack = Application.getInstance().getGlobalContainerStack() global_container_stack = Application.getInstance().getGlobalContainerStack()