From: W. Trevor King Date: Tue, 4 May 2010 07:16:05 +0000 (-0400) Subject: Removed busy loop from hooke/plugin/flatfilts.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be0142c63c7b3c3679b1213471e9b97254dfb531;p=hooke.git 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 --- 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.'