import condor

def square(x):
    return x**2

def main():
    jobs = [(square, [x]) for x in range(16)]

    def finished(task, result):
        print task.args, result

    condor.do(jobs, 4, finished)

if __name__ == "__main__":
    condor.enable_default_logging() # XXX

    main()


@@ -107,24 +107,20 @@
     def 
-finished
+done
 (task, r
@@ -187,16 +187,12 @@
  4, 
-finished
+done
 )%0A%0Ai
@@ -221,51 +221,8 @@
 _%22:%0A
-    condor.enable_default_logging() # XXX%0A%0A
     

Remove logging setup from example.