Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2013 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7761137 to your computer and use it in GitHub Desktop.
Save anonymous/7761137 to your computer and use it in GitHub Desktop.
attachment for the BitBucket issue #4
# HG changeset patch
# User Patrick Kennedy <dysiode@gmail.com>
# Date 1260766233 25200
# Branch trunk
# Node ID 84c9ab0fc04b88d592bd4a80c4e1bef6824921a4
# Parent f5c2fc6f96433001389efdd16aceaa0dda90821c
Fixed JobSet.finished_job to incriment JobSet.done before informing observers.
diff -r f5c2fc6f9643 -r 84c9ab0fc04b rope/base/taskhandle.py
--- a/rope/base/taskhandle.py Mon Oct 26 21:43:38 2009 +0300
+++ b/rope/base/taskhandle.py Sun Dec 13 21:50:33 2009 -0700
@@ -71,9 +71,9 @@
def finished_job(self):
self.check_status()
+ self.done += 1
self.handle._inform_observers()
self.job_name = None
- self.done += 1
def check_status(self):
if self.handle.is_stopped():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment