From c1b9f2789b7f6ceb5a2cd14f03031c7d04b48f9e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 4 May 2010 03:16:05 -0400 Subject: [PATCH] Removed busy loop from hooke/plugin/flatfilts.py. Perhaps it was an attempt to pause briefly? If so, time.sleep() would be better. It wasn't much of a pause though: $ time python -c '' real 0m0.111s user 0m0.089s sys 0m0.020s $ time python -c 'for i in range(1000): k=0' real 0m0.115s user 0m0.090s sys 0m0.024s --- hooke/plugin/flatfilts.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/hooke/plugin/flatfilts.py b/hooke/plugin/flatfilts.py index e19964c..faacc11 100644 --- a/hooke/plugin/flatfilts.py +++ b/hooke/plugin/flatfilts.py @@ -325,9 +325,6 @@ class flatfiltsCommands(object): item.curve=None #empty the item object, to further avoid memory leak notflat_list.append(item) - for i in range(1000): - k=0 - #Warn that no flattening had been done. if not ('flatten' in self.config['plotmanips']): print 'Flatten manipulator was not found. Processing was done without flattening.' -- 2.26.2