Rev 2566: fix up doctest example for token being returned from wait_lock in http://sourcefrog.net/bzr/dlock

Martin Pool mbp at sourcefrog.net
Thu Jun 28 08:53:16 BST 2007


At http://sourcefrog.net/bzr/dlock

------------------------------------------------------------
revno: 2566
revision-id: mbp at sourcefrog.net-20070628075315-ewq68yfptqwx7nj8
parent: mbp at sourcefrog.net-20070628074325-fewhyi24ittr3kyz
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: dlock
timestamp: Thu 2007-06-28 17:53:15 +1000
message:
  fix up doctest example for token being returned from wait_lock
modified:
  bzrlib/lockdir.py              lockdir.py-20060220222025-98258adf27fbdda3
=== modified file 'bzrlib/lockdir.py'
--- a/bzrlib/lockdir.py	2007-06-28 07:43:25 +0000
+++ b/bzrlib/lockdir.py	2007-06-28 07:53:15 +0000
@@ -88,7 +88,7 @@
 >>> t = MemoryTransport()
 >>> l = LockDir(t, 'sample-lock')
 >>> l.create()
->>> l.wait_lock()
+>>> token = l.wait_lock()
 >>> # do something here
 >>> l.unlock()
 




More information about the bazaar-commits mailing list