From 8571087f3e9b9e4cb751e6b46367c12135743c0c Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Fri, 9 Sep 2016 00:24:32 +0200 Subject: [PATCH] CURA-1445: Using .join instead Says in one line what I wanted to do. --- plugins/SliceInfoPlugin/SliceInfo.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 2a2acbacab..eb713f6557 100644 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -91,12 +91,7 @@ class SliceInfo(Extension): modelhashes.append(node.getMeshData().getHash()) # Creating md5sums and formatting them as discussed on JIRA - modelhash_formatted = "" - if modelhashes: - modelhash_formatted = str(modelhashes[0]) - if len(modelhashes) > 1: - for modelhash in modelhashes[1:]: - modelhash_formatted += ",%s" %(modelhash) + modelhash_formatted = ",".join(modelhashes) global_container_stack = Application.getInstance().getGlobalContainerStack()