blob: 748b6a59e4e46d4849ef488d4b979b3a32d1bb3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
*** htmltmpl.py Mon Sep 26 19:14:38 2005
--- htmltmpl.py Mon Sep 26 19:00:07 2005
***************
*** 267,277 ****
fd = file.fileno()
if LOCKTYPE == LOCKTYPE_FCNTL:
if lock == LOCK_SH:
! fcntl.fcntl(fd, fcntl.LOCK_SH)
elif lock == LOCK_EX:
! fcntl.fcntl(fd, fcntl.LOCK_EX)
elif lock == LOCK_UN:
! fcntl.fcntl(fd, fcntl.LOCK_UN)
else:
raise TemplateError, "BUG: bad lock in lock_file"
elif LOCKTYPE == LOCKTYPE_MSVCRT:
--- 267,277 ----
fd = file.fileno()
if LOCKTYPE == LOCKTYPE_FCNTL:
if lock == LOCK_SH:
! fcntl.flock(fd, fcntl.LOCK_SH)
elif lock == LOCK_EX:
! fcntl.flock(fd, fcntl.LOCK_EX)
elif lock == LOCK_UN:
! fcntl.flock(fd, fcntl.LOCK_UN)
else:
raise TemplateError, "BUG: bad lock in lock_file"
elif LOCKTYPE == LOCKTYPE_MSVCRT:
|