From 71a81173bdfdbcf575f8cc80247139043141ca9a Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 16 Feb 2016 21:59:54 +0000 Subject: [PATCH] camlib.py edited online with Bitbucket; removed the paranthesis around lambda function as it was making an tuple which it was not the intention. --- camlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlib.py b/camlib.py index d4c82400..7d756a12 100644 --- a/camlib.py +++ b/camlib.py @@ -2711,7 +2711,7 @@ class CNCjob(Geometry): # sort the tools list by the second item in tuple (here we have a dict with diameter of the tool) # so we actually are sorting the tools by diameter - sorted_tools = sorted(exobj.tools.items(), key = (lambda x: x[1])) + sorted_tools = sorted(exobj.tools.items(), key = lambda x: x[1]) if tools == "all": tools = str([i[0] for i in sorted_tools]) # we get a string of ordered tools log.debug("Tools 'all' and sorted are: %s" % str(tools))