Mercurial > p > roundup > code
diff roundup/backends/locking.py @ 4357:13b3155869e0
Beginnings of a big code cleanup / modernisation to make 2to3 happy
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 22 Feb 2010 05:26:57 +0000 |
| parents | fc52d57c6c3e |
| children | 6e3e4f24c753 |
line wrap: on
line diff
--- a/roundup/backends/locking.py Fri Feb 19 05:09:38 2010 +0000 +++ b/roundup/backends/locking.py Mon Feb 22 05:26:57 2010 +0000 @@ -28,12 +28,11 @@ ''' __docformat__ = 'restructuredtext' -import portalocker +from roundup.backends import portalocker def acquire_lock(path, block=1): '''Acquire a lock for the given path ''' - import portalocker file = open(path, 'w') if block: portalocker.lock(file, portalocker.LOCK_EX)
