Mercurial > p > roundup > code
diff roundup/backends/portalocker.py @ 1756:fd44d75a495e maint-0.6
backporting fix from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 26 Aug 2003 00:30:13 +0000 |
| parents | eeb167fb8faf |
| children |
line wrap: on
line diff
--- a/roundup/backends/portalocker.py Tue Aug 26 00:15:09 2003 +0000 +++ b/roundup/backends/portalocker.py Tue Aug 26 00:30:13 2003 +0000 @@ -2,7 +2,7 @@ # Requires python 1.5.2 or better. # ID line added by richard for Roundup file tracking -# $Id: portalocker.py,v 1.6 2003-07-03 23:43:46 richard Exp $ +# $Id: portalocker.py,v 1.6.2.1 2003-08-26 00:30:13 richard Exp $ """ Cross-platform (posix/nt) API for flock-style file locking. @@ -60,8 +60,8 @@ raise RuntimeError("PortaLocker only defined for nt and posix platforms") if os.name == 'nt': - # eugh, but trying to suppress the warning doesn't work :( - FFFF0000 = 0xffff000 << 4 + # eugh, we want 0xffff0000 here, but python 2.3 won't let us :( + FFFF0000 = -65536 def lock(file, flags): hfile = win32file._get_osfhandle(file.fileno()) # LockFileEx is not supported on all Win32 platforms (Win95, Win98, WinME).
