Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Haering committed Oct 28, 2013
1 parent 8da9346 commit 14b122f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions txetcd/locking.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@ def _on_response(result):
return d

def _wait(self):
print "Waiting for lock with id {id}".format(id=self.id)
d = defer.Deferred()

def _on_response((owned, index)):
if owned:
self.locked = True
d.callback(self)
else:
print "Not locked, watching for changes since {index}".format(index=index)
d1 = self.client.get(self.base_path, wait=True, wait_index=index, recursive=True)
d1.addCallback(lambda result: self._test_ownership())
d1.addCallbacks(_on_response, d.errback)
Expand Down

0 comments on commit 14b122f

Please sign in to comment.