diff options
author | Guido van Rossum <guido@python.org> | 1995-08-10 19:38:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-10 19:38:36 (GMT) |
commit | ba3e46b9ce8c02c0215cc45bffa36b8500351f5b (patch) | |
tree | e844bd2986a815e5597a1cedf928bcfc0595e0e5 /Lib/posixfile.py | |
parent | 99bf06b2fc7b2636edb46994fa1a9f12eda6b051 (diff) | |
download | cpython-ba3e46b9ce8c02c0215cc45bffa36b8500351f5b.zip cpython-ba3e46b9ce8c02c0215cc45bffa36b8500351f5b.tar.gz cpython-ba3e46b9ce8c02c0215cc45bffa36b8500351f5b.tar.bz2 |
fix stupid typo: r->RDLK
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 8036b9d..459cd52 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -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' |