fix stupid typo: r->RDLK

This commit is contained in:
Guido van Rossum 1995-08-10 19:38:36 +00:00
parent 99bf06b2fc
commit ba3e46b9ce
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class _posixfile_:
import struct, fcntl, FCNTL
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
else: raise TypeError, 'no type of lock specified'