mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +00:00
fix stupid typo: r->RDLK
This commit is contained in:
parent
99bf06b2fc
commit
ba3e46b9ce
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ class _posixfile_:
|
||||||
import struct, fcntl, FCNTL
|
import struct, fcntl, FCNTL
|
||||||
|
|
||||||
if 'w' in how: l_type = FCNTL.F_WRLCK
|
if 'w' in how: l_type = FCNTL.F_WRLCK
|
||||||
elif 'r' in how: l_type = FCNTL.F_WRLCK
|
elif 'r' in how: l_type = FCNTL.F_RDLCK
|
||||||
elif 'u' in how: l_type = FCNTL.F_UNLCK
|
elif 'u' in how: l_type = FCNTL.F_UNLCK
|
||||||
else: raise TypeError, 'no type of lock specified'
|
else: raise TypeError, 'no type of lock specified'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue