Mercurial > p > roundup > code
comparison roundup/backends/portalocker.py @ 1244:8dd4f736370b
merge from maintenance branch
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 03 Oct 2002 06:56:30 +0000 |
| parents | 509a101305da |
| children | e975db910d9f |
comparison
equal
deleted
inserted
replaced
| 1243:3a028d2f7830 | 1244:8dd4f736370b |
|---|---|
| 1 # portalocker.py - Cross-platform (posix/nt) API for flock-style file locking. | 1 # portalocker.py - Cross-platform (posix/nt) API for flock-style file locking. |
| 2 # Requires python 1.5.2 or better. | 2 # Requires python 1.5.2 or better. |
| 3 | 3 |
| 4 # ID line added by richard for Roundup file tracking | 4 # ID line added by richard for Roundup file tracking |
| 5 # $Id: portalocker.py,v 1.1 2002-04-15 23:25:15 richard Exp $ | 5 # $Id: portalocker.py,v 1.2 2002-10-03 06:56:29 richard Exp $ |
| 6 | 6 |
| 7 """Cross-platform (posix/nt) API for flock-style file locking. | 7 """ Cross-platform (posix/nt) API for flock-style file locking. |
| 8 | 8 |
| 9 Synopsis: | 9 Synopsis: |
| 10 | 10 |
| 11 import portalocker | 11 import portalocker |
| 12 file = open("somefile", "r+") | 12 file = open("somefile", "r+") |
