From: Guido van Rossum Date: Thu, 10 Aug 1995 19:38:36 +0000 (+0000) Subject: fix stupid typo: r->RDLK X-Git-Tag: v1.3b1~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba3e46b9ce8c02c0215cc45bffa36b8500351f5b;p=thirdparty%2FPython%2Fcpython.git fix stupid typo: r->RDLK --- diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 8036b9d9bf65..459cd520784e 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'